Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow imports of setuptools.dep_util.newer_group with deprecation warning #4127

Merged
merged 2 commits into from Nov 21, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions newsfragments/4126.bugfix.rst
@@ -0,0 +1,2 @@
Fixed imports of ``setuptools.dep_util.newer_group``.
A deprecation warning is issued instead of a hard failure.
2 changes: 1 addition & 1 deletion setuptools/dep_util.py
Expand Up @@ -4,7 +4,7 @@


def __getattr__(name):
if name not in ['newer_pairwise_group']:
if name not in ['newer_group', 'newer_pairwise_group']:
raise AttributeError(name)
warnings.warn(
"dep_util is Deprecated. Use functions from setuptools.modified instead.",
Expand Down