public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Karolina Surma <ksurma@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/python-google-cloud-core] rawhide: Fix build with Python 3.15.0b1
Date: Wed, 03 Jun 2026 09:59:04 GMT	[thread overview]
Message-ID: <178048074418.1.15806174913413951513.rpms-python-google-cloud-core-4ba40dfa87dc@fedoraproject.org> (raw)

            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
 
 

                 reply	other threads:[~2026-06-03  9:59 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=178048074418.1.15806174913413951513.rpms-python-google-cloud-core-4ba40dfa87dc@fedoraproject.org \
    --to=ksurma@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