Closed
Description
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).