Skip to content

Commit

Permalink
Use hatch version, shorter name, add obsoletes (#265)
Browse files Browse the repository at this point in the history
* Use `hatch version` instead of packit default

By default packit creates rpms with version which can be older
than packages already released in Fedora repositories. We need to
use `hatch version` to at least bump the micro version.

* Use shorter names for latest packages from `main`

* We need to obsolete the dropped `python3-fmf` package
  • Loading branch information
psss authored Dec 3, 2024
1 parent 759788f commit 0af4282
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ actions:
create-archive:
- "hatch build -t sdist"
- "sh -c 'echo dist/fmf-*.tar.gz'"
get-current-version:
- hatch version

# Common definitions
_:
Expand Down Expand Up @@ -46,6 +48,7 @@ jobs:
targets: *targets
<<: *copr
project: latest
release_suffix: "{PACKIT_PROJECT_BRANCH}"

# Build release (copr stable)
- job: copr_build
Expand Down
1 change: 1 addition & 0 deletions fmf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ BuildRequires: python3dist(docutils)
BuildRequires: git-core
Requires: git-core

Obsoletes: python3-fmf < %{version}-%{release}
%py_provides python3-fmf

%description
Expand Down

0 comments on commit 0af4282

Please sign in to comment.