[packages/python3-subunit] Up to 1.4.6

arekm arekm at pld-linux.org
Thu Nov 12 10:21:06 CET 2026


commit 7efc8e7295e64cf88a6f57a054eeae5f793c0742
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 12 03:47:14 2026 +0100

    Up to 1.4.6

 python-subunit-tests.patch | 21 ---------------------
 python3-subunit.spec       | 35 +++++++++++++++++++----------------
 2 files changed, 19 insertions(+), 37 deletions(-)
---
diff --git a/python3-subunit.spec b/python3-subunit.spec
index 5556ba3..fe7bd88 100644
--- a/python3-subunit.spec
+++ b/python3-subunit.spec
@@ -5,27 +5,27 @@
 Summary:	subunit - streaming protocol for test results
 Summary(pl.UTF-8):	subunit - protokół strumieniowy do wyników testów
 Name:		python3-subunit
-Version:	1.4.4
-Release:	4
+Version:	1.4.6
+Release:	1
 License:	Apache v2.0 or BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/python-subunit/
-Source0:	https://files.pythonhosted.org/packages/source/p/python-subunit/python-subunit-%{version}.tar.gz
-# Source0-md5:	cb86de103e2fa2ca38db418f0d3d18a6
-Patch0:		python-subunit-tests.patch
+Source0:	https://files.pythonhosted.org/packages/source/p/python-subunit/python_subunit-%{version}.tar.gz
+# Source0-md5:	0f070d6da74dd6c68a0d25941ddbed12
 URL:		https://pypi.org/project/python-subunit/
-BuildRequires:	python3-modules >= 1:3.7
-BuildRequires:	python3-setuptools >= 1:43
-BuildRequires:	python3-testtools >= 0.9.34
+BuildRequires:	python3-iso8601
+BuildRequires:	python3-modules >= 1:3.10
+BuildRequires:	python3-setuptools >= 1:61.2
+BuildRequires:	python3-testtools >= 2.7
 %if %{with tests}
+BuildRequires:	python3-PyYAML
 BuildRequires:	python3-fixtures
 BuildRequires:	python3-hypothesis
-BuildRequires:	python3-iso8601
 BuildRequires:	python3-testscenarios
 %endif
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python3-modules >= 1:3.7
+Requires:	python3-modules >= 1:3.10
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -66,15 +66,14 @@ Pythonowe narzędzia dla protokołu strumieniowego do wyników testów
 subunit.
 
 %prep
-%setup -q -n python-subunit-%{version}
-%patch -P 0 -p1
+%setup -q -n python_subunit-%{version}
 
 %build
 %py3_build
 
 %if %{with tests}
 PYTHONPATH=$(pwd)/python \
-%{__python3} -m subunit.run subunit.tests.test_suite | PYTHONPATH=$(pwd)/python %{__python3} python/subunit/filter_scripts/subunit2pyunit.py
+%{__python3} -m subunit.run tests.test_suite | PYTHONPATH=$(pwd)/python %{__python3} python/subunit/filter_scripts/subunit2pyunit.py
 %endif
 
 %install
@@ -82,8 +81,6 @@ rm -rf $RPM_BUILD_ROOT
 
 %py3_install
 
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/subunit/tests
-
 for f in $RPM_BUILD_ROOT%{_bindir}/* ; do
 	if [ "${f%%-2}" = "$f" ]; then
 		%{__mv} "$f" "${f}-3"
@@ -96,14 +93,17 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc NEWS README.rst
+%doc NEWS README.md
 %{py3_sitescriptdir}/subunit
 %{py3_sitescriptdir}/python_subunit-%{version}-py*.egg-info
 
 %files -n subunit-python3
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/gojson2subunit-3
+%attr(755,root,root) %{_bindir}/junitxml2subunit-3
 %attr(755,root,root) %{_bindir}/subunit-1to2-3
 %attr(755,root,root) %{_bindir}/subunit-2to1-3
+%attr(755,root,root) %{_bindir}/subunit-combine-3
 %attr(755,root,root) %{_bindir}/subunit-filter-3
 %attr(755,root,root) %{_bindir}/subunit-ls-3
 %attr(755,root,root) %{_bindir}/subunit-notify-3
@@ -119,8 +119,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -n subunit-python
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/gojson2subunit
+%attr(755,root,root) %{_bindir}/junitxml2subunit
 %attr(755,root,root) %{_bindir}/subunit-1to2
 %attr(755,root,root) %{_bindir}/subunit-2to1
+%attr(755,root,root) %{_bindir}/subunit-combine
 %attr(755,root,root) %{_bindir}/subunit-filter
 %attr(755,root,root) %{_bindir}/subunit-ls
 %attr(755,root,root) %{_bindir}/subunit-notify
diff --git a/python-subunit-tests.patch b/python-subunit-tests.patch
deleted file mode 100644
index 6c9fbfa..0000000
--- a/python-subunit-tests.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-Disable test_test_protocol2, which depends on testtools own test suite.
-
---- python-subunit-1.4.3/python/subunit/tests/__init__.py.orig	2023-09-17 14:40:32.000000000 +0200
-+++ python-subunit-1.4.3/python/subunit/tests/__init__.py	2023-09-29 06:12:29.112435057 +0200
-@@ -31,7 +31,7 @@ from subunit.tests import (test_chunked,
-                            test_progress_model, test_run, test_subunit_filter,
-                            test_subunit_stats, test_subunit_tags,
-                            test_tap2subunit, test_test_protocol,
--                           test_test_protocol2, test_test_results)
-+                           test_test_results)
- 
- 
- def test_suite():
-@@ -42,7 +42,6 @@ def test_suite():
-     result.addTest(loader.loadTestsFromModule(test_progress_model))
-     result.addTest(loader.loadTestsFromModule(test_test_results))
-     result.addTest(loader.loadTestsFromModule(test_test_protocol))
--    result.addTest(loader.loadTestsFromModule(test_test_protocol2))
-     result.addTest(loader.loadTestsFromModule(test_tap2subunit))
-     result.addTest(loader.loadTestsFromModule(test_filter_to_disk))
-     result.addTest(loader.loadTestsFromModule(test_subunit_filter))
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-subunit.git/commitdiff/7efc8e7295e64cf88a6f57a054eeae5f793c0742



More information about the pld-cvs-commit mailing list