Skip to content

Commit

Permalink
Fix tox for Python >= 3.12
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
rominf committed Jun 28, 2024
1 parent 491fce1 commit 6dc21dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ deps =
pytest-profiling
pytest-sugar
py # needed for pytest-sugar as it doesn't declare dependency on it.
setuptools
!nocov: coverage>=7.0.1
!nocov: coverage[toml]
!nocov: coverage-conditional-plugin
Expand Down

0 comments on commit 6dc21dd

Please sign in to comment.