From 4a17dbe036a82a32fc0fad24d4fbf9d75ab722c0 Mon Sep 17 00:00:00 2001 From: Frantisek Lachman Date: Fri, 20 Oct 2023 13:02:21 +0200 Subject: [PATCH] Update setup.py version when creating an archive Signed-off-by: Frantisek Lachman --- .packit.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.packit.yaml b/.packit.yaml index 00766663f..f3487847d 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -5,6 +5,8 @@ upstream_project_url: https://github.com/fedora-copr/copr.git actions: &common_actions create-archive: + - env + - bash -c 'sed -i s/version=.\*,/version=\"$PACKIT_PROJECT_VERSION\",/g setup.py' - bash -c "tito build --tgz --test -o ." - bash -c "ls -1t ./*.tar.gz | head -n 1" get-current-version: