[packages/python3-pytest-check] - updated to 2.6.0

qboosh qboosh at pld-linux.org
Tue Nov 18 18:28:29 CET 2025


commit fc2b73e31548318bbf6d056ce1e988fbba8c2f30
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Nov 18 18:28:29 2025 +0100

    - updated to 2.6.0

 python3-pytest-check.spec | 49 +++++++++++++++++++++--------------------------
 1 file changed, 22 insertions(+), 27 deletions(-)
---
diff --git a/python3-pytest-check.spec b/python3-pytest-check.spec
index 5dbd7b3..0e522d5 100644
--- a/python3-pytest-check.spec
+++ b/python3-pytest-check.spec
@@ -5,22 +5,27 @@
 Summary:	pytest plugin that allows multiple failures per test
 Summary(pl.UTF-8):	Wtyczka pytesta pozwalająca na wiele niepowodzeń z jednego testu
 Name:		python3-pytest-check
-Version:	2.1.4
-Release:	3
+Version:	2.6.0
+Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/pytest-check/
-Source0:	https://files.pythonhosted.org/packages/source/p/pytest-check/pytest-check-%{version}.tar.gz
-# Source0-md5:	bbc65a525885581375623fbf187700c6
+Source0:	https://files.pythonhosted.org/packages/source/p/pytest-check/pytest_check-%{version}.tar.gz
+# Source0-md5:	86e283eb801b15632b1c5ad354088b7c
 URL:		https://pypi.org/project/pytest-check/
-BuildRequires:	python3-modules >= 1:3.7
-BuildRequires:	python3-setuptools
+BuildRequires:	python3-build
+BuildRequires:	python3-hatchling
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.9
 %if %{with tests}
-BuildRequires:	python3-pytest
+BuildRequires:	python3-pytest >= 7.0.0
+%if "%{_ver_lt %{py3_ver} 3.11}" == "1"
+BuildRequires:	python3-typing_extensions >= 4.12.2
+%endif
 %endif
 BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-Requires:	python3-modules >= 1:3.7
+BuildRequires:	rpmbuild(macros) >= 2.044
+Requires:	python3-modules >= 1:3.9
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -35,24 +40,10 @@ Wtyczka pytesta pozwalająca na wiele niepowodzeń z jednego testu.
 Ta wtyczka była przepisaną wtyczką pytest-expect, z nową nazwą.
 
 %prep
-%setup -q -n pytest-check-%{version}
-
-# stub to build with setuptools instead of flit
-cat >setup.py <<EOF
-from setuptools import setup
-setup()
-EOF
-
-sed -ne 's/^Summary: //p' PKG-INFO > summary.txt
-
-cat >>pyproject.toml <<EOF
-[tool.setuptools.dynamic]
-description = {file = ["summary.txt"]}
-version = {attr = "pytest_check.__version__"}
-EOF
+%setup -q -n pytest_check-%{version}
 
 %build
-%py3_build
+%py3_build_pyproject
 
 %if %{with tests}
 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
@@ -64,7 +55,10 @@ PYTHONPATH=$(pwd)/src \
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%py3_install
+%py3_install_pyproject
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -p examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -73,4 +67,5 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc LICENSE.txt README.md changelog.md
 %{py3_sitescriptdir}/pytest_check
-%{py3_sitescriptdir}/pytest_check-%{version}-py*.egg-info
+%{py3_sitescriptdir}/pytest_check-%{version}.dist-info
+%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-check.git/commitdiff/fc2b73e31548318bbf6d056ce1e988fbba8c2f30




More information about the pld-cvs-commit mailing list