8000 Set a deadline for the removal of pkg_resources later this year (Dece… · pypa/setuptools@9c28cdf · GitHub
[go: up one dir, main page]

Skip to content

Commit 9c28cdf

Browse files
committed
Set a deadline for the removal of pkg_resources later this year (December).
Ref #3085
1 parent a3bfef9 commit 9c28cdf

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

newsfragments/3085.feature.1.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Set a deadline for the removal of pkg_resources later this year (December).

pkg_resources/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,11 @@
9797

9898
warnings.warn(
9999
"pkg_resources is deprecated as an API. "
100-
"See https://setuptools.pypa.io/en/latest/pkg_resources.html",
101-
DeprecationWarning,
100+
"See https://setuptools.pypa.io/en/latest/pkg_resources.html. "
101+
"The pkg_resources package is slated for removal as early as "
102+
"2025-11-30. Refrain from using this package or pin to "
103+
"Setuptools<81.",
104+
UserWarning,
102105
stacklevel=2,
103106
)
104107

0 commit comments

Comments
 (0)
0