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:
@ -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/'."
|
Reference in New Issue
Block a user