From 00740f5e262c572b08000bbbc5f04faeb4e6d73c Mon Sep 17 00:00:00 2001 From: smartEBL <79155718+smartEBL@users.noreply.github.com> Date: Tue, 25 Oct 2022 12:16:56 +0200 Subject: [PATCH] Add py as dependency (#555) 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ß 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",