From 8e02de60cdf8c88b40ecfc1543daf8cf190f5a0c Mon Sep 17 00:00:00 2001 From: Felix Schwarz Date: Mon, 16 Nov 2020 22:00:31 +0100 Subject: [PATCH] remove support for python2-pytest No supported Fedora release ships python2-pytest anyway so these conditions are not useful anymore. --- babel.spec | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/babel.spec b/babel.spec index a3cb7e2..51e253a 100644 --- a/babel.spec +++ b/babel.spec @@ -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