Disable Python 2 tests on Fedora 32+
This commit is contained in:
parent
23770fae36
commit
a64b025651
@ -10,7 +10,7 @@
|
||||
|
||||
Name: python-attrs
|
||||
Version: 19.1.0
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: Python attributes without boilerplate
|
||||
|
||||
License: MIT
|
||||
@ -21,9 +21,7 @@ Source0: https://github.com/hynek/%{modname}/archive/%{version}/%{modname
|
||||
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-setuptools
|
||||
%if %{with tests}
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: python2-setuptools
|
||||
%if %{with tests} && 0%{?fedora} < 32
|
||||
BuildRequires: python2-pytest
|
||||
BuildRequires: python2-hypothesis
|
||||
BuildRequires: python2-six
|
||||
@ -77,7 +75,9 @@ object protocols.
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
%if 0%{?fedora} < 32
|
||||
PYTHONPATH=%{buildroot}/%{python2_sitelib} py.test-2.7 -v
|
||||
%endif
|
||||
PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-3 -v
|
||||
%endif
|
||||
|
||||
@ -92,6 +92,9 @@ PYTHONPATH=%{buildroot}/%{python3_sitelib} py.test-3 -v
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%changelog
|
||||
* Sun Oct 13 2019 Miro Hrončok <mhroncok@redhat.com> - 19.1.0-6
|
||||
- Drop Python 2 optional build dependencies
|
||||
|
||||
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 19.1.0-5
|
||||
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user