[packages/python-pytest-instafail] - new
qboosh
qboosh at pld-linux.org
Tue Jul 15 18:51:17 CEST 2025
commit 9e561dbb9e34fda97c2a832b1fd1536ca6242c5e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Jul 15 18:52:42 2025 +0200
- new
python-pytest-instafail.spec | 118 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 118 insertions(+)
---
diff --git a/python-pytest-instafail.spec b/python-pytest-instafail.spec
new file mode 100644
index 0000000..978cf98
--- /dev/null
+++ b/python-pytest-instafail.spec
@@ -0,0 +1,118 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+%bcond_without python2 # CPython 2.x module
+%bcond_with python3 # CPython 3.x module (built from python3-pytest-instafail.spec)
+
+Summary: pytest plugin to show failures instantly
+Summary(pl.UTF-8): Wtyczka pytesta do natychmiastowego pokazywania niepowodzeń
+Name: python-pytest-instafail
+# keep 0.4.x here for python2 support
+Version: 0.4.2
+Release: 1
+License: BSD
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/pytest-instafail/
+Source0: https://files.pythonhosted.org/packages/source/p/pytest-instafail/pytest-instafail-%{version}.tar.gz
+# Source0-md5: c6c1c2b7f73f07e96ce6da7f7358b8c9
+URL: https://pypi.org/project/pytest-instafail/
+%if %{with python2}
+BuildRequires: python-modules >= 1:2.7
+BuildRequires: python-setuptools
+%if %{with tests}
+BuildRequires: python-pytest >= 2.9
+%endif
+%endif
+%if %{with python3}
+BuildRequires: python3-modules >= 1:3.5
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-pytest >= 2.9
+%endif
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python-modules >= 1:2.7
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+pytest-instafail is a plugin for pytest that shows failures and errors
+instantly instead of waiting until the end of test session.
+
+%description -l pl.UTF-8
+pytest-instafail to wtyczka pytesta pokazująca niepowodzenia i błędy
+natychmiast zamiast oczekiwania na koniec sesji testów.
+
+%package -n python3-pytest-instafail
+Summary: pytest plugin to show failures instantly
+Summary(pl.UTF-8): Wtyczka pytesta do natychmiastowego pokazywania niepowodzeń
+Group: Libraries/Python
+Requires: python3-modules >= 1:3.5
+
+%description -n python3-pytest-instafail
+pytest-instafail is a plugin for pytest that shows failures and errors
+instantly instead of waiting until the end of test session.
+
+%description -n python3-pytest-instafail -l pl.UTF-8
+pytest-instafail to wtyczka pytesta pokazująca niepowodzenia i błędy
+natychmiast zamiast oczekiwania na koniec sesji testów.
+
+%prep
+%setup -q -n pytest-instafail-%{version}
+
+%build
+%if %{with python2}
+%py_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_instafail \
+PYTHONPATH=$(pwd) \
+%{__python} -m pytest test_instafail.py
+%endif
+%endif
+
+%if %{with python3}
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_instafail \
+PYTHONPATH=$(pwd) \
+%{__python3} -m pytest test_instafail.py
+%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 CHANGES.rst LICENSE README.rst
+%{py_sitescriptdir}/pytest_instafail.py[co]
+%{py_sitescriptdir}/pytest_instafail-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-pytest-instafail
+%defattr(644,root,root,755)
+%doc CHANGES.rst LICENSE README.rst
+%{py3_sitescriptdir}/pytest_instafail.py
+%{py3_sitescriptdir}/__pycache__/pytest_instafail.cpython-*.py[co]
+%{py3_sitescriptdir}/pytest_instafail-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pytest-instafail.git/commitdiff/9e561dbb9e34fda97c2a832b1fd1536ca6242c5e
More information about the pld-cvs-commit
mailing list