Skip to content

Commit

Permalink
Drop epel9 workaround for packit
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Le <[email protected]>
  • Loading branch information
LecrisUT committed Aug 20, 2024
1 parent acd1415 commit 078c07a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,6 @@ synced_files:
upstream_package_name: fmf
downstream_package_name: fmf

# Epel9 fails to build with dynamic version. Need to create archive with PKG-INFO
# F37 works with setuptools_scm 7.0
actions:
create-archive:
- "hatch build -t sdist"
- "sh -c 'echo dist/fmf-*.tar.gz'"
get-current-version:
- "hatch version"

srpm_build_deps:
- hatch
- python3-hatch-vcs

jobs:
- job: copr_build
trigger: pull_request
Expand Down
6 changes: 6 additions & 0 deletions fmf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,16 @@ efficient way to organize data into well-sized text documents.


%generate_buildrequires
%if 0%{?el9}
export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}"
%endif
%pyproject_buildrequires -x tests %{?epel:-w}


%build
%if 0%{?el9}
export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}"
%endif
%pyproject_wheel
cp docs/header.txt man.rst
tail -n+7 README.rst >> man.rst
Expand Down

0 comments on commit 078c07a

Please sign in to comment.