From 6a172296d48ac317cf986b960a4c4aacc1229ce7 Mon Sep 17 00:00:00 2001 From: GotthardG <51994228+GotthardG@users.noreply.github.com> Date: Tue, 17 Dec 2024 10:34:21 +0100 Subject: [PATCH] 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. --- make_openapi_client.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make_openapi_client.sh b/make_openapi_client.sh index 9bc16c2..8a161b2 100755 --- a/make_openapi_client.sh +++ b/make_openapi_client.sh @@ -1,7 +1,7 @@ #!/bin/bash # Extract values from pyproject.toml -PYPROJECT_FILE="$(dirname "$0")/../pyproject.toml" +PYPROJECT_FILE="$(dirname "$0")/pyproject.toml" VERSION=$(grep -Po '(?<=version = ")[^"]*' "$PYPROJECT_FILE") NAME=$(grep -Po '(?<=name = ")[^"]*' "$PYPROJECT_FILE")