public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Federico Pellegrin <fede@evolware.org>
To: git-commits@fedoraproject.org
Subject: [rpms/python-photutils] epel10: Prepare photutils for EPEL10 build
Date: Fri, 26 Jun 2026 03:42:09 GMT	[thread overview]
Message-ID: <178244532983.1.7758131785802115842.rpms-python-photutils-3626ee8518b9@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-06-26  3:42 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=178244532983.1.7758131785802115842.rpms-python-photutils-3626ee8518b9@fedoraproject.org \
    --to=fede@evolware.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