aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-07-06 19:23:36 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2024-07-06 19:25:17 +0300
commit722236d305e4fc745e9ba28e377d167e2914f3f7 (patch)
tree738d92dd6377a3124aaf4e661c24699ec344e525
parentstart work on 0.10.31 (diff)
downloadpkgcheck-722236d305e4fc745e9ba28e377d167e2914f3f7.tar.gz
pkgcheck-722236d305e4fc745e9ba28e377d167e2914f3f7.tar.bz2
pkgcheck-722236d305e4fc745e9ba28e377d167e2914f3f7.zip
PythonCompatCheck: add whitelist for backports
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r--src/pkgcheck/checks/python.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/pkgcheck/checks/python.py b/src/pkgcheck/checks/python.py
index 229bb3e9..13ec6311 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 @@ class PythonCompatCheck(Check):
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):