public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-google-cloud-core] rawhide: Fix build with Python 3.15.0b1
@ 2026-06-03 9:59 Karolina Surma
0 siblings, 0 replies; only message in thread
From: Karolina Surma @ 2026-06-03 9:59 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-google-cloud-core
Branch : rawhide
Commit : 4ba40dfa87dc18b5ae1037c26811308d75b0f1ca
Author : Karolina Surma <ksurma@redhat.com>
Date : 2026-05-26T09:49:59+02:00
Stats : +7/-4 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-google-cloud-core/c/4ba40dfa87dc18b5ae1037c26811308d75b0f1ca?branch=rawhide
Log:
Fix build with Python 3.15.0b1
Assisted-By: Claude Sonnet 4.6
---
diff --git a/python-google-cloud-core.spec b/python-google-cloud-core.spec
index 7462188..14b2cb4 100644
--- a/python-google-cloud-core.spec
+++ b/python-google-cloud-core.spec
@@ -60,10 +60,13 @@ Summary: %{summary}
%pyproject_check_import
%if %{with tests}
-# NOTE(mhayden): Setting PYTHONUSERBASE as a hack for PEP 420 namespaces.
-# Thanks to churchyard for the fix.
-PYTHONUSERBASE=%{buildroot}%{_prefix} \
- %pytest tests/unit
+# Python 3.15 changed site.py internals so nspkg.pth files can no longer use
+# sys._getframe(1).f_locals['sitedir']. Without working nspkg.pth, the old
+# google/__init__.py namespace hack restricts google.__path__ to the source
+# tree, hiding google.auth from system site-packages. Removing these files
+# lets Python use implicit namespace packages (PEP 420) instead.
+find . \( -path "*/google/__init__.py" -o -path "*/google/cloud/__init__.py" \) -delete
+%pytest tests/unit
%endif
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-03 9:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-03 9:59 [rpms/python-google-cloud-core] rawhide: Fix build with Python 3.15.0b1 Karolina Surma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox