public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Mamoru TASAKA <mtasaka@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/python-astroquery] rawhide: Fix build with Python 3.15
Date: Mon, 06 Jul 2026 10:40:15 GMT [thread overview]
Message-ID: <178333441502.1.1678993997247096582.rpms-python-astroquery-2d9ce573b0e0@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-astroquery
Branch : rawhide
Commit : 2d9ce573b0e067ddcbe25e63275f8f6a56c6d455
Author : Mamoru TASAKA <mtasaka@fedoraproject.org>
Date : 2026-07-02T13:34:46+09:00
Stats : +38/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-astroquery/c/2d9ce573b0e067ddcbe25e63275f8f6a56c6d455?branch=rawhide
Log:
Fix build with Python 3.15
---
diff --git a/astroquery-0.4.11-astropy_helpers-fix-module-loading-for-python-3.15.patch b/astroquery-0.4.11-astropy_helpers-fix-module-loading-for-python-3.15.patch
new file mode 100644
index 0000000..d9607ae
--- /dev/null
+++ b/astroquery-0.4.11-astropy_helpers-fix-module-loading-for-python-3.15.patch
@@ -0,0 +1,37 @@
+From 3b9aadcc2f08dd805a238fe1a7860531b6b9ecc7 Mon Sep 17 00:00:00 2001
+From: Mamoru TASAKA <mtasaka@fedoraproject.org>
+Date: Thu, 2 Jul 2026 11:42:23 +0900
+Subject: [PATCH] astropy_helpers: fix module loading for python 3.15
+
+python 3.15 removes importlib.abc.Loader.load_module.loader.load_module .
+https://docs.python.org/3.15/whatsnew/3.15.html#zipimport
+https://docs.python.org/ja/3/library/importlib.html#importlib.abc.Loader.load_module
+
+Replace with exec_module()
+
+Note that astropy_helpers is removed on astroquery-0.4.12:
+https://github.com/astropy/astroquery/pull/3521
+
+So this patch will never be upstreamed.
+---
+ astropy_helpers/astropy_helpers/utils.py | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/astropy_helpers/astropy_helpers/utils.py b/astropy_helpers/astropy_helpers/utils.py
+index 83da415..4d562ac 100644
+--- a/astropy_helpers/astropy_helpers/utils.py
++++ b/astropy_helpers/astropy_helpers/utils.py
+@@ -217,7 +217,9 @@ def import_file(filename, name=None):
+ raise ImportError('Could not import file {0}'.format(filename))
+
+ loader = import_machinery.SourceFileLoader(name, filename)
+- mod = loader.load_module()
++ spec = importlib.util.spec_from_loader(name, loader)
++ mod = importlib.util.module_from_spec(spec)
++ loader.exec_module(mod)
+
+ return mod
+
+--
+2.55.0
+
diff --git a/python-astroquery.spec b/python-astroquery.spec
index 3b47611..c705904 100644
--- a/python-astroquery.spec
+++ b/python-astroquery.spec
@@ -8,6 +8,7 @@ Summary: Python module to access astronomical online data resources
License: BSD-3-Clause
URL: http://pypi.python.org/pypi/%{srcname}
Source0: %{pypi_source}
+Patch0: astroquery-0.4.11-astropy_helpers-fix-module-loading-for-python-3.15.patch
BuildArch: noarch
BuildRequires: python3-devel
reply other threads:[~2026-07-06 10:40 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=178333441502.1.1678993997247096582.rpms-python-astroquery-2d9ce573b0e0@fedoraproject.org \
--to=mtasaka@fedoraproject.org \
--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