Drop python 2 for F32+ (bz#1767517)

epel9
Orion Poplawski 5 years ago
parent 730169d649
commit 35d3fc4840

@ -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 <orion@nwra.com> - 2.8.1-2
- Drop python 2 for F32+ (bz#1767517)
* Sat Oct 5 2019 Orion Poplawski <orion@nwra.com> - 2.8.1-1
- Update to 2.8.1

Loading…
Cancel
Save