We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d148d9e commit c836172Copy full SHA for c836172
setuptools/dep_util.py
@@ -1,14 +1,16 @@
1
-import warnings
2
-
3
from ._distutils import _modified
+from .warnings import SetuptoolsDeprecationWarning
4
5
6
def __getattr__(name):
7
if name not in ['newer_group', 'newer_pairwise_group']:
8
raise AttributeError(name)
9
- warnings.warn(
+ SetuptoolsDeprecationWarning.emit(
10
"dep_util is Deprecated. Use functions from setuptools.modified instead.",
11
- DeprecationWarning,
12
- 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),
13
+ # Warning added in v69.0.0 on 2023/11/20,
14
+ # See https://github.com/pypa/setuptools/discussions/4128
15
)
16
return getattr(_modified, name)
0 commit comments