public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-photutils] epel10: Prepare photutils for EPEL10 build
@ 2026-06-26 3:42 Federico Pellegrin
0 siblings, 0 replies; only message in thread
From: Federico Pellegrin @ 2026-06-26 3:42 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-photutils
Branch : epel10
Commit : 3626ee8518b932b6dba972da7603bb65a0cdef3a
Author : Federico Pellegrin <fede@evolware.org>
Date : 2026-06-26T05:41:11+02:00
Stats : +42/-4 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/python-photutils/c/3626ee8518b932b6dba972da7603bb65a0cdef3a?branch=epel10
Log:
Prepare photutils for EPEL10 build
---
diff --git a/0001-Relax_numpy_and_setuptools.patch b/0001-Relax_numpy_and_setuptools.patch
new file mode 100644
index 0000000..3f10b6f
--- /dev/null
+++ b/0001-Relax_numpy_and_setuptools.patch
@@ -0,0 +1,28 @@
+diff -ruN photutils-2.3.0/pyproject.toml photutils-2.3.0-b/pyproject.toml
+--- photutils-2.3.0/pyproject.toml 2025-09-16 05:37:29.000000000 +0200
++++ photutils-2.3.0-b/pyproject.toml 2026-06-20 14:50:48.003994423 +0200
+@@ -33,7 +33,7 @@
+ dynamic = ['version']
+ requires-python = '>=3.11'
+ dependencies = [
+- 'numpy >= 1.25',
++ 'numpy >= 1.23.2',
+ 'astropy >= 5.3',
+ 'scipy >= 1.11.1',
+ ]
+@@ -71,11 +71,11 @@
+
+ [build-system]
+ requires = [
+- 'setuptools >= 77.0',
++ 'setuptools >= 69.0',
+ 'setuptools_scm >= 8.0',
+- 'cython >= 3.1.0,<4',
+- 'numpy >= 2.0.0',
+- 'extension-helpers >= 1.3,<2',
++ 'cython >= 3.0.9,<4',
++ 'numpy >= 1.23.2',
++ 'extension-helpers >= 1.2,<2',
+ ]
+ build-backend = 'setuptools.build_meta'
+
diff --git a/python-photutils.spec b/python-photutils.spec
index 0610527..950a3ec 100644
--- a/python-photutils.spec
+++ b/python-photutils.spec
@@ -1,4 +1,5 @@
-%bcond_without check
+# RHEL doesn't have all dependencies to run tests
+%bcond_with check
%global srcname photutils
@@ -10,6 +11,7 @@ License: BSD-3-Clause
URL: http://photutils.readthedocs.org/en/latest/index.html
Source0: %{pypi_source}
+Patch0: 0001-Relax_numpy_and_setuptools.patch
ExcludeArch: %{ix86}
BuildRequires: gcc
@@ -40,8 +42,16 @@ Recommends: %{py3_dist matplotlib} >= 3.7
%prep
%autosetup -n %{srcname}-%{version}
+# Make sure tooling is happy with license format (in both Fedora and RHEL)
+sed -i -e "s/license = 'BSD-3-Clause'/license = {text = 'BSD-3-Clause'}/" -e "s/license-files = \['LICENSE.rst'\]//" pyproject.toml
+
+
%generate_buildrequires
-%pyproject_buildrequires -t -e %{toxenv}-test
+%if %{with check}
+%pyproject_buildrequires -t -e %{toxenv}-test -x test
+%else
+%pyproject_buildrequires
+%endif
%build
%pyproject_wheel
@@ -52,8 +62,8 @@ Recommends: %{py3_dist matplotlib} >= 3.7
%if %{with check}
%check
-%{tox}
-%endif
+%{tox}
+%endif
%files -n python3-%{srcname} -f %{pyproject_files}
%doc README.rst
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-26 3:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-26 3:42 [rpms/python-photutils] epel10: Prepare photutils for EPEL10 build Federico Pellegrin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox