Skip to content

Commit

Permalink
Update setup.py version when creating an archive
Browse files Browse the repository at this point in the history
Signed-off-by: Frantisek Lachman <flachman@redhat.com>
  • Loading branch information
lachmanfrantisek committed Oct 20, 2023
1 parent 68959fc commit bf1a701
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bf1a701

Please sign in to comment.