From: "Arthur Zamarin" <arthurzam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/pkgcore/pkgcheck:master commit in: testdata/repos/python/profiles/desc/, src/pkgcheck/checks/
Date: Thu, 27 Feb 2025 17:22:24 +0000 (UTC) [thread overview]
Message-ID: <1740674346.b86872a25614ca16177ca161638d8a0837cbda37.arthurzam@gentoo> (raw)
commit: b86872a25614ca16177ca161638d8a0837cbda37
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 27 16:39:06 2025 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu Feb 27 16:39:06 2025 +0000
URL: https://gitweb.gentoo.org/proj/pkgcore/pkgcheck.git/commit/?id=b86872a2
PythonCompatUpdate: ignore *t targets (freethreading)
Resolves: https://github.com/pkgcore/pkgcheck/issues/711
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
src/pkgcheck/checks/python.py | 14 +++++++++-----
testdata/repos/python/profiles/desc/python_targets.desc | 1 +
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/src/pkgcheck/checks/python.py b/src/pkgcheck/checks/python.py
index 392241b2..755272f0 100644
--- a/src/pkgcheck/checks/python.py
+++ b/src/pkgcheck/checks/python.py
@@ -577,7 +577,7 @@ class PythonCompatCheck(Check):
``python-any-r1``.
"""
- known_results = frozenset([PythonCompatUpdate])
+ known_results = frozenset({PythonCompatUpdate})
whitelist_backports = frozenset(
{
@@ -600,15 +600,19 @@ class PythonCompatCheck(Check):
# determine available PYTHON_TARGET use flags
targets = []
for target, _desc in repo.use_expand_desc.get(IUSE_PREFIX[:-1], ()):
- if target[len(IUSE_PREFIX) :].startswith("python"):
- targets.append(target[len(IUSE_PREFIX) :])
+ target = target.removeprefix(IUSE_PREFIX)
+ if target.startswith("python"):
+ targets.append(target)
+ targets = (x for x in targets if not x.endswith("t"))
multi_targets = tuple(sorted(targets, key=self.sorter))
# determine available PYTHON_SINGLE_TARGET use flags
targets = []
for target, _desc in repo.use_expand_desc.get(IUSE_PREFIX_S[:-1], ()):
- if target[len(IUSE_PREFIX_S) :].startswith("python"):
- targets.append(target[len(IUSE_PREFIX_S) :])
+ target = target.removeprefix(IUSE_PREFIX_S)
+ if target.startswith("python"):
+ targets.append(target)
+ targets = (x for x in targets if not x.endswith("t"))
single_targets = tuple(sorted(targets, key=self.sorter))
self.params = {
diff --git a/testdata/repos/python/profiles/desc/python_targets.desc b/testdata/repos/python/profiles/desc/python_targets.desc
index 8e55f2da..3f87ee55 100644
--- a/testdata/repos/python/profiles/desc/python_targets.desc
+++ b/testdata/repos/python/profiles/desc/python_targets.desc
@@ -4,4 +4,5 @@ python3_7 - Build with Python 3.7
python3_8 - Build with Python 3.8
python3_9 - Build with Python 3.9
python3_10 - Build with Python 3.10
+python3_13t - Build with Python 3.13 freethreading
pypy3 - Build for PyPy3 only
reply other threads:[~2025-02-27 17:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1740674346.b86872a25614ca16177ca161638d8a0837cbda37.arthurzam@gentoo \
--to=arthurzam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox