|
|
@ -1,5 +1,5 @@
|
|
|
|
# when bootstrapping Python, pytest-xdist is not yet available
|
|
|
|
# when bootstrapping Python, pytest-xdist is not yet available
|
|
|
|
%bcond_without xdist
|
|
|
|
%bcond xdist %{undefined rhel}
|
|
|
|
|
|
|
|
|
|
|
|
%global srcname rpmautospec
|
|
|
|
%global srcname rpmautospec
|
|
|
|
|
|
|
|
|
|
|
@ -24,7 +24,6 @@ BuildRequires: python%{python3_pkgversion}-babel
|
|
|
|
BuildRequires: python3-koji
|
|
|
|
BuildRequires: python3-koji
|
|
|
|
BuildRequires: python3-pygit2
|
|
|
|
BuildRequires: python3-pygit2
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest-cov
|
|
|
|
|
|
|
|
%if %{with xdist}
|
|
|
|
%if %{with xdist}
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest-xdist
|
|
|
|
BuildRequires: python%{python3_pkgversion}-pytest-xdist
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
@ -123,8 +122,7 @@ mkdir -p %{buildroot}%{rpmmacrodir}
|
|
|
|
install -m 644 rpm/macros.d/macros.rpmautospec %{buildroot}%{rpmmacrodir}/
|
|
|
|
install -m 644 rpm/macros.d/macros.rpmautospec %{buildroot}%{rpmmacrodir}/
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
PYTHONPATH="%{buildroot}%{python3_sitelib}" \
|
|
|
|
%pytest \
|
|
|
|
%{__python3} -m pytest \
|
|
|
|
|
|
|
|
%if %{with xdist}
|
|
|
|
%if %{with xdist}
|
|
|
|
--numprocesses=auto
|
|
|
|
--numprocesses=auto
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|