public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sergio Pascual <sergiopr@fis.ucm.es>
To: git-commits@fedoraproject.org
Subject: [rpms/python-photutils] epel10: New upstream source (1.5.0)
Date: Fri, 26 Jun 2026 03:41:58 GMT	[thread overview]
Message-ID: <178244531855.1.15338329405081138195.rpms-python-photutils-57b2ba6929b5@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-photutils
Branch : epel10
Commit : 57b2ba6929b556f5e183b5947fcccf180776b801
Author : Sergio Pascual <sergiopr@fis.ucm.es>
Date   : 2022-09-02T01:08:08+02:00
Stats  : +69/-30 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/python-photutils/c/57b2ba6929b556f5e183b5947fcccf180776b801?branch=epel10

Log:
New upstream source (1.5.0)

---
diff --git a/.gitignore b/.gitignore
index 98ada62..1d66f38 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,4 @@
 /photutils-1.0.1.tar.gz
 /photutils-1.0.2.tar.gz
 /photutils-1.1.0.tar.gz
+/photutils-1.5.0.tar.gz

diff --git a/photutils-fixtest-angle.patch b/photutils-fixtest-angle.patch
new file mode 100644
index 0000000..50db103
--- /dev/null
+++ b/photutils-fixtest-angle.patch
@@ -0,0 +1,49 @@
+diff -ur photutils-1.5.0/photutils/aperture/ellipse.py photutils-1.5.0.fixtest/photutils/aperture/ellipse.py
+--- photutils-1.5.0/photutils/aperture/ellipse.py	2022-07-13 05:03:16.000000000 +0200
++++ photutils-1.5.0.fixtest/photutils/aperture/ellipse.py	2022-09-01 18:32:14.585596085 +0200
+@@ -228,7 +228,7 @@
+         theta_deg = self._theta_radians * 180. / np.pi
+         for xy_position in xy_positions:
+             patches.append(mpatches.Ellipse(xy_position, 2. * self.a,
+-                                            2. * self.b, theta_deg,
++                                            2. * self.b, angle=theta_deg,
+                                             **patch_kwargs))
+ 
+         if self.isscalar:
+@@ -395,9 +395,9 @@
+         theta_deg = self._theta_radians * 180. / np.pi
+         for xy_position in xy_positions:
+             patch_inner = mpatches.Ellipse(xy_position, 2. * self.a_in,
+-                                           2. * self.b_in, theta_deg)
++                                           2. * self.b_in, angle=theta_deg)
+             patch_outer = mpatches.Ellipse(xy_position, 2. * self.a_out,
+-                                           2. * self.b_out, theta_deg)
++                                           2. * self.b_out, angle=theta_deg)
+             path = self._make_annulus_path(patch_inner, patch_outer)
+             patches.append(mpatches.PathPatch(path, **patch_kwargs))
+ 
+Sólo en photutils-1.5.0.fixtest/photutils/aperture: .ellipse.py.swp
+diff -ur photutils-1.5.0/photutils/aperture/rectangle.py photutils-1.5.0.fixtest/photutils/aperture/rectangle.py
+--- photutils-1.5.0/photutils/aperture/rectangle.py	2022-07-13 05:03:16.000000000 +0200
++++ photutils-1.5.0.fixtest/photutils/aperture/rectangle.py	2022-09-01 18:31:24.812810408 +0200
+@@ -253,7 +253,7 @@
+         theta_deg = self._theta_radians * 180. / np.pi
+         for xy_position in xy_positions:
+             patches.append(mpatches.Rectangle(xy_position, self.w, self.h,
+-                                              theta_deg, **patch_kwargs))
++                                              angle=theta_deg, **patch_kwargs))
+ 
+         if self.isscalar:
+             return patches[0]
+@@ -430,9 +430,9 @@
+         theta_deg = self._theta_radians * 180. / np.pi
+         for xy_in, xy_out in zip(inner_xy_positions, outer_xy_positions):
+             patch_inner = mpatches.Rectangle(xy_in, self.w_in, self.h_in,
+-                                             theta_deg)
++                                             angle=theta_deg)
+             patch_outer = mpatches.Rectangle(xy_out, self.w_out, self.h_out,
+-                                             theta_deg)
++                                             angle=theta_deg)
+             path = self._make_annulus_path(patch_inner, patch_outer)
+             patches.append(mpatches.PathPatch(path, **patch_kwargs))
+ 

diff --git a/python-photutils.spec b/python-photutils.spec
index ade256d..7bc0784 100644
--- a/python-photutils.spec
+++ b/python-photutils.spec
@@ -3,13 +3,14 @@
 %global srcname photutils
 
 Name: python-%{srcname}
-Version: 1.1.0
-Release: 6%{?dist}
+Version: 1.5.0
+Release: 1%{?dist}
 Summary: Astropy affiliated package for image photometry tasks
 License: BSD
 
 URL: http://photutils.readthedocs.org/en/latest/index.html
 Source0: %{pypi_source}
+Patch0: photutils-fixtest-angle.patch
 
 BuildRequires: gcc
 
@@ -27,21 +28,6 @@ Photutils contains functions for:
 Summary: %{summary}
 
 BuildRequires: python3-devel
-BuildRequires: %{py3_dist setuptools}
-BuildRequires: %{py3_dist setuptools_scm}
-BuildRequires: %{py3_dist Cython}
-BuildRequires: %{py3_dist numpy} >= 1.17
-BuildRequires: %{py3_dist extension-helpers}
-BuildRequires: %{py3_dist astropy} >= 4.0
-%if %{with check}
-# Optional
-BuildRequires: %{py3_dist pytest}
-BuildRequires: %{py3_dist pytest-astropy}
-BuildRequires: %{py3_dist scipy}
-BuildRequires: %{py3_dist scikit-image} >= 0.14.2
-BuildRequires: %{py3_dist scikit-learn}
-BuildRequires: %{py3_dist matplotlib} >= 2.2
-%endif
 
 Recommends: %{py3_dist scipy}
 Recommends: %{py3_dist scikit-image} >= 0.14.2
@@ -51,30 +37,33 @@ Recommends: %{py3_dist matplotlib} >= 2.2
 %description -n python3-%{srcname} %_description
 
 %prep
-%autosetup -n %{srcname}-%{version}
+%autosetup -n %{srcname}-%{version} -p1
+sed -i 's/oldest-supported-numpy/numpy/g' pyproject.toml
+# No py311 yet
+sed -i 's/38,39,310/38,39,310,311/g' tox.ini
+
+%generate_buildrequires
+%pyproject_buildrequires -t -e %{toxenv}-test
 
 %build
-%py3_build
+%pyproject_wheel
 
 %install
-%py3_install
+%pyproject_install
+%pyproject_save_files photutils
 
 %if %{with check}
 %check
-export PYTHONDONTWRITEBYTECODE=1
-export PYTEST_ADDOPTS="-v -p no:cacheprovider"
-pushd %{buildroot}/%{python3_sitearch}
- pytest-%{python3_version} photutils
-popd
+%{tox} 
 %endif 
 
-%files -n python3-%{srcname}
+%files -n python3-%{srcname} -f %{pyproject_files}
 %doc README.rst
-%license LICENSE.rst
-%{python3_sitearch}/%{srcname}-%{version}-py%{python3_version}.egg-info
-%{python3_sitearch}/%{srcname}
 
 %changelog
+* Thu Sep 01 2022 Sergio Pascual <sergiopr@fedoraproject.com> - 1.5.0-1
+- New upstream source (1.5.0)
+
 * Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
 

diff --git a/sources b/sources
index f7ab5a5..51efe69 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (photutils-1.1.0.tar.gz) = ce95fc174a4cee58a760de721872f2f77eebaf035f233f8a2761bdf71de307c5ed98d391455e81af45086ba7850a80400d91b658e64ce14e26b1799df97e43cf
+SHA512 (photutils-1.5.0.tar.gz) = d6ea6bbe49bb9effad78d4a3cc9f9fe6acc108b4f922f159d0d98c187007fc4ef9ddaee9176ab61c2b3935f37e90ffeb6dfd8633d74ab5b1ff986aef125e1e45

                 reply	other threads:[~2026-06-26  3:41 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=178244531855.1.15338329405081138195.rpms-python-photutils-57b2ba6929b5@fedoraproject.org \
    --to=sergiopr@fis.ucm.es \
    --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