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

Deprecation: pkg_resources.declare_namespace #81

Open
lukasjuhrich opened this issue Sep 24, 2024 · 0 comments
Open

Deprecation: pkg_resources.declare_namespace #81

lukasjuhrich opened this issue Sep 24, 2024 · 0 comments

Comments

@lukasjuhrich
Copy link

lukasjuhrich commented Sep 24, 2024

Installing the package and enabling PYTHONDEVMODE=1 yields the following warning:

/opt/pycroft/venv/lib/python3.11/site-packages/pkg_resources/__init__.py:2832: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('sphinxcontrib')`.
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

As a fix, this line can just be removed (although you should double check in your build-process that the contents actually end up in the distribution):

__import__('pkg_resources').declare_namespace(__name__)

lukasjuhrich added a commit to agdsn/sphinxcontrib-httpdomain that referenced this issue Sep 24, 2024
lukasjuhrich added a commit to agdsn/sphinxcontrib-httpdomain that referenced this issue Sep 24, 2024
lukasjuhrich added a commit to agdsn/sphinxcontrib-httpdomain that referenced this issue Sep 24, 2024
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