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

DeprecationWarning for call to pkg_resources.declare_namespace() on import. #37

Open
adamchainz opened this issue May 11, 2023 · 1 comment

Comments

@adamchainz
Copy link

setuptools 67.3.0 has deprecated pkg_resources.declare_namespace(): https://setuptools.pypa.io/en/latest/history.html#v67-3-0

This is being triggered by importing intuit-oauth:

DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('intuitlib')`.
  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
    declare_namespace(pkg)

To remain a namespace package, the __init__.py may be deleted. But I'm not sure the package needs to be a namespace package, and we may be able to use an empty __init__.py instead.

@adamchainz
Copy link
Author

namespace was added in e1483dc but without any explanation

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