Modify ↓
Opened 19 months ago
Last modified 19 months ago
#13606 new defect
DeprecationWarning: pkg_resources is deprecated as an API
Reported by: | Jun Omae | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 1.6.1 |
Component: | general | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
setuptools
warns pkg_resources is deprecated as an API
since 67.5.0.
- https://github.com/pypa/setuptools/commit/a1aeda391a0c462ea53627bcdf50dd4c0daadaed
- https://github.com/pypa/setuptools/blob/v67.8.0/pkg_resources/__init__.py#L16-L20
Migration guide
- https://importlib-resources.readthedocs.io/en/latest/migration.html
- https://importlib-metadata.readthedocs.io/en/latest/migration.html
$ git grep -w pkg_resources | wc -l 86 $ git grep -h '^from *pkg_resources\>\|\<pkg_resources\.' \ > | sed -e 's/.*\(\<pkg_resources\.[A-Za-z0-9_]*\>\).*/\1/' \ > | sort -u from pkg_resources import DistributionNotFound from pkg_resources import DistributionNotFound, get_distribution from pkg_resources import parse_version from pkg_resources import parse_version as pv from pkg_resources import resource_exists, resource_filename from pkg_resources import resource_filename from pkg_resources import resource_listdir, resource_string from pkg_resources import working_set, DistributionNotFound, \ pkg_resources.Distribution pkg_resources.DistributionNotFound pkg_resources.Environment pkg_resources.find_distributions pkg_resources.get_distribution pkg_resources.parse_version pkg_resources.require pkg_resources.resource_exists pkg_resources.resource_filename pkg_resources.resource_listdir pkg_resources.set_extraction_path pkg_resources.working_set
Attachments (0)
Note:
See TracTickets
for help on using tickets.