lint: remove pkg_resources usage #28208

pull fanquake wants to merge 1 commits into bitcoin:master from fanquake:drop_pkg_resources changing 1 files +4 −3
  1. fanquake commented at 9:12 AM on August 3, 2023: member

    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

  2. lint: remove pkg_resources usage
    `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
    6ac4aa18ef
  3. DrahtBot commented at 9:12 AM on August 3, 2023: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

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

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

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

  4. fanquake commented at 9:54 AM on August 3, 2023: member

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

  5. fanquake closed this on Aug 3, 2023

  6. fanquake deleted the branch on Sep 11, 2023
  7. bitcoin locked this on Sep 10, 2024
Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-14 21:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me