[SEBA-946]
Fix Swagger documentation generation, update to Python 3
Change-Id: I0a55c4805a993dcac9f0721be87bbefbf8b9b348
diff --git a/docs/Makefile b/docs/Makefile
index 86248c0..8888328 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -49,11 +49,15 @@
swagger: swagger_clean swagger_docs swagger_serve_spec
-venv-xosdocs:
- ./venv-xosdocs.sh
+venv_xosdocs:
+ virtualenv -p python3 $@ ;\
+ source ./$@/bin/activate ;\
+ pip install --upgrade pip ;\
+ pip install -e ../lib/xos-genx
-swagger_docs: venv-xosdocs
- bash -c 'source $(DOCSDIR)venv-xosdocs/bin/activate && python $(DOCSDIR)scripts/swagger_docs.py'
+swagger_docs: venv_xosdocs
+ source ./$</bin/activate ; set -u ;\
+ python $(DOCSDIR)scripts/swagger_docs.py
swagger_clean:
rm -rf swagger/specs/*