1
0
mirror of https://github.com/containers/ramalama.git synced 2026-02-05 06:46:39 +01:00

fixing version detection

Signed-off-by: Ian Eaves <ian.k.eaves@gmail.com>
This commit is contained in:
Ian Eaves
2025-09-18 17:34:34 -05:00
parent 22ada76f41
commit 6bb147c0f2

View File

@@ -6,8 +6,8 @@
set -exo pipefail
# Extract version from pyproject.toml instead of setup.py
VERSION=$(awk -F'[""]' ' /^\s*version\s*/ {print $(NF-1)}' pyproject.toml )
# Extract version from Python module since pyproject.toml uses dynamic versioning
VERSION=$(python3 -c "import ramalama.version; print(ramalama.version.version())")
SPEC_FILE=rpm/ramalama.spec