From 876a016657904250f68210bcfeb1105b3d520fe1 Mon Sep 17 00:00:00 2001 From: mulhern Date: Fri, 25 Aug 2023 16:58:01 -0400 Subject: [PATCH] Use rpmspec to extract version We do this in our mockbuild scripts, and then we match that info against the source package version in create_artifacts.py. Signed-off-by: mulhern --- .packit.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index 2c74a53ec..a0d1ef809 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -14,8 +14,8 @@ actions: - "wget https://raw.githubusercontent.com/stratis-storage/ci/master/release_management/_utils.py -O distro/_utils.py" - "sed 's/\\\"python\\\",\\ \\\"setup.py\\\"/\\\"python3\\\",\\ \\\"setup.py\\\"/g' ./distro/_utils.py -i" create-archive: - - "sh -c 'python3 ./distro/create_artifacts.py ./distro/ stratis-cli $(python3 setup.py --version)'" - - "sh -c 'echo distro/stratis-cli-$(python3 setup.py --version).tar.gz'" + - "sh -c 'python3 ./distro/create_artifacts.py ./distro/ stratis-cli $(rpmspec -q --qf %{version} ./distro/stratis-cli.spec)'" + - "sh -c 'echo distro/stratis-cli-$(rpmspec -q --qf %{version} ./distro/stratis-cli.spec).tar.gz'" get-current-version: - "python3 setup.py --version"