Skip to content

Stop using pkg_resources #67

@0x26res

Description

@0x26res

pkg_resources is beeing deprecated.

.venv/lib/python3.12/site-packages/pytest_tornado/plugin.py:6: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  import pkg_resources

I think other packages do something like this:

if sys.version_info >= (3, 9, 0):
    from importlib import resources
else:
    import pkg_resources

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions