Skip to content

Commit

Permalink
Update to 0.2.8
Browse files Browse the repository at this point in the history
Don't require python3-pytest-xdist for building on EL9.

Signed-off-by: Nils Philippsen <[email protected]>
  • Loading branch information
nphilipp committed May 16, 2022
1 parent 8eca990 commit 6ef83e5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
21 changes: 19 additions & 2 deletions python-rpmautospec.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# when bootstrapping Python, pytest-xdist is not yet available (also not yet in EPEL9)
%if ! 0%{?rhel} || 0%{?rhel} > 9
%bcond_without xdist
%else
%bcond_with xdist
%endif

%global srcname rpmautospec

Name: python-rpmautospec
Version: 0.2.7
Version: 0.2.8
Release: 1%{?dist}
Summary: Package and CLI tool to generate release fields and changelogs

Expand All @@ -22,7 +29,9 @@ BuildRequires: python3-koji
BuildRequires: python3-pygit2
BuildRequires: python%{python3_pkgversion}-pytest
BuildRequires: python%{python3_pkgversion}-pytest-cov
%if %{with xdist}
BuildRequires: python%{python3_pkgversion}-pytest-xdist
%endif
BuildRequires: python%{python3_pkgversion}-pyyaml

Obsoletes: koji-hub-plugin-rpmautospec < 0.1.5-2
Expand Down Expand Up @@ -118,9 +127,17 @@ mkdir -p %{buildroot}%{rpmmacrodir}
install -m 644 rpm/macros.d/macros.rpmautospec %{buildroot}%{rpmmacrodir}/

%check
%{__python3} -m pytest -n auto
%{__python3} -m pytest \
%if %{with xdist}
--numprocesses=auto
%endif


%changelog
* Mon May 16 2022 Nils Philippsen <[email protected]> - 0.2.8-1
- Update to 0.2.8
- Don't require python3-pytest-xdist for building on EL9

* Mon May 16 2022 Nils Philippsen <[email protected]> - 0.2.7-1
- Update to 0.2.7

Expand Down
2 changes: 1 addition & 1 deletion rpmautospec/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.7"
__version__ = "0.2.8"

0 comments on commit 6ef83e5

Please sign in to comment.