Don't run %check with Python 2 on Fedora 32+
We will be removing python2-pytest anyway and this allows us to remove packages more gradually.
This commit is contained in:
parent
acd8064845
commit
28d477e6b1
@ -13,7 +13,7 @@
|
||||
|
||||
Name: babel
|
||||
Version: 2.7.0
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: Tools for internationalizing Python applications
|
||||
|
||||
License: BSD
|
||||
@ -25,10 +25,12 @@ BuildArch: noarch
|
||||
%if %{with_python2}
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-setuptools
|
||||
%if 0%{?fedora} < 32
|
||||
BuildRequires: python2-pytz
|
||||
BuildRequires: python2-pytest
|
||||
BuildRequires: python2-freezegun
|
||||
%endif
|
||||
%endif
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
%if !%{bootstrap}
|
||||
@ -135,7 +137,7 @@ rm -f "$BUILDDIR/html/.buildinfo"
|
||||
|
||||
%check
|
||||
export TZ=America/New_York
|
||||
%if %{with_python2}
|
||||
%if %{with_python2} && 0%{?fedora} < 32
|
||||
%{__python2} -m pytest
|
||||
%endif
|
||||
%if !%{bootstrap}
|
||||
@ -163,6 +165,9 @@ export TZ=America/New_York
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Fri Sep 13 2019 Miro Hrončok <mhroncok@redhat.com> - 2.7.0-5
|
||||
- Reduce Python 2 build dependencies on Fedora 32
|
||||
|
||||
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 2.7.0-4
|
||||
- Rebuilt for Python 3.8
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user