Don't test Python 2 on Fedora 32+
This commit is contained in:
parent
f8c77ac8a8
commit
58fabfe0b8
@ -41,7 +41,7 @@ compatible install in a way that is very close to the on-disk format.
|
|||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: python2-setuptools
|
BuildRequires: python2-setuptools
|
||||||
%if ! %{with bootstrap}
|
%if ! %{with bootstrap} && 0%{?fedora} < 32
|
||||||
BuildRequires: python2-pytest
|
BuildRequires: python2-pytest
|
||||||
%endif
|
%endif
|
||||||
%{?python_provide:%python_provide python2-%{pypi_name}}
|
%{?python_provide:%python_provide python2-%{pypi_name}}
|
||||||
@ -116,7 +116,7 @@ install -p dist/%{python_wheelname} -t %{buildroot}%{python_wheeldir}
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
rm setup.cfg
|
rm setup.cfg
|
||||||
%if %{with python2}
|
%if %{with python2} && 0%{?fedora} < 32
|
||||||
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-2 -v --ignore build
|
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-2 -v --ignore build
|
||||||
%endif
|
%endif
|
||||||
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build
|
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user