Skip to content
Snippets Groups Projects
Commit ab4f00c6 authored by Adam Williamson's avatar Adam Williamson
Browse files

Mark tests as requiring setuptools in tox.ini and setup.py

test_client.py uses pkg_resources. That's part of setuptools,
not Python. Per
https://docs.python.org/3.12/whatsnew/3.12.html#removed

 , it
was previously included by default in venv environments, but no
longer is from 3.12 onwards, so we need to explicitly require
setuptools to ensure it's available.

Signed-off-by: default avatarAdam Williamson <awilliam@redhat.com>
parent 9682656d
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,6 @@ setup(name='mwclient',
setup_requires=pytest_runner,
tests_require=['pytest', 'pytest-cov',
'mock;python_version<"3.3"',
'responses>=0.3.0', 'responses!=0.6.0'],
'responses>=0.3.0', 'responses!=0.6.0', 'setuptools'],
zip_safe=True
)
......@@ -16,6 +16,7 @@ deps =
pytest
pytest-cov
responses
setuptools
mock
commands = py.test -v --cov mwclient test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment