[packages/python3-pytest-html] - python-pytest-html.spec updated to 4.1.1 for python 3.8+

qboosh qboosh at pld-linux.org
Tue Jan 27 19:30:56 CET 2026


commit bbe8136b50e6dad9fa6c9047145cdad3fe56f1a0
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jan 27 19:31:07 2026 +0100

    - python-pytest-html.spec updated to 4.1.1 for python 3.8+

 python-pytest-html.spec  | 121 -----------------------------------------------
 python3-pytest-html.spec | 100 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 100 insertions(+), 121 deletions(-)
---
diff --git a/python-pytest-html.spec b/python-pytest-html.spec
deleted file mode 100644
index 471fd3a..0000000
--- a/python-pytest-html.spec
+++ /dev/null
@@ -1,121 +0,0 @@
-#
-# Conditional build:
-%bcond_with	tests	# unit tests (failing)
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-Summary:	pytest plugin for generating HTML reports
-Summary(pl.UTF-8):	Wtyczka pytesta do generowania raportów HTML
-Name:		python-pytest-html
-# keep 1.x here for python2 support
-Version:	1.22.1
-Release:	3
-License:	MPL v2.0
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/pytest-html/
-Source0:	https://files.pythonhosted.org/packages/source/p/pytest-html/pytest-html-%{version}.tar.gz
-# Source0-md5:	16dbaffa45c78a3d28cfa424b9ab069a
-URL:		https://pypi.org/project/pytest-html/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-BuildRequires:	python-setuptools_scm
-%if %{with tests}
-BuildRequires:	python-pytest >= 3.0
-BuildRequires:	python-pytest-metadata
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.6
-BuildRequires:	python3-setuptools
-BuildRequires:	python3-setuptools_scm
-%if %{with tests}
-BuildRequires:	python3-pytest >= 3.0
-BuildRequires:	python3-pytest-metadata
-%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-html is a plugin for pytest that generates a HTML report for
-the test results.
-
-%description -l pl.UTF-8
-pytest-html to wtyczka pytesta generująca raport HTML do wyników
-testów.
-
-%package -n python3-pytest-html
-Summary:	pytest plugin for generating HTML reports
-Summary(pl.UTF-8):	Wtyczka pytesta do generowania raportów HTML
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.6
-
-%description -n python3-pytest-html
-pytest-html is a plugin for pytest that generates a HTML report for
-the test results.
-
-%description -n python3-pytest-html -l pl.UTF-8
-pytest-html to wtyczka pytesta generująca raport HTML do wyników
-testów.
-
-%prep
-%setup -q -n pytest-html-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS=pytest_html.plugin,pytest_metadata.plugin,pytest_mock.plugin,pytest_rerunfailures \
-PYTHONPATH=$(pwd) \
-%{__python} -m pytest -v -r a testing
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS=pytest_html.plugin,pytest_metadata.plugin,pytest_mock.plugin,pytest_rerunfailures \
-PYTHONPATH=$(pwd) \
-%{__python3} -m pytest -v -r a testing
-%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_html
-%{py_sitescriptdir}/pytest_html-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-pytest-html
-%defattr(644,root,root,755)
-%doc CHANGES.rst LICENSE README.rst
-%{py3_sitescriptdir}/pytest_html
-%{py3_sitescriptdir}/pytest_html-%{version}-py*.egg-info
-%endif
diff --git a/python3-pytest-html.spec b/python3-pytest-html.spec
new file mode 100644
index 0000000..9505cad
--- /dev/null
+++ b/python3-pytest-html.spec
@@ -0,0 +1,100 @@
+#
+# Conditional build:
+%bcond_without	doc		# Sphinx documentation
+%bcond_without	tests		# unit tests
+%bcond_with	inttests	# integration tests (require selenium with chromium driver setup)
+
+Summary:	pytest plugin for generating HTML reports
+Summary(pl.UTF-8):	Wtyczka pytesta do generowania raportów HTML
+Name:		python3-pytest-html
+Version:	4.1.1
+Release:	1
+License:	MPL v2.0
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/pytest-html/
+Source0:	https://files.pythonhosted.org/packages/source/p/pytest-html/pytest_html-%{version}.tar.gz
+# Source0-md5:	118e7d3cd68443945419e42e7e759667
+URL:		https://pypi.org/project/pytest-html/
+BuildRequires:	python3-build
+BuildRequires:	python3-hatch-vcs >= 0.3
+BuildRequires:	python3-hatchling
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.8
+%if %{with tests}
+BuildRequires:	python3-assertpy >= 1.1
+BuildRequires:	python3-bs4 >= 4.11.1
+BuildRequires:	python3-jinja2 >= 3.0.0
+BuildRequires:	python3-pytest >= 7.0.0
+BuildRequires:	python3-pytest-metadata >= 2.0.0
+BuildRequires:	python3-pytest-mock >= 3.7.0
+BuildRequires:	python3-pytest-rerunfailures >= 11.1.2
+%{?with_inttests:BuildRequires:	python3-selenium}
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+%if %{with doc}
+BuildRequires:	python3-sphinx_rtd_theme
+BuildRequires:	sphinx-pdg-3
+%endif
+Requires:	python3-modules >= 1:3.8
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+pytest-html is a plugin for pytest that generates a HTML report for
+the test results.
+
+%description -l pl.UTF-8
+pytest-html to wtyczka pytesta generująca raport HTML do wyników
+testów.
+
+%package apidocs
+Summary:	API documentation for Python pytest_html module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona pytest_html
+Group:		Documentation
+
+%description apidocs
+API documentation for Python pytest_html module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona pytest_html.
+
+%prep
+%setup -q -n pytest_html-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+CI=1 \
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_html.plugin,pytest_metadata.plugin,pytest_mock.plugin,pytest_rerunfailures \
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest -v -r a testing%{!?with_inttests:/test_unit.py}
+%endif
+
+%if %{with doc}
+PYTHONPATH=$(pwd)/src \
+%{__make} -C docs html \
+	SPHINXBUILD=sphinx-build-3
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%{py3_sitescriptdir}/pytest_html
+%{py3_sitescriptdir}/pytest_html-%{version}.dist-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_static,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-html.git/commitdiff/bbe8136b50e6dad9fa6c9047145cdad3fe56f1a0



More information about the pld-cvs-commit mailing list