Skip to content

Commit 6dc21dd

Browse files
committed
Fix tox for Python >= 3.12
Fix import error: ``` py312-cov: commands[2]> pytest --cov --cov-report=xml --cov-report=html --cov-report=term --tb=short ImportError while loading conftest '/home/rominf/dev/aiosmtpd/aiosmtpd/tests/conftest.py'. aiosmtpd/tests/conftest.py:15: in <module> from pkg_resources import resource_filename E ModuleNotFoundError: No module named 'pkg_resources' ``` by installing `setuptools`.
1 parent 491fce1 commit 6dc21dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ deps =
2828
pytest-profiling
2929
pytest-sugar
3030
py # needed for pytest-sugar as it doesn't declare dependency on it.
31+
setuptools
3132
!nocov: coverage>=7.0.1
3233
!nocov: coverage[toml]
3334
!nocov: coverage-conditional-plugin

0 commit comments

Comments
 (0)