Skip to content

Commit

Permalink
Merge pull request #1015 from mulkieran/improve-packit
Browse files Browse the repository at this point in the history
Use rpmspec to extract version
  • Loading branch information
mulkieran authored Aug 25, 2023
2 parents a90830c + 876a016 commit 6587e9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 6587e9d

Please sign in to comment.