Skip to content

Deprecation: pkg_resources.declare_namespace #81

@lukasjuhrich

Description

@lukasjuhrich

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__)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions