@@ -9,6 +9,15 @@ UID := $(shell id -u)
99artifacts_dir :
1010 -mkdir $(ARTIFACTS_DIR )
1111
12+ .PHONY : postprocess-build
13+ postprocess-build :
14+ black $(PYTHON_DIR ) /artifacts/client/* .py
15+ @-rm -f $(PYTHON_DIR ) /artifacts/client/README.md
16+ @echo " Please visit our [website](https://itisfoundation.github.io/osparc-simcore-clients/#/) for documentation" > $(PYTHON_DIR ) /artifacts/client/README.md
17+ @-rm -rf $(PYTHON_DIR ) /client/osparc/data/
18+ @-mkdir $(PYTHON_DIR ) /client/osparc/data/
19+ @cp $(REPO_ROOT ) /api/openapi.json $(PYTHON_DIR ) /client/osparc/data/
20+
1221# Generation of Python client
1322.PHONY : python-client
1423python-client : validate-api-specification artifacts_dir # # generate python client
@@ -25,9 +34,7 @@ python-client: validate-api-specification artifacts_dir ## generate python clien
2534 --additional-properties=$(subst $(space ) ,$(comma ) ,$(strip $(ADDITIONAL_PROPS ) ) ) \
2635 --package-name=osparc_client \
2736 --release-note=" Updated to $( APP_VERSION) "
28- black $(PYTHON_DIR ) /artifacts/client/* .py
29- @-mkdir $(PYTHON_DIR ) /client/osparc/data/
30- @cp $(REPO_ROOT ) /api/openapi.json $(PYTHON_DIR ) /client/osparc/data/
37+ $(MAKE ) postprocess-build
3138
3239.PHONY : python-client-from-templates
3340python-client-from-templates : validate-api-specification artifacts_dir # # generate python client using templates in a specified directory (usage: 'make python-client-from-templates -e TEMPLATE_DIR=path/to/templates')
@@ -48,9 +55,7 @@ python-client-from-templates: validate-api-specification artifacts_dir ## genera
4855 --package-name=osparc_client \
4956 --release-note=" Updated to $( APP_VERSION) " \
5057 --template-dir=/tmp/python_templates
51- black $(PYTHON_DIR ) /artifacts/client/* .py
52- @-mkdir $(PYTHON_DIR ) /client/osparc/data/
53- @cp $(REPO_ROOT ) /api/openapi.json $(PYTHON_DIR ) /client/osparc/data/
58+ $(MAKE ) postprocess-build
5459
5560.PHONY : generator-help
5661generator-help : # # help on client-api generator
0 commit comments