commit bb297d738577469bde0e4f7405b67a8b4d78b5fe
Author: Jakub Bogusz <[email protected]>
Date:   Tue Nov 14 21:46:05 2023 +0100

    - python-pytest-cov.spec updated to 4.1.0 for python 3.7+; removes 
deprecated hook warnings

 python-pytest-cov.spec => python3-pytest-cov.spec | 81 ++---------------------
 1 file changed, 7 insertions(+), 74 deletions(-)
---
diff --git a/python-pytest-cov.spec b/python3-pytest-cov.spec
similarity index 54%
rename from python-pytest-cov.spec
rename to python3-pytest-cov.spec
index 534a44a..4f3d045 100644
--- a/python-pytest-cov.spec
+++ b/python3-pytest-cov.spec
@@ -2,58 +2,39 @@
 # Conditional build:
 %bcond_without doc             # Sphinx documentation
 %bcond_with    tests           # py.test tests [sensitive to coverage and 
pytest output, few tests fail for me]
-%bcond_with    tests_py2       # Python 2 py.test tests [require some modules 
sources + the above]
-%bcond_without python2         # CPython 2.x module
-%bcond_without python3         # CPython 3.x module
 
 Summary:       pytest plugin for measuring coverage
 Summary(pl.UTF-8):     Wtyczka pytest do mierzenia pokrycia
-Name:          python-pytest-cov
-# keep 2.x here for python2 support
-Version:       2.12.1
+Name:          python3-pytest-cov
+Version:       4.1.0
 Release:       1
 License:       MIT
 Group:         Libraries/Python
 #Source0Download: https://pypi.org/simple/pytest-cov/
 Source0:       
https://files.pythonhosted.org/packages/source/p/pytest-cov/pytest-cov-%{version}.tar.gz
-# Source0-md5: 4fb4f91505545f48a2164b4dfdb1ecdc
+# Source0-md5: 593d6458518d96ebc63ea69eaf17840f
 URL:           https://github.com/pytest-dev/pytest-cov
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%if %{with tests_py2}
-BuildRequires: python-coverage >= 5.2.1
-BuildRequires: python-fields
-BuildRequires: python-process_tests >= 2.0.2
-BuildRequires: python-pytest >= 4.6
-BuildRequires: python-pytest-xdist >= 1.27.0
-BuildRequires: python-six
-BuildRequires: python-toml
-BuildRequires: python-virtualenv
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.5
+BuildRequires: python3-modules >= 1:3.7
 BuildRequires: python3-setuptools
 %if %{with tests}
 BuildRequires: python3-coverage >= 5.2.1
 BuildRequires: python3-fields
 BuildRequires: python3-process_tests >= 2.0.2
-BuildRequires: python3-pytest >= 4.6
+BuildRequires: python3-pytest >= 4.6.10
 BuildRequires: python3-pytest-xdist >= 1.27.0
 BuildRequires: python3-six
 BuildRequires: python3-toml
 BuildRequires: python3-virtualenv
 %endif
-%endif
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.714
 %if %{with doc}
 BuildRequires: python3-docutils >= 0.16
+BuildRequires: python3-jinja2
 BuildRequires: python3-sphinx_py3doc_enhanced_theme >= 2.4.0
 BuildRequires: sphinx-pdg-3 >= 3.0.3
 %endif
-Requires:      python-modules >= 1:2.7
+Requires:      python3-modules >= 1:3.7
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -67,22 +48,6 @@ Ta wtyczka tworzy raporty pokrycia. Obsługuje testowanie
 zcentraliwowane i rozproszone, zarówno w trybie "load", jak i "each".
 Obsługuje także pokrycie podprocesów.
 
-%package -n python3-pytest-cov
-Summary:       pytest plugin for measuring coverage
-Summary(pl.UTF-8):     Wtyczka pytest do mierzenia pokrycia
-Group:         Libraries/Python
-Requires:      python3-modules >= 1:3.5
-
-%description -n python3-pytest-cov
-This plugin produces coverage reports. It supports centralised testing
-and distributed testing in both load and each modes. It also supports
-coverage of subprocesses.
-
-%description -n python3-pytest-cov -l pl.UTF-8
-Ta wtyczka tworzy raporty pokrycia. Obsługuje testowanie
-zcentraliwowane i rozproszone, zarówno w trybie "load", jak i "each".
-Obsługuje także pokrycie podprocesów.
-
 %package apidocs
 Summary:       Documentation for pytest-cov module
 Summary(pl.UTF-8):     Dokumentacja do modułu pytest-cov
@@ -98,18 +63,6 @@ Dokumentacja do modułu pytest-cov.
 %setup -q -n pytest-cov-%{version}
 
 %build
-%if %{with python2}
-%py_build
-
-%if %{with tests_py2}
-PYTHONPATH=$(pwd)/src:$(pwd)/tests \
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS=pytest_cov.plugin,xdist.looponfail,xdist.plugin \
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
 %py3_build
 
 %if %{with tests}
@@ -118,7 +71,6 @@ PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 PYTEST_PLUGINS=pytest_cov.plugin,xdist.looponfail,xdist.plugin \
 %{__python3} -m pytest tests
 %endif
-%endif
 
 %if %{with doc}
 sphinx-build-3 -b html docs docs/_build/html
@@ -127,36 +79,17 @@ sphinx-build-3 -b html docs docs/_build/html
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
 %py3_install
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS.rst CHANGELOG.rst LICENSE README.rst
-%{py_sitescriptdir}/pytest-cov.pth
-%{py_sitescriptdir}/pytest_cov
-%{py_sitescriptdir}/pytest_cov-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-pytest-cov
-%defattr(644,root,root,755)
-%doc AUTHORS.rst CHANGELOG.rst LICENSE README.rst
 %{py3_sitescriptdir}/pytest-cov.pth
 %{py3_sitescriptdir}/pytest_cov
 %{py3_sitescriptdir}/pytest_cov-%{version}-py*.egg-info
-%endif
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-cov.git/commitdiff/bb297d738577469bde0e4f7405b67a8b4d78b5fe

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to