dep_util.py 659 B

12345678910111213141516
  1. from ._distutils import _modified
  2. from .warnings import SetuptoolsDeprecationWarning
  3. def __getattr__(name):
  4. if name not in ['newer_group', 'newer_pairwise_group']:
  5. raise AttributeError(name)
  6. SetuptoolsDeprecationWarning.emit(
  7. "dep_util is Deprecated. Use functions from setuptools.modified instead.",
  8. "Please use `setuptools.modified` instead of `setuptools.dep_util`.",
  9. see_url="https://github.com/pypa/setuptools/pull/4069",
  10. due_date=(2024, 5, 21),
  11. # Warning added in v69.0.0 on 2023/11/20,
  12. # See https://github.com/pypa/setuptools/discussions/4128
  13. )
  14. return getattr(_modified, name)