From 35d3fc48408926ab627391d437cfed7234d3042c Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Nov 04 2019 04:13:56 +0000 Subject: Drop python 2 for F32+ (bz#1767517) --- diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index 124e58a..f46da4d 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -1,6 +1,12 @@ %?python_enable_dependency_generator %global srcname pytest-cov +%if 0%{?fedora} >= 32 +%bcond_with python2 +%else +%bcond_without python2 +%endif + Name: python-%{srcname} Version: 2.8.1 Release: 1%{?dist} @@ -17,6 +23,7 @@ Py.test plugin for coverage reporting with support for both centralised and distributed testing, including subprocesses and multiprocessing for Python. +%if %{with python2} %package -n python2-%{srcname} Summary: Pytest plugin for coverage reporting BuildRequires: python2-devel @@ -35,6 +42,7 @@ BuildRequires: python2-setuptools %description -n python2-%{srcname} Py.test plugin for coverage reporting with support for both centralised and distributed testing, including subprocesses and multiprocessing for Python 2. +%endif %package -n python%{python3_pkgversion}-%{srcname} @@ -62,13 +70,17 @@ rm -rf *.egg-info %build +%if %{with python2} %py2_build +%endif %py3_build %install %py3_install +%if %{with python2} %py2_install +%endif %check @@ -85,10 +97,12 @@ py.test-%{python3_version} -vv \ and not test_multiprocessing_pool and not test_multiprocessing_pool_terminate and not test_multiprocessing_pool_close" +%if %{with python2} %files -n python2-%{srcname} %license LICENSE %doc AUTHORS.rst CHANGELOG.rst CONTRIBUTING.rst README.rst %{python2_sitelib}/* +%endif %files -n python%{python3_pkgversion}-%{srcname} %license LICENSE @@ -97,6 +111,9 @@ py.test-%{python3_version} -vv \ %changelog +* Sun Nov 3 2019 Orion Poplawski - 2.8.1-2 +- Drop python 2 for F32+ (bz#1767517) + * Sat Oct 5 2019 Orion Poplawski - 2.8.1-1 - Update to 2.8.1