From 07707bd5fe9be3c119f3c3fdc94ac16216a5f5bd Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Jul 24 2019 16:51:00 +0000 Subject: Try to use platform-python3-coverage --- diff --git a/python-pytest-cov.spec b/python-pytest-cov.spec index e20cbb6..aac8eb8 100644 --- a/python-pytest-cov.spec +++ b/python-pytest-cov.spec @@ -1,8 +1,9 @@ %global srcname pytest-cov +%global with_tests 0 Name: python-%{srcname} Version: 2.7.1 -Release: 2%{?dist} +Release: 2%{?dist}.1 Summary: Pytest plugin for coverage reporting License: MIT @@ -20,6 +21,7 @@ distributed testing, including subprocesses and multiprocessing for Python. Summary: Pytest plugin for coverage reporting BuildRequires: python2-devel BuildRequires: python2-setuptools +%if 0%{?with_tests} # For tests # Not packaged: python2-fields #BuildRequires: python2-pytest @@ -29,6 +31,7 @@ BuildRequires: python2-setuptools #BuildRequires: python2-six #BuildRequires: python2-virtualenv #BuildRequires: python2-pytest-xdist +%endif # with_tests %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} @@ -41,13 +44,15 @@ Summary: Pytest plugin for coverage reporting BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-pytest -BuildRequires: python%{python3_pkgversion}-coverage >= 4.4 +BuildRequires: python3.6dist(coverage) >= 4.4 +%if 0%{?with_tests} # For tests BuildRequires: python%{python3_pkgversion}-fields BuildRequires: python%{python3_pkgversion}-process-tests BuildRequires: python%{python3_pkgversion}-six BuildRequires: python%{python3_pkgversion}-virtualenv BuildRequires: python%{python3_pkgversion}-pytest-xdist +%endif # with_tests %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %description -n python%{python3_pkgversion}-%{srcname} @@ -70,6 +75,7 @@ rm -rf *.egg-info %py2_install +%if 0%{?with_tests} %check # Python 2 tests have unpackaged dependencies # test_dist_missing_data needs internet @@ -82,6 +88,7 @@ export PYTHONPATH="$(pwd)"/tests py.test-%{python3_version} -vv \ -k "not test_dist_missing_data and not test_subprocess_with_path_aliasing and not test_dist_combine_racecondition and not central_subprocess and not dist_subprocess \ and not test_multiprocessing_pool and not test_multiprocessing_pool_terminate and not test_multiprocessing_pool_close" +%endif # with_tests %files -n python2-%{srcname} @@ -96,6 +103,12 @@ py.test-%{python3_version} -vv \ %changelog +* Wed Jul 24 2019 Stephen Smoogen - 2.7.1-2.1 +- Try to use platform-python3-coverage + +* Mon Jun 24 2019 Troy Dawson - 2.7.1-2.1 +- Turn off tests for initial EPEL8 build + * Thu May 16 2019 Lumír Balhar - 2.7.1-2 - Skip three tests (multiprocessing_pool) to fix FTBFS with Python 3.8