Skip to content

Commit 00740f5

Browse files
authored
Add py as dependency (#555)
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] pytest-dev/pytest@19dda7c Signed-off-by: Erik Bloß <[email protected]> Signed-off-by: Erik Bloß <[email protected]>
1 parent ea89db8 commit 00740f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
package_data={"pytest_html": ["resources/*"]},
1414
entry_points={"pytest11": ["html = pytest_html.plugin"]},
1515
setup_requires=["setuptools_scm"],
16-
install_requires=["pytest>=5.0,!=6.0.0", "pytest-metadata"],
16+
install_requires=["py>=1.8.2", "pytest>=5.0,!=6.0.0", "pytest-metadata"],
1717
license="Mozilla Public License 2.0 (MPL 2.0)",
1818
keywords="py.test pytest html report",
1919
python_requires=">=3.6",

0 commit comments

Comments
 (0)