mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
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
This commit is contained in:
parent
b802aca7e1
commit
f98d6fff65
173 changed files with 17498 additions and 21001 deletions
|
@ -1,23 +1,16 @@
|
|||
from distutils.dep_util import newer_group
|
||||
from ._distutils import _modified
|
||||
from .warnings import SetuptoolsDeprecationWarning
|
||||
|
||||
# yes, this is was almost entirely copy-pasted from
|
||||
# 'newer_pairwise()', this is just another convenience
|
||||
# function.
|
||||
def newer_pairwise_group(sources_groups, targets):
|
||||
"""Walk both arguments in parallel, testing if each source group is newer
|
||||
than its corresponding target. Returns a pair of lists (sources_groups,
|
||||
targets) where sources is newer than target, according to the semantics
|
||||
of 'newer_group()'.
|
||||
"""
|
||||
if len(sources_groups) != len(targets):
|
||||
raise ValueError("'sources_group' and 'targets' must be the same length")
|
||||
|
||||
# build a pair of lists (sources_groups, targets) where source is newer
|
||||
n_sources = []
|
||||
n_targets = []
|
||||
for i in range(len(sources_groups)):
|
||||
if newer_group(sources_groups[i], targets[i]):
|
||||
n_sources.append(sources_groups[i])
|
||||
n_targets.append(targets[i])
|
||||
|
||||
return n_sources, n_targets
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue