diff --git a/src/pkgcheck/checks/python.py b/src/pkgcheck/checks/python.py index 229bb3e9d..13ec6311b 100644 --- a/src/pkgcheck/checks/python.py +++ b/src/pkgcheck/checks/python.py @@ -579,6 +579,18 @@ class PythonCompatCheck(Check): known_results = frozenset([PythonCompatUpdate]) + whitelist_backports = frozenset( + { + "dev-python/backports-tarfile", + "dev-python/exceptiongroup", + "dev-python/importlib-metadata", + "dev-python/taskgroup", + "dev-python/typing-extensions", + "dev-python/unittest-or-fail", + "dev-python/zipp", + } + ) + def __init__(self, *args): super().__init__(*args) repo = self.options.target_repo @@ -621,7 +633,7 @@ def deps(self, pkg, attrs=None): p for attr in (x.lower() for x in attrs) for p in iflatten_instance(getattr(pkg, attr), atom) - if not p.blocks + if not p.blocks and p.key not in self.whitelist_backports } def feed(self, pkg):