Python client is built in CI (no new release)

This commit is contained in:
2024-10-23 21:13:22 +02:00
parent b32a37da32
commit 24bb82c8f7
96 changed files with 17 additions and 26136 deletions

10
gen_python_client.sh Normal file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
VERSION=$(<VERSION)
OPENAPI_VERSION=7.8.0
wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/${OPENAPI_VERSION}/openapi-generator-cli-${OPENAPI_VERSION}.jar -O openapi-generator-cli.jar
java -jar openapi-generator-cli.jar generate -i broker/jfjoch_api.yaml -o python-client/ -g python --git-host=git.psi.ch --git-repo-id jungfraujoch --git-user-id jungfraujoch --additional-properties=packageName=jfjoch_client,packageVersion=$VERSION
cd python-client
python3 setup.py sdist bdist_wheel
mv dist/* ..