10000 DeprecationWarning for pkg_resources.declare_namespace usage in google.cloud · Issue #1000 · googleapis/python-storage · GitHub
[go: up one dir, main page]

Skip to content
DeprecationWarning for pkg_resources.declare_namespace usage in google.cloud #1000
Closed
@skshetry

Description

@skshetry

Starting from setuptools==67.3.0, it has started raising DeprecationWarning. Some libraries treat them as errors during testing.

See: https://setuptools.pypa.io/en/latest/history.html#v67-3-0.

/lib/python3.11/site-packages/pkg_resources/__init__.py:2804: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google.cloud')`.
  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)

This could be fixed by switching to new layout as specified in PEP 420, by dropping __init__.py.

See similar discussion in matplotlib/matplotlib#25244 and pypa/setuptools#3434 (comment).

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the goo 3BAE gleapis/python-storage API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0