summaryrefslogtreecommitdiffstats
path: root/snapcraft.yaml
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-07-18 04:33:04 +0300
committerLauri Ojansivu <x@xet7.org>2019-07-18 04:33:04 +0300
commit26ebe6d63a7892f7c293098dba55107b737eb59b (patch)
treef241f0bc20b52e95fbd06902d4df9afb7cea0cf5 /snapcraft.yaml
parent132bf896779b745808b89d38871c68120d2342e1 (diff)
downloadwekan-26ebe6d63a7892f7c293098dba55107b737eb59b.tar.gz
wekan-26ebe6d63a7892f7c293098dba55107b737eb59b.tar.bz2
wekan-26ebe6d63a7892f7c293098dba55107b737eb59b.zip
Remove building OpenAPI with esprima-python etc.
Generated docs are included at repo. Thanks to xet7 !
Diffstat (limited to 'snapcraft.yaml')
-rw-r--r--snapcraft.yaml39
1 files changed, 20 insertions, 19 deletions
diff --git a/snapcraft.yaml b/snapcraft.yaml
index 86392eaf..3e97c81e 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -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