File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1- import warnings
2-
31from ._distutils import _modified
2+ from .warnings import SetuptoolsDeprecationWarning
43
54
65def __getattr__ (name ):
76 if name not in ['newer_group' , 'newer_pairwise_group' ]:
87 raise AttributeError (name )
9- warnings . warn (
8+ SetuptoolsDeprecationWarning . emit (
109 "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
1315 )
1416 return getattr (_modified , name )
You can’t perform that action at this time.
0 commit comments