Sync project metadata with pyproject.toml

Updated scripts and backend to dynamically retrieve project name and version from `pyproject.toml`. This ensures consistent metadata across the OpenAPI client generation and the FastAPI application.
This commit is contained in:
GotthardG
2024-12-17 10:54:34 +01:00
parent 455a22c7e6
commit 219cf93756
2 changed files with 12 additions and 9 deletions

View File

@ -44,11 +44,17 @@ if [[ ! -d python-client ]]; then
fi
# Build Python package
echo "Building Python package..."
cd python-client || exit
python3 -m venv .venv
source .venv/bin/activate
pip install -U pip build
python -m build
# Skip uploading the package. This will happen in the release stage.
echo "Python client generated and package built successfully."
# Verify build output
if [[ ! -d dist || -z "$(ls -A dist)" ]]; then
echo "Error: No files generated in 'dist/'. Package build failed."
exit 1
fi
echo "Python package built successfully in 'dist/'."