[packages/python3-sphinxtesters] - python-sphinxtesters.spec updated to 0.2.4 for python 3.8+

qboosh qboosh at pld-linux.org
Tue Apr 21 21:46:38 CEST 2026


commit 2bea3bfbe8d20f7ace5a355c481a2791214f7cc7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Apr 21 21:47:17 2026 +0200

    - python-sphinxtesters.spec updated to 0.2.4 for python 3.8+

 python-sphinxtesters-noconf.patch |  33 -----------
 python-sphinxtesters.spec         | 114 --------------------------------------
 python3-sphinxtesters.spec        |  63 +++++++++++++++++++++
 3 files changed, 63 insertions(+), 147 deletions(-)
---
diff --git a/python-sphinxtesters.spec b/python-sphinxtesters.spec
deleted file mode 100644
index 6a516c5..0000000
--- a/python-sphinxtesters.spec
+++ /dev/null
@@ -1,114 +0,0 @@
-#
-# Conditional build:
-%bcond_without	tests	# unit tests [py3 tests fail with sphinx3.x+docutils0.18 combo]
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-Summary:	Utilities for testing Sphinx extensions
-Summary(pl.UTF-8):	Narzędzia do testowania rozszerzeń Sphinksa
-Name:		python-sphinxtesters
-Version:	0.2.3
-Release:	7
-License:	BSD
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/sphinxtesters/
-Source0:	https://files.pythonhosted.org/packages/source/s/sphinxtesters/sphinxtesters-%{version}.tar.gz
-# Source0-md5:	3df3720ba757d3d8270fed5aff622852
-Patch0:		%{name}-noconf.patch
-URL:		https://pypi.org/project/sphinxtesters/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-%if %{with tests}
-BuildRequires:	python-Sphinx >= 1.4
-BuildRequires:	python-pytest
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.3
-BuildRequires:	python3-setuptools
-%if %{with tests}
-BuildRequires:	python3-Sphinx >= 1.4
-BuildRequires:	python3-pytest
-%endif
-%endif
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python-Sphinx >= 1.4
-Requires:	python-modules >= 1:2.7
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Utilities for testing Sphinx extensions.
-
-%description -l pl.UTF-8
-Narzędzia do testowania rozszerzeń Sphinksa.
-
-%package -n python3-sphinxtesters
-Summary:	Utilities for testing Sphinx extensions
-Summary(pl.UTF-8):	Narzędzia do testowania rozszerzeń Sphinksa
-Group:		Libraries/Python
-Requires:	python3-Sphinx >= 1.4
-Requires:	python3-modules >= 1:3.3
-
-%description -n python3-sphinxtesters
-Utilities for testing Sphinx extensions.
-
-%description -n python3-sphinxtesters -l pl.UTF-8
-Narzędzia do testowania rozszerzeń Sphinksa.
-
-%prep
-%setup -q -n sphinxtesters-%{version}
-%patch -P 0 -p1
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python} -m pytest sphinxtesters/tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-%{__python3} -m pytest sphinxtesters/tests
-%endif
-%endif
-
-%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 LICENSE README.rst
-%{py_sitescriptdir}/sphinxtesters
-%{py_sitescriptdir}/sphinxtesters-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-sphinxtesters
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%{py3_sitescriptdir}/sphinxtesters
-%{py3_sitescriptdir}/sphinxtesters-%{version}-py*.egg-info
-%endif
diff --git a/python3-sphinxtesters.spec b/python3-sphinxtesters.spec
new file mode 100644
index 0000000..5b89dc2
--- /dev/null
+++ b/python3-sphinxtesters.spec
@@ -0,0 +1,63 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+Summary:	Utilities for testing Sphinx extensions
+Summary(pl.UTF-8):	Narzędzia do testowania rozszerzeń Sphinksa
+Name:		python3-sphinxtesters
+Version:	0.2.4
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/sphinxtesters/
+Source0:	https://files.pythonhosted.org/packages/source/s/sphinxtesters/sphinxtesters-%{version}.tar.gz
+# Source0-md5:	cef82d57f6a2ca0c823a44b57b53a6a9
+URL:		https://pypi.org/project/sphinxtesters/
+BuildRequires:	python3-build
+BuildRequires:	python3-flit_core >= 3.4
+BuildRequires:	python3-flit_core < 4
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.8
+%if %{with tests}
+BuildRequires:	python3-Sphinx >= 1.4
+BuildRequires:	python3-pytest
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+Requires:	python3-Sphinx >= 1.4
+Requires:	python3-modules >= 1:3.8
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Utilities for testing Sphinx extensions.
+
+%description -l pl.UTF-8
+Narzędzia do testowania rozszerzeń Sphinksa.
+
+%prep
+%setup -q -n sphinxtesters-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest sphinxtesters/tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/sphinxtesters/tests
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%{py3_sitescriptdir}/sphinxtesters
+%{py3_sitescriptdir}/sphinxtesters-%{version}.dist-info
diff --git a/python-sphinxtesters-noconf.patch b/python-sphinxtesters-noconf.patch
deleted file mode 100644
index 9e947a3..0000000
--- a/python-sphinxtesters-noconf.patch
+++ /dev/null
@@ -1,33 +0,0 @@
---- sphinxtesters-0.2.3/sphinxtesters/tests/test_pagebuilder.py.orig	2019-08-07 00:44:39.000000000 +0200
-+++ sphinxtesters-0.2.3/sphinxtesters/tests/test_pagebuilder.py	2022-03-28 16:50:58.786025816 +0200
-@@ -3,10 +3,14 @@
- 
- from os.path import (dirname, join as pjoin, isdir, isfile)
- 
-+from sphinx.errors import ConfigError
-+
-+NO_CONFIG_ERRORS = (IOError, ConfigError)
- try:  # Sphinx 1.8.0b1
--    from sphinx.errors import ApplicationError as NoConfigError
-+    from sphinx.errors import ApplicationError
-+    NO_CONFIG_ERRORS = (IOError, ConfigError, ApplicationError)
- except ImportError:
--    from sphinx.errors import ConfigError as NoConfigError
-+    pass
- 
- from sphinxtesters.sphinxutils import PageBuilder
- 
-@@ -81,10 +85,10 @@ def test_bad_pagebuilder():
-         def set_page_source(cls):
-             cls.page_source = HERE
- 
--    # ConfigError as of Sphinx 1.6.6
--    # ApplicationError as of 1.8.0b1
-+    # ConfigError as of Sphinx 1.6.6 or 4.5.0
-+    # ApplicationError as of 1.8.0b1-3.5.x
-     # See imports.
--    with pytest.raises((IOError, NoConfigError)):
-+    with pytest.raises(NO_CONFIG_ERRORS):
-         TestBadPageBuilder.setup_class()
- 
- 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-sphinxtesters.git/commitdiff/2bea3bfbe8d20f7ace5a355c481a2791214f7cc7



More information about the pld-cvs-commit mailing list