[packages/python3-coverage] Python3 version, up to 7.6.11

arekm arekm at pld-linux.org
Sat Feb 8 18:13:25 CET 2025


commit 9d14156ac1bfcaea02f7664dd67fc03a890996cf
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Feb 8 17:46:13 2025 +0100

    Python3 version, up to 7.6.11

 python-coverage.spec => python3-coverage.spec | 92 +++------------------------
 1 file changed, 8 insertions(+), 84 deletions(-)
---
diff --git a/python-coverage.spec b/python3-coverage.spec
similarity index 53%
rename from python-coverage.spec
rename to python3-coverage.spec
index cad68e7..e5509a5 100644
--- a/python-coverage.spec
+++ b/python3-coverage.spec
@@ -1,45 +1,25 @@
 # TODO: finish doc and tests (where dependencies available in PLD)
 #
 # Conditional build:
-%bcond_without	python2	# CPython 2.x module
-%bcond_without	python3	# CPython 3.x module
 %bcond_with	doc	# Sphinx documentation
 %bcond_with	tests	# unit tests
 
 %define 	module	coverage
 Summary:	Tool for measuring code coverage of Python programs
 Summary(pl.UTF-8):	Narzędzie do szacowania pokrycia kodu programów w Pythonie
-Name:		python-%{module}
-# keep 5.x here for python2 support
-Version:	5.5
+Name:		python3-%{module}
+Version:	7.6.11
 Release:	1
 License:	Apache v2.0
 Group:		Development/Languages/Python
 #Source0Download: https://pypi.org/simple/coverage/
 Source0:	https://files.pythonhosted.org/packages/source/c/coverage/%{module}-%{version}.tar.gz
-# Source0-md5:	22e8fc8c26c46e76fb3c7f99a5f6eb92
+# Source0-md5:	ceffbc1c0eeb3001969f6a1c50c4ddbd
 URL:		http://coverage.readthedocs.org/
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires:	python-devel >= 1:2.7
-BuildRequires:	python-setuptools >= 1:42.0.2
-%if %{with tests}
-BuildRequires:	python-eventlet >= 0.25.1
-BuildRequires:	python-flaky >= 3.7.0
-BuildRequires:	python-gevent >= 1.2.2
-BuildRequires:	python-greenlet >= 0.4.15
-BuildRequires:	python-hypothesis >= 4.57.1
-BuildRequires:	python-mock >= 3.0.5
-BuildRequires:	python-pycontracts >= 1.8.12
-BuildRequires:	python-pytest >= 4.6.11
-BuildRequires:	python-pytest-xdist >= 1.34.0
-BuildRequires:	python-unittest-mixins >= 1.6
-%endif
-%endif
-%if %{with python3}
 BuildRequires:	python3-devel >= 1:3.5
 BuildRequires:	python3-setuptools >= 1:42.0.2
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with tests}
 BuildRequires:	python3-eventlet >= 0.25.1
 BuildRequires:	python3-flaky >= 3.7.0
@@ -50,18 +30,17 @@ BuildRequires:	python3-pytest >= 4.6.11
 BuildRequires:	python3-pytest-xdist >= 1.34.0
 BuildRequires:	python3-unittest-mixins >= 1.6
 %endif
-%endif
 %if %{with doc}
 BuildRequires:	python3-doc8 >= 0.8.1
 BuildRequires:	python3-pyenchant >= 3.2.0
-BuildRequires:	python3-sphinxcontrib-restbuilder >= 0.3
-BuildRequires:	python3-sphinxcontrib-spelling >= 7.1.0
 BuildRequires:	python3-sphinx_autobuild >= 2020.9.1
 BuildRequires:	python3-sphinx_rtd_theme >= 0.5.1
 BuildRequires:	python3-sphinx_tabs >= 2.0.0
+BuildRequires:	python3-sphinxcontrib-restbuilder >= 0.3
+BuildRequires:	python3-sphinxcontrib-spelling >= 7.1.0
 BuildRequires:	sphinx-pdg-3 >= 3.4.3
 %endif
-Requires:	python-modules >= 1:2.7
+Requires:	python3-modules >= 1:3.9
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -76,45 +55,16 @@ Pythonie. Monitoruje program, zapisując, które części kodu zostały
 wykonane, a następnie analizuje kod źródłowy w celu zidentyfikowania
 kodu, który mógłby zostać wykonany, ale nie był.
 
-%package -n python3-%{module}
-Summary:	Tool for measuring code coverage of Python programs
-Summary(pl.UTF-8):	Narzędzie do szacowania pokrycia kodu programów w Pythonie
-Group:		Development/Languages/Python
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-%{module}
-Coverage.py is a tool for measuring code coverage of Python programs.
-It monitors your program, noting which parts of the code have been
-executed, then analyzes the source to identify code that could have
-been executed but was not.
-
-%description -n python3-%{module} -l pl.UTF-8
-Coverage.py to narzędzie do szacowania pokrycia kodu programów w
-Pythonie. Monitoruje program, zapisując, które części kodu zostały
-wykonane, a następnie analizuje kod źródłowy w celu zidentyfikowania
-kodu, który mógłby zostać wykonany, ale nie był.
-
 %prep
 %setup -q -n %{module}-%{version}
 
 %build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-%{__python} igor.py test_with_tracer py
-%{__python} igor.py test_with_tracer c
-%endif
-%endif
-
-%if %{with python3}
 %py3_build
 
 %if %{with tests}
 %{__python3} igor.py test_with_tracer py
 %{__python3} igor.py test_with_tracer c
 %endif
-%endif
 
 %if %{with doc}
 sphinx-build -b html -aqE doc doc/_build/html
@@ -123,45 +73,19 @@ sphinx-build -b html -aqE doc doc/_build/html
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python3}
 %py3_install
-%endif
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc CHANGES.rst CONTRIBUTORS.txt NOTICE.txt README.rst
-%attr(755,root,root) %{_bindir}/coverage
-%attr(755,root,root) %{_bindir}/coverage2
-%attr(755,root,root) %{_bindir}/coverage-%{py_ver}
-%dir %{py_sitedir}/coverage
-%{py_sitedir}/coverage/*.py[co]
-%attr(755,root,root) %{py_sitedir}/coverage/tracer.so
-%{py_sitedir}/coverage/fullcoverage
-%{py_sitedir}/coverage/htmlfiles
-%{py_sitedir}/coverage-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc CHANGES.rst CONTRIBUTORS.txt NOTICE.txt README.rst
 %attr(755,root,root) %{_bindir}/coverage3
 %attr(755,root,root) %{_bindir}/coverage-%{py3_ver}
 %dir %{py3_sitedir}/coverage
 %attr(755,root,root) %{py3_sitedir}/coverage/tracer.cpython-*.so
 %{py3_sitedir}/coverage/*.py
 %{py3_sitedir}/coverage/__pycache__
-%{py3_sitedir}/coverage/fullcoverage
 %{py3_sitedir}/coverage/htmlfiles
 %{py3_sitedir}/coverage-%{version}-py*.egg-info
-%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-coverage.git/commitdiff/9d14156ac1bfcaea02f7664dd67fc03a890996cf



More information about the pld-cvs-commit mailing list