From c824dcc59e233a78067a64359ccaaca34af057d4 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Wed, 12 Jul 2023 12:47:52 +0200 Subject: [PATCH 01/18] Rebuilt for Python 3.12 --- APLpy.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/APLpy.spec b/APLpy.spec index 4ee4761..f76a332 100644 --- a/APLpy.spec +++ b/APLpy.spec @@ -5,7 +5,7 @@ Name: APLpy Version: 2.0.3 -Release: 19%{?dist} +Release: 20%{?dist} Summary: The Astronomical Plotting Library in Python License: MIT @@ -78,6 +78,9 @@ popd %{python3_sitelib}/aplpy/ %changelog +* Wed Jul 12 2023 Python Maint - 2.0.3-20 +- Rebuilt for Python 3.12 + * Wed Jan 18 2023 Fedora Release Engineering - 2.0.3-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From ed2a2581095afe26a5eb53ca5783cdbe0e95edea Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Thu, 13 Jul 2023 00:36:19 +0900 Subject: [PATCH 02/18] Workaround for python 3.12 change of imp module removal Workaround for astropy 5.1 astropy.tests.plugins.display removal and so on --- APLpy.spec | 13 +++++- aplpy-astropy-5.1-tests-plugins-removal.patch | 36 ++++++++++++++++ astropy_helpers-py312-imp-deprecation.patch | 42 +++++++++++++++++++ 3 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 aplpy-astropy-5.1-tests-plugins-removal.patch create mode 100644 astropy_helpers-py312-imp-deprecation.patch diff --git a/APLpy.spec b/APLpy.spec index f76a332..7c97dd5 100644 --- a/APLpy.spec +++ b/APLpy.spec @@ -5,7 +5,7 @@ Name: APLpy Version: 2.0.3 -Release: 20%{?dist} +Release: 21%{?dist} Summary: The Astronomical Plotting Library in Python License: MIT @@ -14,6 +14,12 @@ Source0: %{pypi_source} Patch0: aplpy-moved-function.patch # https://github.com/aplpy/aplpy/pull/469 Patch1: aplpy-wraps-from-functools.patch +# Workaround for python 3.12 change of imp module removal +Patch2: astropy_helpers-py312-imp-deprecation.patch +# related: +# https://github.com/astropy/astropy/pull/12633 +# astropy 5.1 removes astropy.tests.plugins.display and so on +Patch3: aplpy-astropy-5.1-tests-plugins-removal.patch BuildArch: noarch BuildRequires: python3-devel @@ -32,6 +38,7 @@ BuildRequires: python3-setuptools BuildRequires: python3-numpy BuildRequires: python3-matplotlib BuildRequires: python3-astropy +BuildRequires: python3-pytest-astropy-header # Testing BuildRequires: python3-pytest BuildRequires: python3-pillow @@ -78,6 +85,10 @@ popd %{python3_sitelib}/aplpy/ %changelog +* Wed Jul 12 2023 Mamoru TASAKA - 2.0.3-21 +- Workaround for python 3.12 change of imp module removal +- Workaround for astropy 5.1 astropy.tests.plugins.display removal and so on + * Wed Jul 12 2023 Python Maint - 2.0.3-20 - Rebuilt for Python 3.12 diff --git a/aplpy-astropy-5.1-tests-plugins-removal.patch b/aplpy-astropy-5.1-tests-plugins-removal.patch new file mode 100644 index 0000000..8824f8b --- /dev/null +++ b/aplpy-astropy-5.1-tests-plugins-removal.patch @@ -0,0 +1,36 @@ +--- APLpy-2.0.3/aplpy/conftest.py.old 2019-02-19 20:20:49.000000000 +0900 ++++ APLpy-2.0.3/aplpy/conftest.py 2023-07-13 00:18:27.256633975 +0900 +@@ -13,14 +13,19 @@ + # With older versions of Astropy, we actually need to import the pytest + # plugins themselves in order to make them discoverable by pytest. + from astropy.tests.pytest_plugins import * # noqa +-else: ++elif astropy_version < '5.1': + # As of Astropy 3.0, the pytest plugins provided by Astropy are + # automatically made available when Astropy is installed. This means it's + # not necessary to import them here, but we still need to import global + # variables that are used for configuration. + from astropy.tests.plugins.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS ++else: ++ from pytest_astropy_header.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS + +-from astropy.tests.helper import enable_deprecations_as_exceptions ++try: ++ from astropy.tests.helper import enable_deprecations_as_exceptions ++except: ++ pass + + # Uncomment the following line to treat all DeprecationWarnings as + # exceptions. For Astropy v2.0 or later, there are 2 additional keywords, +@@ -32,7 +37,10 @@ + # To ignore some specific deprecation warning messages for Python version + # MAJOR.MINOR or later, add: + # warnings_to_ignore_by_pyver={(MAJOR, MINOR): ['Message to ignore']} +-enable_deprecations_as_exceptions() ++try: ++ enable_deprecations_as_exceptions() ++except: ++ pass + + # Uncomment and customize the following lines to add/remove entries from + # the list of packages for which version numbers are displayed when running diff --git a/astropy_helpers-py312-imp-deprecation.patch b/astropy_helpers-py312-imp-deprecation.patch new file mode 100644 index 0000000..ac52527 --- /dev/null +++ b/astropy_helpers-py312-imp-deprecation.patch @@ -0,0 +1,42 @@ +--- APLpy-2.0.3/astropy_helpers/astropy_helpers/utils.py.orig 2018-12-12 20:36:12.000000000 +0900 ++++ APLpy-2.0.3/astropy_helpers/astropy_helpers/utils.py 2023-07-12 23:41:04.228876992 +0900 +@@ -3,7 +3,6 @@ + + import contextlib + import functools +-import imp + import inspect + import os + import sys +@@ -60,9 +59,9 @@ + import builtins + if hasattr(builtins, '__NUMPY_SETUP__'): + del builtins.__NUMPY_SETUP__ +- import imp ++ import importlib + import numpy +- imp.reload(numpy) ++ importlib.reload(numpy) + + try: + numpy_include = numpy.get_include() +--- APLpy-2.0.3/astropy_helpers/astropy_helpers/version_helpers.py.orig 2023-07-12 23:43:28.923036099 +0900 ++++ APLpy-2.0.3/astropy_helpers/astropy_helpers/version_helpers.py 2023-07-12 23:43:41.692050140 +0900 +@@ -21,7 +21,7 @@ + from __future__ import division + + import datetime +-import imp ++import importlib + import os + import pkgutil + import sys +@@ -278,7 +278,7 @@ + invalidate_caches() + + if version_module: +- imp.reload(version_module) ++ importlib.reload(version_module) + + + def get_pkg_version_module(packagename, fromlist=None): From ee35aeec3599e8a3372000bc4527e818b255ee42 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 19 Jul 2023 10:56:30 +0000 Subject: [PATCH 03/18] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- APLpy.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/APLpy.spec b/APLpy.spec index 7c97dd5..fe77302 100644 --- a/APLpy.spec +++ b/APLpy.spec @@ -5,7 +5,7 @@ Name: APLpy Version: 2.0.3 -Release: 21%{?dist} +Release: 22%{?dist} Summary: The Astronomical Plotting Library in Python License: MIT @@ -85,6 +85,9 @@ popd %{python3_sitelib}/aplpy/ %changelog +* Wed Jul 19 2023 Fedora Release Engineering - 2.0.3-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Wed Jul 12 2023 Mamoru TASAKA - 2.0.3-21 - Workaround for python 3.12 change of imp module removal - Workaround for astropy 5.1 astropy.tests.plugins.display removal and so on From 3af27ac7bf0a63de709c4341b66db72787d0edf8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 18 Jan 2024 12:05:35 +0000 Subject: [PATCH 04/18] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- APLpy.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/APLpy.spec b/APLpy.spec index fe77302..51aef11 100644 --- a/APLpy.spec +++ b/APLpy.spec @@ -5,7 +5,7 @@ Name: APLpy Version: 2.0.3 -Release: 22%{?dist} +Release: 23%{?dist} Summary: The Astronomical Plotting Library in Python License: MIT @@ -85,6 +85,9 @@ popd %{python3_sitelib}/aplpy/ %changelog +* Thu Jan 18 2024 Fedora Release Engineering - 2.0.3-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Wed Jul 19 2023 Fedora Release Engineering - 2.0.3-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From 59bcac8255909ed30eedbc89706cb8053d9e9ba1 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jan 2024 09:10:23 +0000 Subject: [PATCH 05/18] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- APLpy.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/APLpy.spec b/APLpy.spec index 51aef11..68807a1 100644 --- a/APLpy.spec +++ b/APLpy.spec @@ -5,7 +5,7 @@ Name: APLpy Version: 2.0.3 -Release: 23%{?dist} +Release: 24%{?dist} Summary: The Astronomical Plotting Library in Python License: MIT @@ -85,6 +85,9 @@ popd %{python3_sitelib}/aplpy/ %changelog +* Fri Jan 19 2024 Fedora Release Engineering - 2.0.3-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Thu Jan 18 2024 Fedora Release Engineering - 2.0.3-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 28cdff4101a907e8701d1bf9e6f703f27aa24b5a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 22 Jan 2024 20:42:35 +0000 Subject: [PATCH 06/18] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- APLpy.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/APLpy.spec b/APLpy.spec index 68807a1..8ccf7e7 100644 --- a/APLpy.spec +++ b/APLpy.spec @@ -5,7 +5,7 @@ Name: APLpy Version: 2.0.3 -Release: 24%{?dist} +Release: 25%{?dist} Summary: The Astronomical Plotting Library in Python License: MIT @@ -85,6 +85,9 @@ popd %{python3_sitelib}/aplpy/ %changelog +* Mon Jan 22 2024 Fedora Release Engineering - 2.0.3-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jan 19 2024 Fedora Release Engineering - 2.0.3-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 33f7a6732ac3ea4609ef8f5e8ef2d0ee5b6b3b3a Mon Sep 17 00:00:00 2001 From: Python Maint Date: Tue, 18 Jun 2024 10:54:53 +0200 Subject: [PATCH 07/18] Rebuilt for Python 3.13 --- APLpy.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/APLpy.spec b/APLpy.spec index 8ccf7e7..d3b4d7e 100644 --- a/APLpy.spec +++ b/APLpy.spec @@ -5,7 +5,7 @@ Name: APLpy Version: 2.0.3 -Release: 25%{?dist} +Release: 26%{?dist} Summary: The Astronomical Plotting Library in Python License: MIT @@ -85,6 +85,9 @@ popd %{python3_sitelib}/aplpy/ %changelog +* Tue Jun 18 2024 Python Maint - 2.0.3-26 +- Rebuilt for Python 3.13 + * Mon Jan 22 2024 Fedora Release Engineering - 2.0.3-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From d411b072dc16b0cd23d5370e93cf9b45422eb37e Mon Sep 17 00:00:00 2001 From: Sergio Pascual Date: Sat, 22 Jun 2024 20:25:49 +0200 Subject: [PATCH 08/18] Fix FTBS with python 3.13 Update packaging macros --- APLpy.spec | 50 ++++++++++++++++-------------------------------- aplpy-deps.patch | 24 +++++++++++++++++++++++ 2 files changed, 40 insertions(+), 34 deletions(-) create mode 100644 aplpy-deps.patch diff --git a/APLpy.spec b/APLpy.spec index d3b4d7e..ef63854 100644 --- a/APLpy.spec +++ b/APLpy.spec @@ -1,11 +1,8 @@ %global srcname APLpy -# Disable automatic dependency generators until we fixed (optional) deps -%{?python_disable_dependency_generator} - Name: APLpy Version: 2.0.3 -Release: 26%{?dist} +Release: 27%{?dist} Summary: The Astronomical Plotting Library in Python License: MIT @@ -20,6 +17,7 @@ Patch2: astropy_helpers-py312-imp-deprecation.patch # https://github.com/astropy/astropy/pull/12633 # astropy 5.1 removes astropy.tests.plugins.display and so on Patch3: aplpy-astropy-5.1-tests-plugins-removal.patch +Patch4: aplpy-deps.patch BuildArch: noarch BuildRequires: python3-devel @@ -35,19 +33,6 @@ PDF, PS, PNG, and SVG. Summary: The Astronomical Plotting Library in Python %{?python_provide:%python_provide python3-%{srcname}} BuildRequires: python3-setuptools -BuildRequires: python3-numpy -BuildRequires: python3-matplotlib -BuildRequires: python3-astropy -BuildRequires: python3-pytest-astropy-header -# Testing -BuildRequires: python3-pytest -BuildRequires: python3-pillow -BuildRequires: python3-reproject - -Requires: python3-numpy -Requires: python3-matplotlib -Requires: python3-astropy -Recommends: python3-pillow %description -n python3-APLpy APLpy (the Astronomical Plotting Library in Python) is a Python module aimed at @@ -59,32 +44,29 @@ PDF, PS, PNG, and SVG. %prep %autosetup -n %{srcname}-%{version} -p1 +%generate_buildrequires +%pyproject_buildrequires -x test + %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install + +%pyproject_save_files -l aplpy %check -# Empty matplotlibrc -mkdir matplotlib -touch matplotlib/matplotlibrc -export XDG_CONFIG_HOME=`pwd` -export PYTHONDONTWRITEBYTECODE=1 -export PYTEST_ADDOPTS='-p no:cacheprovider' -pushd %{buildroot}/%{python3_sitelib} - pytest-%{python3_version} aplpy || : - # This file is created by the tests - rm %{buildroot}/%{python3_sitelib}/test_label_format.png -popd +%pyproject_check_import -t -%files -n python3-APLpy + +%files -n python3-APLpy -f %{pyproject_files} %doc CHANGES.rst README.rst -%license LICENSE.md -%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info -%{python3_sitelib}/aplpy/ %changelog +* Sat Jun 22 2024 Sergio Pascual - 2.0.3-27 +- Fix FTBS with python 3.13 +- Update packaging macros + * Tue Jun 18 2024 Python Maint - 2.0.3-26 - Rebuilt for Python 3.13 diff --git a/aplpy-deps.patch b/aplpy-deps.patch new file mode 100644 index 0000000..b53ec05 --- /dev/null +++ b/aplpy-deps.patch @@ -0,0 +1,24 @@ +diff -ur a/aplpy/_astropy_init.py b/aplpy/_astropy_init.py +--- a/aplpy/_astropy_init.py 2024-06-22 19:31:12.726171055 +0200 ++++ b/aplpy/_astropy_init.py 2024-06-22 19:49:02.749642003 +0200 +@@ -112,7 +112,7 @@ + import os + from warnings import warn + from astropy.config.configuration import ( +- update_default_config, ++# update_default_config, + ConfigurationDefaultMissingError, + ConfigurationDefaultMissingWarning) + +diff -ur a/setup.cfg b/setup.cfg +--- a/setup.cfg 2024-06-22 19:31:12.726171055 +0200 ++++ b/setup.cfg 2024-06-22 19:31:51.507812458 +0200 +@@ -28,7 +28,7 @@ + url = http://aplpy.github.io + edit_on_github = False + github_project = aplpy/aplpy +-install_requires = numpy, astropy>=3.1, matplotlib>=2.0, reproject>=0.4, pyregion>=2.0, pillow>=4.0, pyavm>=0.9.4, scikit-image>=0.14, shapely>=1.6 ++install_requires = numpy, astropy>=3.1, matplotlib>=2.0, reproject>=0.4, pillow>=4.0, scikit-image>=0.14, shapely>=1.6 + # version should be PEP440 compatible (https://www.python.org/dev/peps/pep-0440/) + version = 2.0.3 + From da496ab4594776fca16d9c08c644f2058a8f7f8f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 17 Jul 2024 14:42:12 +0000 Subject: [PATCH 09/18] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- APLpy.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/APLpy.spec b/APLpy.spec index ef63854..c102587 100644 --- a/APLpy.spec +++ b/APLpy.spec @@ -2,7 +2,7 @@ Name: APLpy Version: 2.0.3 -Release: 27%{?dist} +Release: 28%{?dist} Summary: The Astronomical Plotting Library in Python License: MIT @@ -63,6 +63,9 @@ PDF, PS, PNG, and SVG. %doc CHANGES.rst README.rst %changelog +* Wed Jul 17 2024 Fedora Release Engineering - 2.0.3-28 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Sat Jun 22 2024 Sergio Pascual - 2.0.3-27 - Fix FTBS with python 3.13 - Update packaging macros From 143b64e2ac39d8155c43a72aba94848fa4b64014 Mon Sep 17 00:00:00 2001 From: Sergio Pascual Date: Thu, 29 Aug 2024 13:04:32 +0200 Subject: [PATCH 10/18] Convert to %autorelease and %autochangelog [skip changelog] --- APLpy.spec | 201 +---------------------------------------------------- changelog | 197 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 199 insertions(+), 199 deletions(-) create mode 100644 changelog diff --git a/APLpy.spec b/APLpy.spec index c102587..f909a70 100644 --- a/APLpy.spec +++ b/APLpy.spec @@ -2,7 +2,7 @@ Name: APLpy Version: 2.0.3 -Release: 28%{?dist} +Release: %autorelease Summary: The Astronomical Plotting Library in Python License: MIT @@ -63,201 +63,4 @@ PDF, PS, PNG, and SVG. %doc CHANGES.rst README.rst %changelog -* Wed Jul 17 2024 Fedora Release Engineering - 2.0.3-28 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild - -* Sat Jun 22 2024 Sergio Pascual - 2.0.3-27 -- Fix FTBS with python 3.13 -- Update packaging macros - -* Tue Jun 18 2024 Python Maint - 2.0.3-26 -- Rebuilt for Python 3.13 - -* Mon Jan 22 2024 Fedora Release Engineering - 2.0.3-25 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Fri Jan 19 2024 Fedora Release Engineering - 2.0.3-24 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Thu Jan 18 2024 Fedora Release Engineering - 2.0.3-23 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild - -* Wed Jul 19 2023 Fedora Release Engineering - 2.0.3-22 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - -* Wed Jul 12 2023 Mamoru TASAKA - 2.0.3-21 -- Workaround for python 3.12 change of imp module removal -- Workaround for astropy 5.1 astropy.tests.plugins.display removal and so on - -* Wed Jul 12 2023 Python Maint - 2.0.3-20 -- Rebuilt for Python 3.12 - -* Wed Jan 18 2023 Fedora Release Engineering - 2.0.3-19 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Wed Jul 20 2022 Fedora Release Engineering - 2.0.3-18 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Sun Jul 3 2022 Mamoru TASAKA - 2.0.3-17 -- Backport upstream patch for test failure w.r.t compatibility with astropy 5.0.1 - -* Fri Jun 17 2022 Python Maint - 2.0.3-16 -- Rebuilt for Python 3.11 - -* Thu Feb 17 2022 Sergio Pascual - 2.0.3-15 -- Fix astropy 5 function incompatibility - -* Wed Jan 19 2022 Fedora Release Engineering - 2.0.3-14 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Wed Jul 21 2021 Fedora Release Engineering - 2.0.3-13 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Fri Jun 04 2021 Python Maint - 2.0.3-12 -- Rebuilt for Python 3.10 - -* Mon Jan 25 2021 Fedora Release Engineering - 2.0.3-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Mon Jul 27 2020 Fedora Release Engineering - 2.0.3-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Thu Jul 02 2020 Sergio Pascual - 2.0.3-9 -- Add BR python3-setuptools -- Add BR python3-reproject - -* Tue May 26 2020 Miro Hrončok - 2.0.3-8 -- Rebuilt for Python 3.9 - -* Tue Jan 28 2020 Fedora Release Engineering - 2.0.3-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Thu Oct 03 2019 Miro Hrončok - 2.0.3-6 -- Rebuilt for Python 3.8.0rc1 (#1748018) - -* Mon Aug 19 2019 Miro Hrončok - 2.0.3-5 -- Rebuilt for Python 3.8 - -* Mon Aug 19 2019 Miro Hrončok - 2.0.3-4 -- Rebuilt for Python 3.8 - -* Wed Jul 24 2019 Fedora Release Engineering - 2.0.3-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Mon Mar 04 2019 Christian Dersch - 2.0.3-2 -- Disable automatic dependency generators until we fixed (optional) deps - -* Mon Feb 25 2019 Sergio Pascual - 2.0.3-1 -- New upstream version (2.0.3) - -* Sun Feb 17 2019 Sergio Pascual - 2.0-1 -- New upstream version (2.0) - -* Thu Jan 31 2019 Fedora Release Engineering - 1.1.1-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Oct 05 2018 Sergio Pascual - 1.1.1-2 -- Drop python2 subpackage - -* Thu Jul 12 2018 Fedora Release Engineering - 1.1.1-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Sun Jul 08 2018 Christian Dersch - 1.1.1-6 -- Failing tests are only deprecation warnings... Ignore them and report upstream - -* Tue Jun 19 2018 Miro Hrončok - 1.1.1-5 -- Rebuilt for Python 3.7 - -* Wed Feb 07 2018 Fedora Release Engineering - 1.1.1-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Jul 26 2017 Fedora Release Engineering - 1.1.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Fri Feb 10 2017 Fedora Release Engineering - 1.1.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Fri Jan 27 2017 Sergio Pascual - 1.1.1-1 -- New upstream version (1.1.1) -- Include license file -- Do not write pyc files when running tests - -* Mon Dec 19 2016 Miro Hrončok - 1.1-3 -- Rebuild for Python 3.6 - -* Sun Oct 02 2016 Sergio Pascual - 1.1-2 -- EVR bump - -* Sun Sep 25 2016 Sergio Pascual - 1.1-1 -- New upstream version (1.1) -- Updated spec -- Fixes bz #1380134 - -* Wed Feb 03 2016 Fedora Release Engineering - 1.0-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Tue Nov 17 2015 Sergio Pascual - 1.0-4 -- Disable some failing tests (https://github.com/aplpy/aplpy/issues/278) - -* Tue Nov 10 2015 Fedora Release Engineering - 1.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 - -* Tue Jun 16 2015 Fedora Release Engineering - 1.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Mon Mar 02 2015 Sergio Pascual - 1.0-1 -- New upstream version (1.0) -- Use license macro - -* Thu Dec 11 2014 Sergio Pascual - 0.9.14-2 -- Disable python3 tests - -* Thu Dec 11 2014 Sergio Pascual - 0.9.14-1 -- New upstream source (0.9.14), several bug fixes - -* Tue Oct 07 2014 Sergio Pascual - 0.9.13-1 -- New upstream source (0.9.13), fixes bug in 0.9.11 and 0.9.12 - -* Thu Sep 11 2014 Sergio Pascual - 0.9.12-2 -- Provide python3 subpackage -- Unbundle decorator - -* Thu Sep 11 2014 Sergio Pascual - 0.9.12-1 -- New upstream source (0.9.12) -- Tests enabled - -* Wed Sep 10 2014 Sergio Pascual - 0.9.11-2 -- Disable tests for the moment - -* Tue Jul 08 2014 Sergio Pascual - 0.9.11-1 -- Updated to new version -- Run tests on installed version -- Use python2 macros - -* Fri Jun 06 2014 Fedora Release Engineering - 0.9.8-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Fri Aug 02 2013 Fedora Release Engineering - 0.9.8-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Wed Feb 13 2013 Fedora Release Engineering - 0.9.8-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Wed Jul 18 2012 Fedora Release Engineering - 0.9.8-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Thu May 03 2012 Germán A. Racca - 0.9.8-1 -- Updated to new version -- Included tests in %%check and corresponding BRs -- Packaged tests in %%doc section - -* Mon Feb 06 2012 Germán A. Racca 0.9.6-3 -- Minor changes to spec file after approval -- Removed INSTALL file - -* Mon Jan 30 2012 Germán A. Racca 0.9.6-2 -- Changed name of spec file to match the project name - -* Mon Jan 23 2012 Germán A. Racca 0.9.6-1 -- Initial release of RPM package - +%autochangelog diff --git a/changelog b/changelog new file mode 100644 index 0000000..cf198a7 --- /dev/null +++ b/changelog @@ -0,0 +1,197 @@ +* Wed Jul 17 2024 Fedora Release Engineering - 2.0.3-28 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jun 22 2024 Sergio Pascual - 2.0.3-27 +- Fix FTBS with python 3.13 +- Update packaging macros + +* Tue Jun 18 2024 Python Maint - 2.0.3-26 +- Rebuilt for Python 3.13 + +* Mon Jan 22 2024 Fedora Release Engineering - 2.0.3-25 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 2.0.3-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jan 18 2024 Fedora Release Engineering - 2.0.3-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Jul 19 2023 Fedora Release Engineering - 2.0.3-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jul 12 2023 Mamoru TASAKA - 2.0.3-21 +- Workaround for python 3.12 change of imp module removal +- Workaround for astropy 5.1 astropy.tests.plugins.display removal and so on + +* Wed Jul 12 2023 Python Maint - 2.0.3-20 +- Rebuilt for Python 3.12 + +* Wed Jan 18 2023 Fedora Release Engineering - 2.0.3-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Jul 20 2022 Fedora Release Engineering - 2.0.3-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sun Jul 3 2022 Mamoru TASAKA - 2.0.3-17 +- Backport upstream patch for test failure w.r.t compatibility with astropy 5.0.1 + +* Fri Jun 17 2022 Python Maint - 2.0.3-16 +- Rebuilt for Python 3.11 + +* Thu Feb 17 2022 Sergio Pascual - 2.0.3-15 +- Fix astropy 5 function incompatibility + +* Wed Jan 19 2022 Fedora Release Engineering - 2.0.3-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Jul 21 2021 Fedora Release Engineering - 2.0.3-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 2.0.3-12 +- Rebuilt for Python 3.10 + +* Mon Jan 25 2021 Fedora Release Engineering - 2.0.3-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Jul 27 2020 Fedora Release Engineering - 2.0.3-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jul 02 2020 Sergio Pascual - 2.0.3-9 +- Add BR python3-setuptools +- Add BR python3-reproject + +* Tue May 26 2020 Miro Hrončok - 2.0.3-8 +- Rebuilt for Python 3.9 + +* Tue Jan 28 2020 Fedora Release Engineering - 2.0.3-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 2.0.3-6 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 2.0.3-5 +- Rebuilt for Python 3.8 + +* Mon Aug 19 2019 Miro Hrončok - 2.0.3-4 +- Rebuilt for Python 3.8 + +* Wed Jul 24 2019 Fedora Release Engineering - 2.0.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon Mar 04 2019 Christian Dersch - 2.0.3-2 +- Disable automatic dependency generators until we fixed (optional) deps + +* Mon Feb 25 2019 Sergio Pascual - 2.0.3-1 +- New upstream version (2.0.3) + +* Sun Feb 17 2019 Sergio Pascual - 2.0-1 +- New upstream version (2.0) + +* Thu Jan 31 2019 Fedora Release Engineering - 1.1.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Oct 05 2018 Sergio Pascual - 1.1.1-2 +- Drop python2 subpackage + +* Thu Jul 12 2018 Fedora Release Engineering - 1.1.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Jul 08 2018 Christian Dersch - 1.1.1-6 +- Failing tests are only deprecation warnings... Ignore them and report upstream + +* Tue Jun 19 2018 Miro Hrončok - 1.1.1-5 +- Rebuilt for Python 3.7 + +* Wed Feb 07 2018 Fedora Release Engineering - 1.1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Jan 27 2017 Sergio Pascual - 1.1.1-1 +- New upstream version (1.1.1) +- Include license file +- Do not write pyc files when running tests + +* Mon Dec 19 2016 Miro Hrončok - 1.1-3 +- Rebuild for Python 3.6 + +* Sun Oct 02 2016 Sergio Pascual - 1.1-2 +- EVR bump + +* Sun Sep 25 2016 Sergio Pascual - 1.1-1 +- New upstream version (1.1) +- Updated spec +- Fixes bz #1380134 + +* Wed Feb 03 2016 Fedora Release Engineering - 1.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Nov 17 2015 Sergio Pascual - 1.0-4 +- Disable some failing tests (https://github.com/aplpy/aplpy/issues/278) + +* Tue Nov 10 2015 Fedora Release Engineering - 1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Tue Jun 16 2015 Fedora Release Engineering - 1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Mar 02 2015 Sergio Pascual - 1.0-1 +- New upstream version (1.0) +- Use license macro + +* Thu Dec 11 2014 Sergio Pascual - 0.9.14-2 +- Disable python3 tests + +* Thu Dec 11 2014 Sergio Pascual - 0.9.14-1 +- New upstream source (0.9.14), several bug fixes + +* Tue Oct 07 2014 Sergio Pascual - 0.9.13-1 +- New upstream source (0.9.13), fixes bug in 0.9.11 and 0.9.12 + +* Thu Sep 11 2014 Sergio Pascual - 0.9.12-2 +- Provide python3 subpackage +- Unbundle decorator + +* Thu Sep 11 2014 Sergio Pascual - 0.9.12-1 +- New upstream source (0.9.12) +- Tests enabled + +* Wed Sep 10 2014 Sergio Pascual - 0.9.11-2 +- Disable tests for the moment + +* Tue Jul 08 2014 Sergio Pascual - 0.9.11-1 +- Updated to new version +- Run tests on installed version +- Use python2 macros + +* Fri Jun 06 2014 Fedora Release Engineering - 0.9.8-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Fri Aug 02 2013 Fedora Release Engineering - 0.9.8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Feb 13 2013 Fedora Release Engineering - 0.9.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Jul 18 2012 Fedora Release Engineering - 0.9.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu May 03 2012 Germán A. Racca - 0.9.8-1 +- Updated to new version +- Included tests in %%check and corresponding BRs +- Packaged tests in %%doc section + +* Mon Feb 06 2012 Germán A. Racca 0.9.6-3 +- Minor changes to spec file after approval +- Removed INSTALL file + +* Mon Jan 30 2012 Germán A. Racca 0.9.6-2 +- Changed name of spec file to match the project name + +* Mon Jan 23 2012 Germán A. Racca 0.9.6-1 +- Initial release of RPM package From 821f02b8e6c2a557faaab343671d6de3d95a9974 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 24 Sep 2024 17:47:10 +0200 Subject: [PATCH 11/18] Fix build with Matplotlib 3.9 --- ...ix-cmap-handling-with-Matplotlib-3.9.patch | 59 +++++++++++++++++++ APLpy.spec | 2 + 2 files changed, 61 insertions(+) create mode 100644 0001-Fix-cmap-handling-with-Matplotlib-3.9.patch diff --git a/0001-Fix-cmap-handling-with-Matplotlib-3.9.patch b/0001-Fix-cmap-handling-with-Matplotlib-3.9.patch new file mode 100644 index 0000000..01ecb3e --- /dev/null +++ b/0001-Fix-cmap-handling-with-Matplotlib-3.9.patch @@ -0,0 +1,59 @@ +From c9049261b3724821f4d309d85fe73cabcc04d890 Mon Sep 17 00:00:00 2001 +From: Elliott Sales de Andrade +Date: Mon, 29 Apr 2024 18:46:08 -0400 +Subject: [PATCH] Fix cmap handling with Matplotlib 3.9 + +The `matplotlib.cm.get_cmap` API was deprecated in 3.7, and removed in +3.9, but `matplotlib.pyplot.get_cmap` remains available. + +Signed-off-by: Elliott Sales de Andrade +--- + aplpy/core.py | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/aplpy/core.py b/aplpy/core.py +index c946e97..8b87b50 100644 +--- a/aplpy/core.py ++++ b/aplpy/core.py +@@ -664,7 +664,7 @@ class FITSFigure(Layers, Regions): + max_auto = vmax is None + + # The set of available functions +- cmap = plt.cm.get_cmap(cmap) ++ cmap = plt.get_cmap(cmap) + + if min_auto or max_auto: + +@@ -915,9 +915,9 @@ class FITSFigure(Layers, Regions): + self.remove_layer(layer, raise_exception=False) + + if cmap: +- cmap = plt.cm.get_cmap(cmap) ++ cmap = plt.get_cmap(cmap) + elif not colors: +- cmap = plt.cm.get_cmap('viridis') ++ cmap = plt.get_cmap('viridis') + + if data is not None: + data_contour, header_contour, wcs_contour, wcsaxes_slices = \ +@@ -1844,7 +1844,7 @@ class FITSFigure(Layers, Regions): + self._figure.apl_grayscale_invert_default = False + self._figure.apl_colorscale_cmap_default = 'viridis' + if self.image: +- self.image.set_cmap(cmap=plt.cm.get_cmap('viridis')) ++ self.image.set_cmap(cmap=plt.get_cmap('viridis')) + elif theme == 'publication': + self.frame.set_color('black') + self.frame.set_linewidth(1.0) +@@ -1853,7 +1853,7 @@ class FITSFigure(Layers, Regions): + self._figure.apl_grayscale_invert_default = True + self._figure.apl_colorscale_cmap_default = 'gist_heat' + if self.image: +- self.image.set_cmap(cmap=plt.cm.get_cmap('gist_yarg')) ++ self.image.set_cmap(cmap=plt.get_cmap('gist_yarg')) + + def world2pixel(self, xw, yw, wcs=None): + """ +-- +2.44.0 + diff --git a/APLpy.spec b/APLpy.spec index f909a70..48b4800 100644 --- a/APLpy.spec +++ b/APLpy.spec @@ -18,6 +18,8 @@ Patch2: astropy_helpers-py312-imp-deprecation.patch # astropy 5.1 removes astropy.tests.plugins.display and so on Patch3: aplpy-astropy-5.1-tests-plugins-removal.patch Patch4: aplpy-deps.patch +# https://github.com/aplpy/aplpy/pull/500 +Patch5: 0001-Fix-cmap-handling-with-Matplotlib-3.9.patch BuildArch: noarch BuildRequires: python3-devel From 65fc0732a6e2be2341f1e9fffd1c5bc644f2fa37 Mon Sep 17 00:00:00 2001 From: Sergio Pascual Date: Sun, 8 Dec 2024 21:24:30 +0100 Subject: [PATCH 12/18] Using SPDX license name --- APLpy.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/APLpy.spec b/APLpy.spec index 48b4800..7afd4b0 100644 --- a/APLpy.spec +++ b/APLpy.spec @@ -5,6 +5,7 @@ Version: 2.0.3 Release: %autorelease Summary: The Astronomical Plotting Library in Python +# SPDX license is MIT License: MIT URL: http://aplpy.github.com Source0: %{pypi_source} From 72c6d03ae8060fe094537d09f497890f6f05ff56 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jan 2025 08:22:48 +0000 Subject: [PATCH 13/18] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From c5958d7d45f88f7598cf2c8af7c2be8fea8a8064 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 20 Jan 2025 07:19:06 +0000 Subject: [PATCH 14/18] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 46d92b2f3518a8dc8d3cdd0aa5cc1d13ba763e1c Mon Sep 17 00:00:00 2001 From: Sergio Pascual Date: Sat, 12 Apr 2025 18:53:41 +0200 Subject: [PATCH 15/18] New upstream source 2.2.0 --- .gitignore | 1 + ...ix-cmap-handling-with-Matplotlib-3.9.patch | 59 ------------------- APLpy.spec | 21 ++----- aplpy-astropy-5.1-tests-plugins-removal.patch | 36 ----------- aplpy-deps.patch | 24 -------- aplpy-moved-function.patch | 12 ---- aplpy-wraps-from-functools.patch | 23 -------- astropy_helpers-py312-imp-deprecation.patch | 42 ------------- sources | 2 +- 9 files changed, 6 insertions(+), 214 deletions(-) delete mode 100644 0001-Fix-cmap-handling-with-Matplotlib-3.9.patch delete mode 100644 aplpy-astropy-5.1-tests-plugins-removal.patch delete mode 100644 aplpy-deps.patch delete mode 100644 aplpy-moved-function.patch delete mode 100644 aplpy-wraps-from-functools.patch delete mode 100644 astropy_helpers-py312-imp-deprecation.patch diff --git a/.gitignore b/.gitignore index c9ee661..7bfea74 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /APLpy-1.1.1.tar.gz /APLpy-2.0.tar.gz /APLpy-2.0.3.tar.gz +/aplpy-2.2.0.tar.gz diff --git a/0001-Fix-cmap-handling-with-Matplotlib-3.9.patch b/0001-Fix-cmap-handling-with-Matplotlib-3.9.patch deleted file mode 100644 index 01ecb3e..0000000 --- a/0001-Fix-cmap-handling-with-Matplotlib-3.9.patch +++ /dev/null @@ -1,59 +0,0 @@ -From c9049261b3724821f4d309d85fe73cabcc04d890 Mon Sep 17 00:00:00 2001 -From: Elliott Sales de Andrade -Date: Mon, 29 Apr 2024 18:46:08 -0400 -Subject: [PATCH] Fix cmap handling with Matplotlib 3.9 - -The `matplotlib.cm.get_cmap` API was deprecated in 3.7, and removed in -3.9, but `matplotlib.pyplot.get_cmap` remains available. - -Signed-off-by: Elliott Sales de Andrade ---- - aplpy/core.py | 10 +++++----- - 1 file changed, 5 insertions(+), 5 deletions(-) - -diff --git a/aplpy/core.py b/aplpy/core.py -index c946e97..8b87b50 100644 ---- a/aplpy/core.py -+++ b/aplpy/core.py -@@ -664,7 +664,7 @@ class FITSFigure(Layers, Regions): - max_auto = vmax is None - - # The set of available functions -- cmap = plt.cm.get_cmap(cmap) -+ cmap = plt.get_cmap(cmap) - - if min_auto or max_auto: - -@@ -915,9 +915,9 @@ class FITSFigure(Layers, Regions): - self.remove_layer(layer, raise_exception=False) - - if cmap: -- cmap = plt.cm.get_cmap(cmap) -+ cmap = plt.get_cmap(cmap) - elif not colors: -- cmap = plt.cm.get_cmap('viridis') -+ cmap = plt.get_cmap('viridis') - - if data is not None: - data_contour, header_contour, wcs_contour, wcsaxes_slices = \ -@@ -1844,7 +1844,7 @@ class FITSFigure(Layers, Regions): - self._figure.apl_grayscale_invert_default = False - self._figure.apl_colorscale_cmap_default = 'viridis' - if self.image: -- self.image.set_cmap(cmap=plt.cm.get_cmap('viridis')) -+ self.image.set_cmap(cmap=plt.get_cmap('viridis')) - elif theme == 'publication': - self.frame.set_color('black') - self.frame.set_linewidth(1.0) -@@ -1853,7 +1853,7 @@ class FITSFigure(Layers, Regions): - self._figure.apl_grayscale_invert_default = True - self._figure.apl_colorscale_cmap_default = 'gist_heat' - if self.image: -- self.image.set_cmap(cmap=plt.cm.get_cmap('gist_yarg')) -+ self.image.set_cmap(cmap=plt.get_cmap('gist_yarg')) - - def world2pixel(self, xw, yw, wcs=None): - """ --- -2.44.0 - diff --git a/APLpy.spec b/APLpy.spec index 7afd4b0..06d9ea4 100644 --- a/APLpy.spec +++ b/APLpy.spec @@ -1,7 +1,7 @@ -%global srcname APLpy +%global srcname aplpy Name: APLpy -Version: 2.0.3 +Version: 2.2.0 Release: %autorelease Summary: The Astronomical Plotting Library in Python @@ -9,18 +9,6 @@ Summary: The Astronomical Plotting Library in Python License: MIT URL: http://aplpy.github.com Source0: %{pypi_source} -Patch0: aplpy-moved-function.patch -# https://github.com/aplpy/aplpy/pull/469 -Patch1: aplpy-wraps-from-functools.patch -# Workaround for python 3.12 change of imp module removal -Patch2: astropy_helpers-py312-imp-deprecation.patch -# related: -# https://github.com/astropy/astropy/pull/12633 -# astropy 5.1 removes astropy.tests.plugins.display and so on -Patch3: aplpy-astropy-5.1-tests-plugins-removal.patch -Patch4: aplpy-deps.patch -# https://github.com/aplpy/aplpy/pull/500 -Patch5: 0001-Fix-cmap-handling-with-Matplotlib-3.9.patch BuildArch: noarch BuildRequires: python3-devel @@ -35,7 +23,7 @@ PDF, PS, PNG, and SVG. %package -n python3-APLpy Summary: The Astronomical Plotting Library in Python %{?python_provide:%python_provide python3-%{srcname}} -BuildRequires: python3-setuptools +BuildRequires: python3dist(setuptools) %description -n python3-APLpy APLpy (the Astronomical Plotting Library in Python) is a Python module aimed at @@ -61,9 +49,8 @@ PDF, PS, PNG, and SVG. %check %pyproject_check_import -t - %files -n python3-APLpy -f %{pyproject_files} -%doc CHANGES.rst README.rst +%doc CHANGES.md CITATION README.rst %changelog %autochangelog diff --git a/aplpy-astropy-5.1-tests-plugins-removal.patch b/aplpy-astropy-5.1-tests-plugins-removal.patch deleted file mode 100644 index 8824f8b..0000000 --- a/aplpy-astropy-5.1-tests-plugins-removal.patch +++ /dev/null @@ -1,36 +0,0 @@ ---- APLpy-2.0.3/aplpy/conftest.py.old 2019-02-19 20:20:49.000000000 +0900 -+++ APLpy-2.0.3/aplpy/conftest.py 2023-07-13 00:18:27.256633975 +0900 -@@ -13,14 +13,19 @@ - # With older versions of Astropy, we actually need to import the pytest - # plugins themselves in order to make them discoverable by pytest. - from astropy.tests.pytest_plugins import * # noqa --else: -+elif astropy_version < '5.1': - # As of Astropy 3.0, the pytest plugins provided by Astropy are - # automatically made available when Astropy is installed. This means it's - # not necessary to import them here, but we still need to import global - # variables that are used for configuration. - from astropy.tests.plugins.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS -+else: -+ from pytest_astropy_header.display import PYTEST_HEADER_MODULES, TESTED_VERSIONS - --from astropy.tests.helper import enable_deprecations_as_exceptions -+try: -+ from astropy.tests.helper import enable_deprecations_as_exceptions -+except: -+ pass - - # Uncomment the following line to treat all DeprecationWarnings as - # exceptions. For Astropy v2.0 or later, there are 2 additional keywords, -@@ -32,7 +37,10 @@ - # To ignore some specific deprecation warning messages for Python version - # MAJOR.MINOR or later, add: - # warnings_to_ignore_by_pyver={(MAJOR, MINOR): ['Message to ignore']} --enable_deprecations_as_exceptions() -+try: -+ enable_deprecations_as_exceptions() -+except: -+ pass - - # Uncomment and customize the following lines to add/remove entries from - # the list of packages for which version numbers are displayed when running diff --git a/aplpy-deps.patch b/aplpy-deps.patch deleted file mode 100644 index b53ec05..0000000 --- a/aplpy-deps.patch +++ /dev/null @@ -1,24 +0,0 @@ -diff -ur a/aplpy/_astropy_init.py b/aplpy/_astropy_init.py ---- a/aplpy/_astropy_init.py 2024-06-22 19:31:12.726171055 +0200 -+++ b/aplpy/_astropy_init.py 2024-06-22 19:49:02.749642003 +0200 -@@ -112,7 +112,7 @@ - import os - from warnings import warn - from astropy.config.configuration import ( -- update_default_config, -+# update_default_config, - ConfigurationDefaultMissingError, - ConfigurationDefaultMissingWarning) - -diff -ur a/setup.cfg b/setup.cfg ---- a/setup.cfg 2024-06-22 19:31:12.726171055 +0200 -+++ b/setup.cfg 2024-06-22 19:31:51.507812458 +0200 -@@ -28,7 +28,7 @@ - url = http://aplpy.github.io - edit_on_github = False - github_project = aplpy/aplpy --install_requires = numpy, astropy>=3.1, matplotlib>=2.0, reproject>=0.4, pyregion>=2.0, pillow>=4.0, pyavm>=0.9.4, scikit-image>=0.14, shapely>=1.6 -+install_requires = numpy, astropy>=3.1, matplotlib>=2.0, reproject>=0.4, pillow>=4.0, scikit-image>=0.14, shapely>=1.6 - # version should be PEP440 compatible (https://www.python.org/dev/peps/pep-0440/) - version = 2.0.3 - diff --git a/aplpy-moved-function.patch b/aplpy-moved-function.patch deleted file mode 100644 index 9f73095..0000000 --- a/aplpy-moved-function.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -ur APLpy-2.0.3/aplpy/core.py APLpy-2.0.3.astr/aplpy/core.py ---- APLpy-2.0.3/aplpy/core.py 2019-02-19 12:42:15.000000000 +0100 -+++ APLpy-2.0.3.astr/aplpy/core.py 2022-02-17 01:26:12.893457814 +0100 -@@ -17,7 +17,7 @@ - from astropy.wcs import WCS - from astropy.wcs.utils import proj_plane_pixel_scales - from astropy.io import fits --from astropy.nddata.utils import block_reduce -+from astropy.nddata import block_reduce - from astropy.visualization import AsymmetricPercentileInterval - from astropy.visualization.wcsaxes import WCSAxes, WCSAxesSubplot - from astropy.coordinates import ICRS diff --git a/aplpy-wraps-from-functools.patch b/aplpy-wraps-from-functools.patch deleted file mode 100644 index 5397791..0000000 --- a/aplpy-wraps-from-functools.patch +++ /dev/null @@ -1,23 +0,0 @@ -From b31b4f32d01b7f38d417fd42be5f5d52b18be575 Mon Sep 17 00:00:00 2001 -From: Ole Streicher -Date: Sat, 29 Jan 2022 20:14:56 +0100 -Subject: [PATCH] Get wraps from functools instead of astropy - -This fixes compatibility with astropy 5.0.1 ---- - aplpy/decorators.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/aplpy/decorators.py b/aplpy/decorators.py -index f29056db..3c22f87b 100644 ---- a/aplpy/decorators.py -+++ b/aplpy/decorators.py -@@ -2,7 +2,7 @@ - - import threading - --from astropy.utils.decorators import wraps -+from functools import wraps - - mydata = threading.local() - diff --git a/astropy_helpers-py312-imp-deprecation.patch b/astropy_helpers-py312-imp-deprecation.patch deleted file mode 100644 index ac52527..0000000 --- a/astropy_helpers-py312-imp-deprecation.patch +++ /dev/null @@ -1,42 +0,0 @@ ---- APLpy-2.0.3/astropy_helpers/astropy_helpers/utils.py.orig 2018-12-12 20:36:12.000000000 +0900 -+++ APLpy-2.0.3/astropy_helpers/astropy_helpers/utils.py 2023-07-12 23:41:04.228876992 +0900 -@@ -3,7 +3,6 @@ - - import contextlib - import functools --import imp - import inspect - import os - import sys -@@ -60,9 +59,9 @@ - import builtins - if hasattr(builtins, '__NUMPY_SETUP__'): - del builtins.__NUMPY_SETUP__ -- import imp -+ import importlib - import numpy -- imp.reload(numpy) -+ importlib.reload(numpy) - - try: - numpy_include = numpy.get_include() ---- APLpy-2.0.3/astropy_helpers/astropy_helpers/version_helpers.py.orig 2023-07-12 23:43:28.923036099 +0900 -+++ APLpy-2.0.3/astropy_helpers/astropy_helpers/version_helpers.py 2023-07-12 23:43:41.692050140 +0900 -@@ -21,7 +21,7 @@ - from __future__ import division - - import datetime --import imp -+import importlib - import os - import pkgutil - import sys -@@ -278,7 +278,7 @@ - invalidate_caches() - - if version_module: -- imp.reload(version_module) -+ importlib.reload(version_module) - - - def get_pkg_version_module(packagename, fromlist=None): diff --git a/sources b/sources index 3a8949b..b7d941b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (APLpy-2.0.3.tar.gz) = ad9e2079bc5cc3d60c88b49d11ef452d674a2223753d3c4b39db55bdb7b0ec598cff1edcd27d0539c3a3127b4c3bc7e0d57a3723841850fd49ed2206db5893d2 +SHA512 (aplpy-2.2.0.tar.gz) = efb5af12da698861c596d3935580ca5dbe168779382702064ed8c728f9a56e82c06eb6ee101a0c66afaf35e7e55c7a9f53fa07aba379b91e13f2fa4ddce0ec98 From b2e586140e8eb4aaaf91b9bf9c97d8f2def80033 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 23 Jul 2025 15:40:47 +0000 Subject: [PATCH 16/18] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From 3fef0c8204f9cd8f121aa2c2edee0981da283334 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 19 Sep 2025 12:07:09 +0200 Subject: [PATCH 17/18] Rebuilt for Python 3.14.0rc3 bytecode From 48890300268f74e8f7f6e0a311e94167f5b8182b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 16 Jan 2026 02:27:06 +0000 Subject: [PATCH 18/18] Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild