@@ -1,14 +1,16 @@ |
|
|
1 |
|
-import warnings |
2 |
|
- |
3 |
1 |
from ._distutils import _modified |
|
2 |
+from .warnings import SetuptoolsDeprecationWarning |
4 |
3 |
|
5 |
4 |
|
6 |
5 |
def __getattr__(name): |
7 |
6 |
if name not in ['newer_group', 'newer_pairwise_group']: |
8 |
7 |
raise AttributeError(name) |
9 |
|
-warnings.warn( |
|
8 |
+SetuptoolsDeprecationWarning.emit( |
10 |
9 |
"dep_util is Deprecated. Use functions from setuptools.modified instead.", |
11 |
|
-DeprecationWarning, |
12 |
|
-stacklevel=2, |
|
10 |
+"Please use `setuptools.modified` instead of `setuptools.dep_util`.", |
|
11 |
+see_url="https://github.com/pypa/setuptools/pull/4069", |
|
12 |
+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 |
13 |
15 |
) |
14 |
16 |
return getattr(_modified, name) |