From a64b02565167d0546568820ff189f80b659e5e69 Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Oct 13 2019 20:27:44 +0000 Subject: Disable Python 2 tests on Fedora 32+ --- diff --git a/python-attrs.spec b/python-attrs.spec index cea94a2..f39840e 100644 --- a/python-attrs.spec +++ b/python-attrs.spec @@ -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 - 19.1.0-6 +- Drop Python 2 optional build dependencies + * Thu Oct 03 2019 Miro Hrončok - 19.1.0-5 - Rebuilt for Python 3.8.0rc1 (#1748018)