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