From 56e0af952e4c45594f9a628cdf6e8539bba4197f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Blo=C3=9F?= Date: Tue, 25 Oct 2022 10:48:37 +0200 Subject: [PATCH] Add py as dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This dependency was implicitely set through pytest. With [1] the dependency was removed from pytest, so pytest-html fails with: ModuleNotFoundError: No module named 'py.xml'; 'py' is not a package Specify it explicitely as dependency to fix the issue. [1] https://github.com/pytest-dev/pytest/commit/19dda7c9bdc8ef71c792e0f77a9595bfad8d9248 Signed-off-by: Erik Bloß --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 5c01738b..2c120491 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ package_data={"pytest_html": ["resources/*"]}, entry_points={"pytest11": ["html = pytest_html.plugin"]}, setup_requires=["setuptools_scm"], - install_requires=["pytest>=5.0,!=6.0.0", "pytest-metadata"], + install_requires=["py>=1.8.2", "pytest>=5.0,!=6.0.0", "pytest-metadata"], license="Mozilla Public License 2.0 (MPL 2.0)", keywords="py.test pytest html report", python_requires=">=3.6",