Open
Description
Bug Report
Description
Loading the module under pytest when DeprecationWarnings are treated as errors leads to the
[...]
File "/source/.venv/lib/python3.10/site-packages/drf_yasg/__init__.py", line 2, in <module>
from pkg_resources import DistributionNotFound, get_distribution
File "/source/.venv/lib/python3.10/site-packages/pkg_resources/__init__.py", line 121, in <module>
warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)
DeprecationWarning: pkg_resources is deprecated as an API
traceback.
Is this a regression?
No, it depends on the Python version instead: 3.9 does not complain, 3.10 does.
Your Environment
Ubuntu jammy with Python 3.10