mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Remove building OpenAPI with esprima-python etc.
Generated docs are included at repo. Thanks to xet7 !
This commit is contained in:
parent
132bf89677
commit
26ebe6d63a
1 changed files with 20 additions and 19 deletions
|
@ -88,15 +88,15 @@ parts:
|
|||
build-packages:
|
||||
# - ca-certificates
|
||||
# - apt-utils
|
||||
- python3
|
||||
## - python3
|
||||
# - gcc++-8
|
||||
# - capnproto
|
||||
# - curl
|
||||
# - execstack
|
||||
# - nodejs
|
||||
# - npm
|
||||
- python3-pip
|
||||
- python3-venv
|
||||
## - python3-pip
|
||||
## - python3-venv
|
||||
# stage-packages:
|
||||
# - libfontconfig1
|
||||
override-build: |
|
||||
|
@ -104,23 +104,24 @@ parts:
|
|||
rm -rf ~/.meteor ~/.npm /usr/local/lib/node_modules
|
||||
# Create the OpenAPI specification
|
||||
rm -rf .build
|
||||
mkdir -p .build/python
|
||||
cd .build/python
|
||||
python3 -m venv env
|
||||
. ./env/bin/activate
|
||||
pip3 install -U setuptools wheel
|
||||
git clone --depth 1 -b master https://github.com/Kronuz/esprima-python
|
||||
cd esprima-python
|
||||
python3 setup.py install
|
||||
cd ../../..
|
||||
mkdir -p ./public/api
|
||||
python3 ./openapi/generate_openapi.py --release $(git describe --tags --abbrev=0) > ./public/api/wekan.yml
|
||||
mkdir .build
|
||||
##mkdir -p .build/python
|
||||
##cd .build/python
|
||||
##python3 -m venv env
|
||||
##. ./env/bin/activate
|
||||
##pip3 install -U setuptools wheel
|
||||
##git clone --depth 1 -b master https://github.com/Kronuz/esprima-python
|
||||
##cd esprima-python
|
||||
##python3 setup.py install
|
||||
##cd ../../..
|
||||
##mkdir -p ./public/api
|
||||
##python3 ./openapi/generate_openapi.py --release $(git describe --tags --abbrev=0) > ./public/api/wekan.yml
|
||||
# we temporary need api2html and mkdirp
|
||||
npm install -g --unsafe-perm api2html@0.3.0
|
||||
npm install -g --unsafe-perm mkdirp
|
||||
api2html -c ./public/logo-header.png -o ./public/api/wekan.html ./public/api/wekan.yml
|
||||
npm uninstall -g --unsafe-perm mkdirp
|
||||
npm uninstall -g --unsafe-perm api2html
|
||||
##npm install -g --unsafe-perm api2html@0.3.0
|
||||
##npm install -g --unsafe-perm mkdirp
|
||||
##api2html -c ./public/logo-header.png -o ./public/api/wekan.html ./public/api/wekan.yml
|
||||
##npm uninstall -g --unsafe-perm mkdirp
|
||||
##npm uninstall -g --unsafe-perm api2html
|
||||
# Node Fibers 100% CPU usage issue:
|
||||
# https://github.com/wekan/wekan-mongodb/issues/2#issuecomment-381453161
|
||||
# https://github.com/meteor/meteor/issues/9796#issuecomment-381676326
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue