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

breaking pkg_resources usage #179

Open
guruofgentoo opened this issue Mar 8, 2023 · 0 comments
Open

breaking pkg_resources usage #179

guruofgentoo opened this issue Mar 8, 2023 · 0 comments

Comments

@guruofgentoo
Copy link

pkg_resources usage is deprecated in setuptools==67.5.0:

.tempenv/lib/python3.10/site-packages/formencode/__init__.py:3: in <module>
    from pkg_resources import get_distribution, DistributionNotFound
.tempenv/lib/python3.10/site-packages/pkg_resources/__init__.py:121: in <module>
    warnings.warn("pkg_resources is deprecated as an API", DeprecationWarning)

Actually, as of setuptools==67.3.1, we begin getting deprecation warnings depending on other packages installed.

.tox/py310/lib/python3.10/site-packages/formencode/__init__.py:3: in <module>
    from pkg_resources import get_distribution, DistributionNotFound
.tox/py310/lib/python3.10/site-packages/pkg_resources/__init__.py:3258: in <module>
    def _initialize_master_working_set():
.tox/py310/lib/python3.10/site-packages/pkg_resources/__init__.py:3232: in _call_aside
    f(*args, **kwargs)
.tox/py310/lib/python3.10/site-packages/pkg_resources/__init__.py:3283: in _initialize_master_working_set
    tuple(dist.activate(replace=False) for dist in working_set)
.tox/py310/lib/python3.10/site-packages/pkg_resources/__init__.py:3283: in <genexpr>
    tuple(dist.activate(replace=False) for dist in working_set)
.tox/py310/lib/python3.10/site-packages/pkg_resources/__init__.py:2804: in activate
    declare_namespace(pkg)
.tox/py310/lib/python3.10/site-packages/pkg_resources/__init__.py:2298: in declare_namespace
    warnings.warn(msg, DeprecationWarning, stacklevel=2)
E   DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google')`.
E   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

Can we change how the version number is defined in formencode to resolve this?

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