Edgewall Software
Modify

Opened 11 months ago

Last modified 11 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 Jun Omae)

setuptools warns pkg_resources is deprecated as an API since 67.5.0.

Migration guide


$ 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)

Change History (1)

comment:1 by Jun Omae, 11 months ago

Description: modified (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.