From e1f8783a6956216a12f98e690e4b10486b093013 Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Tue, 21 Nov 2023 09:57:44 +0000 Subject: [PATCH 1/2] Allow imports of setuptools.dep_util.newer_group with deprecation warning --- setuptools/dep_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setuptools/dep_util.py b/setuptools/dep_util.py index e30cd41b49..c8ab14c8f2 100644 --- a/setuptools/dep_util.py +++ b/setuptools/dep_util.py @@ -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.", From 7d90e9fa01dbcf05f1ab2f15627effcb70df930c Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Tue, 21 Nov 2023 09:59:32 +0000 Subject: [PATCH 2/2] Add newsfragment --- newsfragments/4126.bugfix.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 newsfragments/4126.bugfix.rst diff --git a/newsfragments/4126.bugfix.rst b/newsfragments/4126.bugfix.rst new file mode 100644 index 0000000000..467a94887a --- /dev/null +++ b/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.