diff --git a/newsfragments/4131.bugfix.rst b/newsfragments/4131.bugfix.rst new file mode 100644 index 0000000000..615c73963d --- /dev/null +++ b/newsfragments/4131.bugfix.rst @@ -0,0 +1 @@ +Added missing estimated date for removing ``setuptools.dep_util`` (deprecated in v69.0.0). diff --git a/setuptools/dep_util.py b/setuptools/dep_util.py index c8ab14c8f2..998ffa206e 100644 --- a/setuptools/dep_util.py +++ b/setuptools/dep_util.py @@ -1,14 +1,16 @@ -import warnings - from ._distutils import _modified +from .warnings import SetuptoolsDeprecationWarning def __getattr__(name): if name not in ['newer_group', 'newer_pairwise_group']: raise AttributeError(name) - warnings.warn( + SetuptoolsDeprecationWarning.emit( "dep_util is Deprecated. Use functions from setuptools.modified instead.", - DeprecationWarning, - stacklevel=2, + "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)