diff --git a/newsfragments/4360.removal.1.rst b/newsfragments/4360.removal.1.rst new file mode 100644 index 0000000000..f00d6be518 --- /dev/null +++ b/newsfragments/4360.removal.1.rst @@ -0,0 +1,2 @@ +Remove deprecated ``setuptools.dep_util``. +The provided alternative is ``setuptools.modified``. diff --git a/setuptools/dep_util.py b/setuptools/dep_util.py deleted file mode 100644 index 998ffa206e..0000000000 --- a/setuptools/dep_util.py +++ /dev/null @@ -1,16 +0,0 @@ -from ._distutils import _modified -from .warnings import SetuptoolsDeprecationWarning - - -def __getattr__(name): - if name not in ['newer_group', 'newer_pairwise_group']: - raise AttributeError(name) - SetuptoolsDeprecationWarning.emit( - "dep_util is Deprecated. Use functions from setuptools.modified instead.", - "Please use `setuptools.modified` instead of `setuptools.dep_util`.", - see_url="https://github.com/pypa/setuptools/pull/4069", - due_date=(2024, 5, 21), - # Warning added in v69.0.0 on 2023/11/20, - # See https://github.com/pypa/setuptools/discussions/4128 - ) - return getattr(_modified, name)