public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Schorm <mschorm@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/PyGreSQL] rawhide: [cleanup] Drop .pyo from bytecode file globs
Date: Wed, 01 Jul 2026 14:38:16 GMT [thread overview]
Message-ID: <178291669639.1.3166491834483766481.rpms-PyGreSQL-5067b0cb2551@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/PyGreSQL
Branch : rawhide
Commit : 5067b0cb2551ea17ef1463aa15d8589fadc8a788
Author : Michal Schorm <mschorm@redhat.com>
Date : 2026-07-01T12:30:17+02:00
Stats : +2/-2 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/PyGreSQL/c/5067b0cb2551ea17ef1463aa15d8589fadc8a788?branch=rawhide
Log:
[cleanup] Drop .pyo from bytecode file globs
Python 3.5 (PEP 488) eliminated .pyo files entirely. The CPython
bytecode compiler now produces only .pyc files stored in __pycache__/
with an interpreter-specific suffix (e.g. .cpython-314.pyc). The
{c,o} glob has been a no-op on the .pyo half since Fedora 22.
The current Fedora Python Packaging Guidelines reflect this -- they
only reference .pyc files in the bytecode cache section:
https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_byte_compiling
PEP 488 (removal of .pyo):
https://peps.python.org/pep-0488/
Co-Authored-By: Claude AI <noreply@anthropic.com>
---
diff --git a/PyGreSQL.spec b/PyGreSQL.spec
index 7eb9cf3..25086df 100644
--- a/PyGreSQL.spec
+++ b/PyGreSQL.spec
@@ -70,11 +70,11 @@ find -type f -exec chmod 644 {} +
%doc docs/about.rst docs/index.rst
%{python3_sitearch}/pg/*.so
%{python3_sitearch}/pg/*.py
-%{python3_sitearch}/pg/__pycache__/*.py{c,o}
+%{python3_sitearch}/pg/__pycache__/*.pyc
%{python3_sitearch}/pg/py.typed
%{python3_sitearch}/pg/_pg.pyi
%{python3_sitearch}/pgdb/*.py
-%{python3_sitearch}/pgdb/__pycache__/*.py{c,o}
+%{python3_sitearch}/pgdb/__pycache__/*.pyc
%{python3_sitearch}/pgdb/py.typed
%{python3_sitearch}/pygresql-*.dist-info/WHEEL
%{python3_sitearch}/pygresql-*.dist-info/INSTALLER
reply other threads:[~2026-07-01 14:38 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=178291669639.1.3166491834483766481.rpms-PyGreSQL-5067b0cb2551@fedoraproject.org \
--to=mschorm@redhat.com \
--cc=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