public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-rpm-generators] rawhide: Properly handle missing METADATA on Python 3.15+
Date: Sat, 15 Aug 2026 10:47:28 GMT [thread overview]
Message-ID: <178679084889.1.18054982987535282006.rpms-python-rpm-generators-9d214678c4b3@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-rpm-generators
Branch : rawhide
Commit : 9d214678c4b3c976af53671446dc6d19ccac559f
Author : Miro Hrončok <miro@hroncok.cz>
Date : 2026-08-12T21:19:28+02:00
Stats : +6/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-rpm-generators/c/9d214678c4b3c976af53671446dc6d19ccac559f?branch=rawhide
Log:
Properly handle missing METADATA on Python 3.15+
See https://github.com/python/cpython/issues/143387
Used LLM to analyze a CI test failure.
Assisted-By: Claude Opus 4.6
---
diff --git a/pythondistdeps.py b/pythondistdeps.py
index d6f5f46..8404292 100755
--- a/pythondistdeps.py
+++ b/pythondistdeps.py
@@ -76,7 +76,12 @@ class Distribution(PathDistribution):
# Check that the initialization went well and metadata are not missing or corrupted
# name is the most important attribute, if it doesn't exist, import failed
- if not self.name or not isinstance(self.name, str):
+ # Python 3.15+ raises MetadataNotFound (FileNotFoundError) instead of returning None
+ try:
+ name = self.name
+ except FileNotFoundError:
+ name = None
+ if not name or not isinstance(name, str):
print("*** PYTHON_METADATA_FAILED_TO_PARSE_ERROR___SEE_STDERR ***")
print('Error: Python metadata at `{}` are missing or corrupted.'.format(path), file=stderr)
exit(65) # os.EX_DATAERR
reply other threads:[~2026-08-15 10:47 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=178679084889.1.18054982987535282006.rpms-python-rpm-generators-9d214678c4b3@fedoraproject.org \
--to=git-commits@fedoraproject.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