public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-google-cloud-dns] rawhide: Fix build with Python 3.15.0b1
@ 2026-06-06  9:18 Karolina Surma
  0 siblings, 0 replies; only message in thread
From: Karolina Surma @ 2026-06-06  9:18 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-google-cloud-dns
Branch : rawhide
Commit : 11a474abbb39879a08badec67ebe7097111aeb42
Author : Karolina Surma <ksurma@redhat.com>
Date   : 2026-06-06T09:18:15+00:00
Stats  : +4/-4 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-google-cloud-dns/c/11a474abbb39879a08badec67ebe7097111aeb42?branch=rawhide

Log:
Fix build with Python 3.15.0b1

---
diff --git a/python-google-cloud-dns.spec b/python-google-cloud-dns.spec
index bb0c191..5001663 100644
--- a/python-google-cloud-dns.spec
+++ b/python-google-cloud-dns.spec
@@ -56,10 +56,10 @@ 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
+# Remove legacy pkg_resources namespace declarations so Python uses PEP 420
+# implicit namespaces and can find google-cloud-core and google-api-core.
+rm google/__init__.py google/cloud/__init__.py
+%pytest tests/unit
 %endif
 
 %files -n python3-%{srcname} -f %{pyproject_files}

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-06  9:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-06  9:18 [rpms/python-google-cloud-dns] 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