Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-astropy for openSUSE:Factory 
checked in at 2022-12-22 16:22:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-astropy (Old)
 and      /work/SRC/openSUSE:Factory/.python-astropy.new.1835 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-astropy"

Thu Dec 22 16:22:59 2022 rev:38 rq:1044141 version:5.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-astropy/python-astropy.changes    
2022-11-29 10:53:11.052745658 +0100
+++ /work/SRC/openSUSE:Factory/.python-astropy.new.1835/python-astropy.changes  
2022-12-22 16:23:10.738065593 +0100
@@ -1,0 +2,24 @@
+Wed Dec 21 22:56:59 UTC 2022 - Ben Greiner <c...@bnavigator.de>
+
+- Update to 5.2
+  * Astropy 5.2 is a major release that adds significant new
+    functionality since the 5.1 release.
+  * In particular, this release includes:
+  * Quantity data types
+  * Updates to astropy.cosmology
+  * Topocentric ITRS Frame
+  * Enhanced Fixed Width ASCII Tables
+  * Accessing cloud-hosted FITS files
+  * Drawing the instrument beam and a physical scale bar on
+    celestial images
+  * Interior ticks and tick labels
+  * Support for tilde-prefixed paths
+  * CCDData PSF Image representation
+  * In addition to these major changes, Astropy 5.2 includes a
+    large number of smaller improvements and bug fixes.
+- Move to PEP517 build
+- Revert rpmlintrc: the whitelist error category has been removed
+  from rpmlint
+- Add astropy-pr14194-numpy1.24.patch gh#astropy/astropy#14194
+
+-------------------------------------------------------------------

Old:
----
  astropy-5.1.1.tar.gz

New:
----
  astropy-5.2.tar.gz
  astropy-pr14194-numpy1.24.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-astropy.spec ++++++
--- /var/tmp/diff_new_pack.X9Lwii/_old  2022-12-22 16:23:11.430069573 +0100
+++ /var/tmp/diff_new_pack.X9Lwii/_new  2022-12-22 16:23:11.434069597 +0100
@@ -54,33 +54,38 @@
                       %{?unbundle_wcs}
 
 Name:           python-astropy%{psuffix}
-Version:        5.1.1
+Version:        5.2
 Release:        0
 Summary:        Community-developed python astronomy tools
 License:        BSD-3-Clause
 URL:            https://astropy.org
 Source:         
https://files.pythonhosted.org/packages/source/a/astropy/astropy-%{version}.tar.gz
+# SourceRepository: https://github.com/astropy/astropy
 # Mark wcs headers as false positives for devel-file-in-non-devel-package
 # These are used by the python files so they must be available.
 Source100:      python-astropy-rpmlintrc
-# https://docs.astropy.org/en/v5.0/install.html#requirements
-BuildRequires:  %{python_module Cython >= 0.29.22}
+# PATCH-FIX-UPSTREAM
+Patch1:         
https://github.com/astropy/astropy/pull/14194.patch#/astropy-pr14194-numpy1.24.patch
+# https://docs.astropy.org/en/v5.2/install.html#requirements
+BuildRequires:  %{python_module Cython >= 0.29.30}
 BuildRequires:  %{python_module Jinja2}
 BuildRequires:  %{python_module PyYAML >= 3.13}
 BuildRequires:  %{python_module devel >= 3.8}
 BuildRequires:  %{python_module extension-helpers}
-BuildRequires:  %{python_module numpy-devel >= 1.18}
+BuildRequires:  %{python_module numpy-devel >= 1.20}
 BuildRequires:  %{python_module packaging >= 19.0}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pyerfa >= 2.0}
 BuildRequires:  %{python_module setuptools_scm >= 6.2}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  hdf5-devel
 BuildRequires:  pkgconfig
 BuildRequires:  python-rpm-macros
 Requires:       python-PyYAML >= 3.13
 Requires:       python-dbm
-Requires:       python-numpy >= 1.18
+Requires:       python-numpy >= 1.20
 Requires:       python-packaging >= 19.0
 Requires:       python-pyerfa >= 2.0
 Requires(post): update-alternatives
@@ -98,12 +103,13 @@
 Recommends:     python-mpmath
 Recommends:     python-pandas
 Recommends:     python-pyarrow >= 5
-Recommends:     python-scipy >= 1.3
+Recommends:     python-scipy >= 1.5
 Recommends:     python-setuptools
 Recommends:     python-sortedcontainers
 Recommends:     python-typing_extensions >= 3.10.0.1
 Conflicts:      perl-Data-ShowTable
 Conflicts:      python-matplotlib = 3.4.0
+Conflicts:      python-matplotlib = 3.5.2
 %if %{with system_cfitsio}
 BuildRequires:  pkgconfig(cfitsio)
 %endif
@@ -142,8 +148,8 @@
 BuildRequires:  %{python_module pytest-doctestplus >= 0.12}
 BuildRequires:  %{python_module pytest-mpl}
 BuildRequires:  %{python_module pytest-xdist}
-BuildRequires:  %{python_module sgp4}
-BuildRequires:  %{python_module skyfield}
+BuildRequires:  %{python_module sgp4 >= 2.3}
+BuildRequires:  %{python_module skyfield >= 1.20}
 # /SECTION
 %endif
 %python_subpackages
@@ -159,8 +165,6 @@
 %autosetup -p1 -n astropy-%{version}
 # avoid rpmlint zero-length error for empty module
 echo '# empty module' > astropy/samp/setup_package.py
-# Reverse gh#astropy/astropy#13205, patch MPL instead
-sed -i '/matplotlib/ s/,!=3.5.2//' setup.cfg
 
 # Make sure bundled libs are not used
 %if %{with system_cfitsio}
@@ -188,11 +192,11 @@
 
 %build
 %{?unbundle_libs}
-%python_build
+%pyproject_wheel
 
 %install
 %{?unbundle_libs}
-%python_install
+%pyproject_install
 for b in %{binaries}; do
   %python_clone -a %{buildroot}%{_bindir}/$b
 done
@@ -209,8 +213,8 @@
 donttest+=" or (test_standard_profile and test_main)"
 # segfaults on obs, but are okay when run on live system -- 
gh#astropy/astropy/13286
 donttest+=" or test_celprm or test_prjprm"
-# gh#astropy/astropy#13275
-donttest+=" or (test_precision and (test_day_frac_exact or 
test_resolution_never_decreases_utc))"
+# gh#astropy/astropy#13805 -- requires fix in matplotlib
+donttest+=" or test_units"
 %ifarch aarch64
 # doctest failure because of precision errors
   donttest+=" or bayesian_info_criterion_lsq"
@@ -248,7 +252,7 @@
 %license LICENSE.rst licenses/*
 %{expand:%(for b in %{binaries}; do echo "%%python_alternative 
%%{_bindir}/$b"; done)}
 %{python_sitearch}/astropy/
-%{python_sitearch}/astropy-%{version}*-info
+%{python_sitearch}/astropy-%{version}.dist-info
 %endif
 
 %changelog

++++++ astropy-5.1.1.tar.gz -> astropy-5.2.tar.gz ++++++
/work/SRC/openSUSE:Factory/python-astropy/astropy-5.1.1.tar.gz 
/work/SRC/openSUSE:Factory/.python-astropy.new.1835/astropy-5.2.tar.gz differ: 
char 5, line 1

++++++ astropy-pr14194-numpy1.24.patch ++++++
>From 505533d3048e9193ea00a4eaae00490cc4f1c74d Mon Sep 17 00:00:00 2001
From: "P. L. Lim" <2090236+pl...@users.noreply.github.com>
Date: Mon, 19 Dec 2022 14:41:48 -0500
Subject: [PATCH] Backport PR #14193: Fix compat with Numpy 1.24

---
 astropy/units/quantity.py                | 5 +++++
 astropy/utils/compat/numpycompat.py      | 2 +-
 astropy/utils/masked/function_helpers.py | 6 +++---
 3 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/astropy/units/quantity.py b/astropy/units/quantity.py
index b98abfafb09..1a11625ae98 100644
--- a/astropy/units/quantity.py
+++ b/astropy/units/quantity.py
@@ -1679,27 +1679,32 @@ def itemset(self, *args):
         self.view(np.ndarray).itemset(*(args[:-1] + 
(self._to_own_unit(args[-1]),)))
 
     def tostring(self, order="C"):
+        """Not implemented, use ``.value.tostring()`` instead."""
         raise NotImplementedError(
             "cannot write Quantities to string.  Write array with"
             " q.value.tostring(...)."
         )
 
     def tobytes(self, order="C"):
+        """Not implemented, use ``.value.tobytes()`` instead."""
         raise NotImplementedError(
             "cannot write Quantities to bytes.  Write array with 
q.value.tobytes(...)."
         )
 
     def tofile(self, fid, sep="", format="%s"):
+        """Not implemented, use ``.value.tofile()`` instead."""
         raise NotImplementedError(
             "cannot write Quantities to file.  Write array with 
q.value.tofile(...)"
         )
 
     def dump(self, file):
+        """Not implemented, use ``.value.dump()`` instead."""
         raise NotImplementedError(
             "cannot dump Quantities to file.  Write array with q.value.dump()"
         )
 
     def dumps(self):
+        """Not implemented, use ``.value.dumps()`` instead."""
         raise NotImplementedError(
             "cannot dump Quantities to string.  Write array with 
q.value.dumps()"
         )
diff --git a/astropy/utils/compat/numpycompat.py 
b/astropy/utils/compat/numpycompat.py
index 0698ef6279f..9b744448668 100644
--- a/astropy/utils/compat/numpycompat.py
+++ b/astropy/utils/compat/numpycompat.py
@@ -24,5 +24,5 @@
 NUMPY_LT_1_22 = not minversion(np, "1.22")
 NUMPY_LT_1_22_1 = not minversion(np, "1.22.1")
 NUMPY_LT_1_23 = not minversion(np, "1.23")
-NUMPY_LT_1_24 = not minversion(np, "1.24dev0")
+NUMPY_LT_1_24 = not minversion(np, "1.24")
 NUMPY_LT_1_25 = not minversion(np, "1.25.0.dev0+151")
diff --git a/astropy/utils/masked/function_helpers.py 
b/astropy/utils/masked/function_helpers.py
index eefd099ba4a..7440ec5b59f 100644
--- a/astropy/utils/masked/function_helpers.py
+++ b/astropy/utils/masked/function_helpers.py
@@ -12,7 +12,7 @@
 import numpy as np
 
 from astropy.units.quantity_helper.function_helpers import FunctionAssigner
-from astropy.utils.compat import NUMPY_LT_1_23, NUMPY_LT_1_25
+from astropy.utils.compat import NUMPY_LT_1_23, NUMPY_LT_1_24
 
 # This module should not really be imported, but we define __all__
 # such that sphinx can typeset the functions with docstrings.
@@ -587,7 +587,7 @@ def median(a, axis=None, out=None, **kwargs):
 
     a = Masked(a)
 
-    if NUMPY_LT_1_25:
+    if NUMPY_LT_1_24:
         keepdims = kwargs.pop("keepdims", False)
         r, k = np.lib.function_base._ureduce(
             a, func=_masked_median, axis=axis, out=out, **kwargs
@@ -643,7 +643,7 @@ def quantile(a, q, axis=None, out=None, **kwargs):
     if not np.lib.function_base._quantile_is_valid(q):
         raise ValueError("Quantiles must be in the range [0, 1]")
 
-    if NUMPY_LT_1_25:
+    if NUMPY_LT_1_24:
         keepdims = kwargs.pop("keepdims", False)
         r, k = np.lib.function_base._ureduce(
             a, func=_masked_quantile, q=q, axis=axis, out=out, **kwargs

++++++ python-astropy-rpmlintrc ++++++
--- /var/tmp/diff_new_pack.X9Lwii/_old  2022-12-22 16:23:11.518070080 +0100
+++ /var/tmp/diff_new_pack.X9Lwii/_new  2022-12-22 16:23:11.522070103 +0100
@@ -1,7 +1,4 @@
 addFilter('devel-file-in-non-devel-package .*/wcs/.*')
 addFilter('hidden-file-or-dir .*/tests/data/.*')
 addFilter('zero-length .*/tests/data/.*')
-# https://github.com/rpm-software-management/rpmlint/issues/965, 
https://docs.astropy.org/en/latest/development/testguide.html#astropy-test
-addFilter('python-tests-in-package .*astropy/.*tests')
-(No newline at EOF)
 

Reply via email to