[packages/python3-jaraco.test] - updated dependencies, added tests, switched to pyproject build
qboosh
qboosh at pld-linux.org
Sat Nov 29 19:00:44 CET 2025
commit 37486ed0da313116e8330118f872bd14870061f6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Nov 29 19:00:52 2025 +0100
- updated dependencies, added tests, switched to pyproject build
python3-jaraco.test.spec | 40 ++++++++++++++++++++++------------------
1 file changed, 22 insertions(+), 18 deletions(-)
---
diff --git a/python3-jaraco.test.spec b/python3-jaraco.test.spec
index b876fe7..bc9150e 100644
--- a/python3-jaraco.test.spec
+++ b/python3-jaraco.test.spec
@@ -1,7 +1,7 @@
#
# Conditional build:
%bcond_without doc # API documentation
-%bcond_with tests # unit tests (missing in sdist)
+%bcond_without tests # unit tests
Summary: Functions and fixtures for facilitating tests
Summary(pl.UTF-8): Narzędzia do testów autorstwa jaraco
@@ -14,24 +14,34 @@ Group: Libraries/Python
Source0: https://files.pythonhosted.org/packages/source/j/jaraco.test/jaraco_test-%{version}.tar.gz
# Source0-md5: 59a83c80a6341b989652a7208c8145f4
URL: https://pypi.org/project/jaraco.test/
-BuildRequires: python3-modules >= 1:3.7
-BuildRequires: python3-setuptools >= 1:56
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.8
+BuildRequires: python3-setuptools >= 1:61.2
BuildRequires: python3-setuptools_scm >= 3.4.1
-BuildRequires: python3-toml
%if %{with tests}
+BuildRequires: python3-jaraco.collections
+BuildRequires: python3-jaraco.context
+BuildRequires: python3-jaraco.functools
BuildRequires: python3-pytest >= 6
+# lint only
+#BuildRequires: python3-pytest-checkdocs >= 2.4
+#BuildRequires: python3-pytest-cov
+#BuildRequires: python3-pytest-enabler >= 2.2
+#BuildRequires: python3-pytest-mypy
+#BuildRequires: python3-pytest-ruff >= 0.2.1
%endif
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
+BuildRequires: rpmbuild(macros) >= 2.044
%if %{with doc}
BuildRequires: python3-furo
-BuildRequires: python3-jaraco.packaging >= 9
+BuildRequires: python3-jaraco.packaging >= 9.3
BuildRequires: python3-rst.linker >= 1.9
+#BuildRequires: python3-sphinx-lint
BuildRequires: sphinx-pdg-3 >= 3.5
-#BuildRequires: sphinx-lint
%endif
Requires: python3-jaraco
-Requires: python3-modules >= 1:3.7
+Requires: python3-modules >= 1:3.8
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -55,18 +65,12 @@ Dokumentacja API modułu Pythona jaraco.test.
%prep
%setup -q -n jaraco_test-%{version}
-# stub for setuptools
-cat >setup.py <<EOF
-from setuptools import setup
-setup()
-EOF
-
%build
-%py3_build
+%py3_build_pyproject
%if %{with tests}
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS=... \
+PYTEST_PLUGINS=jaraco.test.http \
%{__python3} -m pytest tests
%endif
@@ -78,7 +82,7 @@ sphinx-build-3 -b html docs docs/build/html
%install
rm -rf $RPM_BUILD_ROOT
-%py3_install
+%py3_install_pyproject
%clean
rm -rf $RPM_BUILD_ROOT
@@ -87,7 +91,7 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc LICENSE README.rst NEWS.rst
%{py3_sitescriptdir}/jaraco/test
-%{py3_sitescriptdir}/jaraco.test-%{version}-py*.egg-info
+%{py3_sitescriptdir}/jaraco_test-%{version}.dist-info
%if %{with doc}
%files apidocs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-jaraco.test.git/commitdiff/37486ed0da313116e8330118f872bd14870061f6
More information about the pld-cvs-commit
mailing list