[packages/python3-pytest-instafail] - python-pytest-instafail.spec updated to 0.5.0 for python 3.7+

qboosh qboosh at pld-linux.org
Tue Jul 15 18:54:08 CEST 2025


commit 5565f62884ec204d3b1de210fffe2c5254c8f7d1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jul 15 18:55:44 2025 +0200

    - python-pytest-instafail.spec updated to 0.5.0 for python 3.7+

 python-pytest-instafail.spec  | 118 ------------------------------------------
 python3-pytest-instafail.spec |  61 ++++++++++++++++++++++
 2 files changed, 61 insertions(+), 118 deletions(-)
---
diff --git a/python-pytest-instafail.spec b/python-pytest-instafail.spec
deleted file mode 100644
index 978cf98..0000000
--- a/python-pytest-instafail.spec
+++ /dev/null
@@ -1,118 +0,0 @@
-#
-# 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
diff --git a/python3-pytest-instafail.spec b/python3-pytest-instafail.spec
new file mode 100644
index 0000000..7b4cef7
--- /dev/null
+++ b/python3-pytest-instafail.spec
@@ -0,0 +1,61 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+Summary:	pytest plugin to show failures instantly
+Summary(pl.UTF-8):	Wtyczka pytesta do natychmiastowego pokazywania niepowodzeń
+Name:		python3-pytest-instafail
+Version:	0.5.0
+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:	209e4d58178027f1ac78a71123e4b278
+URL:		https://pypi.org/project/pytest-instafail/
+BuildRequires:	python3-modules >= 1:3.7
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-pytest >= 5
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.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.
+
+%prep
+%setup -q -n pytest-instafail-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_instafail \
+PYTHONPATH=$(pwd) \
+%{__python3} -m pytest test_instafail.py
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-instafail.git/commitdiff/5565f62884ec204d3b1de210fffe2c5254c8f7d1



More information about the pld-cvs-commit mailing list