Skip to content

Conversation

@fanquake
Copy link
Member

@fanquake fanquake commented Aug 3, 2023

pkg_resources is deprecated, and warns with newer Python:

/bitcoin/test/lint/lint-python.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources

Switch to using importlib.metadata, which has existed since Python 3.8.

See: https://docs.python.org/3/library/importlib.metadata.html#module-importlib.metadata.
See: https://setuptools.pypa.io/en/latest/pkg_resources.html

`pkg_resources` is deprecated, and warns with newer Python:
```bash
/bitcoin/test/lint/lint-python.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
```

Switch to using importlib.metadata, which has existed since Python 3.8.

See:
https://docs.python.org/3/library/importlib.metadata.html#module-importlib.metadata.
See: https://setuptools.pypa.io/en/latest/pkg_resources.html
@DrahtBot
Copy link
Contributor

DrahtBot commented Aug 3, 2023

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.
A summary of reviews will appear here.

@fanquake
Copy link
Member Author

fanquake commented Aug 3, 2023

I guess packages_distributions isn't actually available until 3.10. Will ignore and come back to this later.

@fanquake fanquake closed this Aug 3, 2023
@fanquake fanquake deleted the drop_pkg_resources branch September 11, 2023 09:34
@bitcoin bitcoin locked and limited conversation to collaborators Sep 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants