[packages/python3-pytest-subtests] - new

qboosh qboosh at pld-linux.org
Sun Sep 11 15:30:42 CEST 2022


commit 77b2a1b4d0f66a02dbdec3651b10f51e2859f1e9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Sep 11 15:30:47 2022 +0200

    - new

 python3-pytest-subtests.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
---
diff --git a/python3-pytest-subtests.spec b/python3-pytest-subtests.spec
new file mode 100644
index 0000000..2966901
--- /dev/null
+++ b/python3-pytest-subtests.spec
@@ -0,0 +1,60 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+Summary:	unittest subTest() support and subtests fixture
+Summary(pl.UTF-8):	Obsługa subTest() i wyposażenie subtests dla szkieletu unittest
+Name:		python3-pytest-subtests
+# note: 0.7+ require pytest 7
+Version:	0.6.0
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/pytest-subtests/
+Source0:	https://files.pythonhosted.org/packages/source/p/pytest-subtests/pytest-subtests-%{version}.tar.gz
+# Source0-md5:	5feacd1c1316a03968a358940a114e04
+URL:		https://pypi.org/project/pytest-subtests/
+BuildRequires:	python3-modules >= 1:3.6
+BuildRequires:	python3-setuptools >= 1:40.0
+BuildRequires:	python3-setuptools_scm
+%if %{with tests}
+BuildRequires:	python3-pytest >= 6.0
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+unittest subTest() support and subtests fixture.
+
+%description -l pl.UTF-8
+Obsługa subTest() i wyposażenie subtests dla szkieletu unittest.
+
+%prep
+%setup -q -n pytest-subtests-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_subtests \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.rst LICENSE README.rst
+%{py3_sitescriptdir}/pytest_subtests.py
+%{py3_sitescriptdir}/__pycache__/pytest_subtests.cpython-*.py[co]
+%{py3_sitescriptdir}/pytest_subtests-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-subtests.git/commitdiff/77b2a1b4d0f66a02dbdec3651b10f51e2859f1e9



More information about the pld-cvs-commit mailing list