nzbToMedia/libs/common/setuptools/dep_util.py
Clinton Hall f98d6fff65
Add Python 3.12 and fix Radarr handling (#1989)
* Added Python3.12 and future 3.13

* Fix Radarr result handling

* remove py2.7 and py3.7 support
2024-02-28 15:47:04 +13:00

17 lines
659 B
Python

from ._distutils import _modified
from .warnings import SetuptoolsDeprecationWarning
def __getattr__(name):
if name not in ['newer_group', 'newer_pairwise_group']:
raise AttributeError(name)
SetuptoolsDeprecationWarning.emit(
"dep_util is Deprecated. Use functions from setuptools.modified instead.",
"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)