remove support for python2-pytest

No supported Fedora release ships python2-pytest anyway so these conditions
are not useful anymore.
This commit is contained in:
Felix Schwarz 2020-11-16 22:00:31 +01:00
parent cec4008543
commit 8e02de60cd

View File

@ -7,12 +7,6 @@
%bcond_with bootstrap
%bcond_without python2
# We ship python2-pytest only up to F31.
%if !0%{?fedora}%{?rhel} || 0%{?fedora} >= 32 || 0%{?rhel} >= 9
%bcond_with python2_pytest
%else
%bcond_without python2_pytest
%endif
Name: babel
@ -31,11 +25,6 @@ BuildArch: noarch
%if %{with python2}
BuildRequires: python2-devel
BuildRequires: python2-setuptools
%if %{with python2_pytest}
BuildRequires: python2-pytz
BuildRequires: python2-pytest
BuildRequires: python2-freezegun
%endif
%endif
BuildRequires: python3-devel
BuildRequires: python3-setuptools
@ -147,9 +136,6 @@ rm -f "$BUILDDIR/html/.buildinfo"
%check
export TZ=America/New_York
%if %{with python2} && %{with python2_pytest}
%{__python2} -m pytest
%endif
%if !%{with bootstrap}
%{__python3} -m pytest
%endif