Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.4.6: pytest fails because test suite uses deprecated `pkg_resources #461

Open
kloczek opened this issue May 18, 2024 · 0 comments
Open

Comments

@kloczek
Copy link

kloczek commented May 18, 2024

Like it is in title ..

+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-aiosmtpd-1.4.6-2.fc37.x86_64/usr/lib64/python3.10/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-aiosmtpd-1.4.6-2.fc37.x86_64/usr/lib/python3.10/site-packages
+ /usr/bin/pytest -ra -m 'not network'
ImportError while loading conftest '/home/tkloczko/rpmbuild/BUILD/aiosmtpd-1.4.6/aiosmtpd/tests/conftest.py'.
aiosmtpd/tests/conftest.py:17: in <module>
    from pkg_resources import resource_filename
/usr/lib/python3.10/site-packages/pkg_resources/__init__.py:3292: in <module>
    def _initialize_master_working_set():
/usr/lib/python3.10/site-packages/pkg_resources/__init__.py:3266: in _call_aside
    f(*args, **kwargs)
/usr/lib/python3.10/site-packages/pkg_resources/__init__.py:3317: in _initialize_master_working_set
    tuple(dist.activate(replace=False) for dist in working_set)
/usr/lib/python3.10/site-packages/pkg_resources/__init__.py:3317: in <genexpr>
    tuple(dist.activate(replace=False) for dist in working_set)
/usr/lib/python3.10/site-packages/pkg_resources/__init__.py:2832: in activate
    declare_namespace(pkg)
/usr/lib/python3.10/site-packages/pkg_resources/__init__.py:2306: in declare_namespace
    warnings.warn(msg, DeprecationWarning, stacklevel=2)
E   DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('sphinxcontrib')`.
E   Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant