Remove building OpenAPI with esprima-python etc.

Generated docs are included at repo.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2019-07-18 04:33:04 +03:00
parent 132bf89677
commit 26ebe6d63a

View file

@ -88,15 +88,15 @@ parts:
build-packages: build-packages:
# - ca-certificates # - ca-certificates
# - apt-utils # - apt-utils
- python3 ## - python3
# - gcc++-8 # - gcc++-8
# - capnproto # - capnproto
# - curl # - curl
# - execstack # - execstack
# - nodejs # - nodejs
# - npm # - npm
- python3-pip ## - python3-pip
- python3-venv ## - python3-venv
# stage-packages: # stage-packages:
# - libfontconfig1 # - libfontconfig1
override-build: | override-build: |
@ -104,23 +104,24 @@ parts:
rm -rf ~/.meteor ~/.npm /usr/local/lib/node_modules rm -rf ~/.meteor ~/.npm /usr/local/lib/node_modules
# Create the OpenAPI specification # Create the OpenAPI specification
rm -rf .build rm -rf .build
mkdir -p .build/python mkdir .build
cd .build/python ##mkdir -p .build/python
python3 -m venv env ##cd .build/python
. ./env/bin/activate ##python3 -m venv env
pip3 install -U setuptools wheel ##. ./env/bin/activate
git clone --depth 1 -b master https://github.com/Kronuz/esprima-python ##pip3 install -U setuptools wheel
cd esprima-python ##git clone --depth 1 -b master https://github.com/Kronuz/esprima-python
python3 setup.py install ##cd esprima-python
cd ../../.. ##python3 setup.py install
mkdir -p ./public/api ##cd ../../..
python3 ./openapi/generate_openapi.py --release $(git describe --tags --abbrev=0) > ./public/api/wekan.yml ##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 # we temporary need api2html and mkdirp
npm install -g --unsafe-perm api2html@0.3.0 ##npm install -g --unsafe-perm api2html@0.3.0
npm install -g --unsafe-perm mkdirp ##npm install -g --unsafe-perm mkdirp
api2html -c ./public/logo-header.png -o ./public/api/wekan.html ./public/api/wekan.yml ##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 mkdirp
npm uninstall -g --unsafe-perm api2html ##npm uninstall -g --unsafe-perm api2html
# Node Fibers 100% CPU usage issue: # Node Fibers 100% CPU usage issue:
# https://github.com/wekan/wekan-mongodb/issues/2#issuecomment-381453161 # https://github.com/wekan/wekan-mongodb/issues/2#issuecomment-381453161
# https://github.com/meteor/meteor/issues/9796#issuecomment-381676326 # https://github.com/meteor/meteor/issues/9796#issuecomment-381676326