Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions newsfragments/3085.feature.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Set a deadline for the removal of pkg_resources later this year (December).
7 changes: 5 additions & 2 deletions pkg_resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,11 @@

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

Expand Down
4 changes: 2 additions & 2 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ filterwarnings=
# Avoid errors when testing pkg_resources.declare_namespace
ignore:.*pkg_resources\.declare_namespace.*:DeprecationWarning

# suppress known deprecation
ignore:pkg_resources is deprecated:DeprecationWarning
# suppress known deprecation pypa/setuptools#3085
ignore:pkg_resources is deprecated:UserWarning

# Dependencies might not have been updated yet
default:onerror argument is deprecated, use onexc instead
Expand Down
Loading