Sergio Pascual 07e8d46
%global srcname APLpy
Sergio Pascual d2f6f4f
507318d
# Disable automatic dependency generators until we fixed (optional) deps
507318d
%{?python_disable_dependency_generator}
507318d
33e8ffc
Name:           APLpy
3431173
Version:        2.0.3
28cdff4
Release:        25%{?dist}
33e8ffc
Summary:        The Astronomical Plotting Library in Python
33e8ffc
33e8ffc
License:        MIT
33e8ffc
URL:            http://aplpy.github.com
feb95f5
Source0:        %{pypi_source}
7d5a8d5
Patch0:         aplpy-moved-function.patch
34bf1d1
# https://github.com/aplpy/aplpy/pull/469
34bf1d1
Patch1:         aplpy-wraps-from-functools.patch
ed2a258
# Workaround for python 3.12 change of imp module removal
ed2a258
Patch2:         astropy_helpers-py312-imp-deprecation.patch
ed2a258
# related:
ed2a258
# https://github.com/astropy/astropy/pull/12633
ed2a258
# astropy 5.1 removes astropy.tests.plugins.display and so on
ed2a258
Patch3:         aplpy-astropy-5.1-tests-plugins-removal.patch
33e8ffc
33e8ffc
BuildArch:      noarch
42f5536
BuildRequires:  python3-devel 
33e8ffc
33e8ffc
%description
33e8ffc
APLpy (the Astronomical Plotting Library in Python) is a Python module aimed at 
33e8ffc
producing publication-quality plots of astronomical imaging data in FITS format.
33e8ffc
The module uses Matplotlib, a powerful and interactive plotting package. It is
33e8ffc
capable of creating output files in several graphical formats, including EPS,
33e8ffc
PDF, PS, PNG, and SVG.
33e8ffc
Sergio Pascual 07e8d46
%package -n python3-APLpy
Sergio Pascual 07e8d46
Summary:        The Astronomical Plotting Library in Python
Sergio Pascual 07e8d46
%{?python_provide:%python_provide python3-%{srcname}}
feb95f5
BuildRequires:  python3-setuptools
Sergio Pascual 07e8d46
BuildRequires:  python3-numpy
Sergio Pascual 07e8d46
BuildRequires:  python3-matplotlib
Sergio Pascual 07e8d46
BuildRequires:  python3-astropy
ed2a258
BuildRequires:  python3-pytest-astropy-header
feb95f5
# Testing
Sergio Pascual 07e8d46
BuildRequires:  python3-pytest
feb95f5
BuildRequires:  python3-pillow
feb95f5
BuildRequires:  python3-reproject
Sergio Pascual 07e8d46
Sergio Pascual 07e8d46
Requires:  python3-numpy
Sergio Pascual 07e8d46
Requires:  python3-matplotlib
Sergio Pascual 07e8d46
Requires:  python3-astropy
Sergio Pascual 07e8d46
Recommends:  python3-pillow
Sergio Pascual d2f6f4f
Sergio Pascual d2f6f4f
%description -n python3-APLpy
Sergio Pascual d2f6f4f
APLpy (the Astronomical Plotting Library in Python) is a Python module aimed at 
Sergio Pascual d2f6f4f
producing publication-quality plots of astronomical imaging data in FITS format.
Sergio Pascual d2f6f4f
The module uses Matplotlib, a powerful and interactive plotting package. It is
Sergio Pascual d2f6f4f
capable of creating output files in several graphical formats, including EPS,
Sergio Pascual d2f6f4f
PDF, PS, PNG, and SVG.
Sergio Pascual d2f6f4f
33e8ffc
%prep
7d5a8d5
%autosetup -n %{srcname}-%{version} -p1
Sergio Pascual d2f6f4f
33e8ffc
%build
Sergio Pascual 07e8d46
%py3_build
Sergio Pascual d2f6f4f
33e8ffc
%install
Sergio Pascual 07e8d46
%py3_install
Sergio Pascual 55c187d
Sergio Pascual 55c187d
%check
Sergio Pascual 07e8d46
# Empty matplotlibrc
Sergio Pascual 55c187d
mkdir matplotlib
Sergio Pascual 55c187d
touch matplotlib/matplotlibrc
Sergio Pascual 55c187d
export XDG_CONFIG_HOME=`pwd`
Sergio Pascual df88277
export PYTHONDONTWRITEBYTECODE=1
feb95f5
export PYTEST_ADDOPTS='-p no:cacheprovider'
Sergio Pascual d2f6f4f
pushd %{buildroot}/%{python3_sitelib}
feb95f5
  pytest-%{python3_version} aplpy || :
feb95f5
  # This file is created by the tests
feb95f5
  rm %{buildroot}/%{python3_sitelib}/test_label_format.png
Sergio Pascual d2f6f4f
popd
33e8ffc
Sergio Pascual d2f6f4f
%files -n python3-APLpy
2dde59c
%doc CHANGES.rst README.rst
Sergio Pascual df88277
%license LICENSE.md
Sergio Pascual d2f6f4f
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info
Sergio Pascual d2f6f4f
%{python3_sitelib}/aplpy/
Sergio Pascual d2f6f4f
33e8ffc
%changelog
28cdff4
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-25
28cdff4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
28cdff4
59bcac8
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-24
59bcac8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
59bcac8
3af27ac
* Thu Jan 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-23
3af27ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
3af27ac
ee35aee
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-22
ee35aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
ee35aee
ed2a258
* Wed Jul 12 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.0.3-21
ed2a258
- Workaround for python 3.12 change of imp module removal
ed2a258
- Workaround for astropy 5.1 astropy.tests.plugins.display removal and so on
ed2a258
c824dcc
* Wed Jul 12 2023 Python Maint <python-maint@redhat.com> - 2.0.3-20
c824dcc
- Rebuilt for Python 3.12
c824dcc
8ac5736
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-19
8ac5736
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
8ac5736
def69e6
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-18
def69e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
def69e6
34bf1d1
* Sun Jul  3 2022 Mamoru TASAKA <mtasaka@fedoraproject.org> - 2.0.3-17
34bf1d1
- Backport upstream patch for test failure w.r.t compatibility with astropy 5.0.1
34bf1d1
de040ff
* Fri Jun 17 2022 Python Maint <python-maint@redhat.com> - 2.0.3-16
de040ff
- Rebuilt for Python 3.11
de040ff
7d5a8d5
* Thu Feb 17 2022 Sergio Pascual <sergiopr@fedoraproject.org> - 2.0.3-15
7d5a8d5
- Fix astropy 5 function incompatibility
7d5a8d5
48a67df
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-14
48a67df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
48a67df
bb5c96d
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-13
bb5c96d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
bb5c96d
41dfde9
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.0.3-12
41dfde9
- Rebuilt for Python 3.10
41dfde9
05def01
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-11
05def01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
05def01
d053887
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-10
d053887
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d053887
feb95f5
* Thu Jul 02 2020 Sergio Pascual <sergiopr@fedoraproject.org> - 2.0.3-9
feb95f5
- Add BR python3-setuptools
feb95f5
- Add BR python3-reproject
feb95f5
11fbc15
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.0.3-8
11fbc15
- Rebuilt for Python 3.9
11fbc15
e35b7ce
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-7
e35b7ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e35b7ce
cb26bcc
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.3-6
cb26bcc
- Rebuilt for Python 3.8.0rc1 (#1748018)
cb26bcc
24615bb
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.3-5
24615bb
- Rebuilt for Python 3.8
24615bb
9f98453
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.3-4
9f98453
- Rebuilt for Python 3.8
9f98453
d7ea6d9
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-3
d7ea6d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d7ea6d9
507318d
* Mon Mar 04 2019 Christian Dersch <lupinix@mailbox.org> - 2.0.3-2
507318d
- Disable automatic dependency generators until we fixed (optional) deps
507318d
3431173
* Mon Feb 25 2019 Sergio Pascual <sergiopr@fedoraproject.org> - 2.0.3-1
3431173
- New upstream version (2.0.3)
3431173
2dde59c
* Sun Feb 17 2019 Sergio Pascual <sergiopr@fedoraproject.org> - 2.0-1
2dde59c
- New upstream version (2.0)
2dde59c
43a2e47
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-8
43a2e47
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
43a2e47
42f5536
* Fri Oct 05 2018 Sergio Pascual <sergiopr@fedoraproject.org> - 1.1.1-2
42f5536
- Drop python2 subpackage
42f5536
7bd2319
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-7
7bd2319
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
7bd2319
dbc6379
* Sun Jul 08 2018 Christian Dersch <lupinix@mailbox.org> - 1.1.1-6
dbc6379
- Failing tests are only deprecation warnings... Ignore them and report upstream
dbc6379
13e4872
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.1-5
13e4872
- Rebuilt for Python 3.7
13e4872
ed06f9f
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-4
ed06f9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ed06f9f
145d873
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-3
145d873
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
145d873
7fca9db
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
7fca9db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7fca9db
Sergio Pascual df88277
* Fri Jan 27 2017 Sergio Pascual <sergiopr@fedoraproject.org> - 1.1.1-1
Sergio Pascual df88277
- New upstream version (1.1.1)
Sergio Pascual df88277
- Include license file
Sergio Pascual df88277
- Do not write pyc files when running tests
Sergio Pascual df88277
548612b
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.1-3
548612b
- Rebuild for Python 3.6
548612b
Sergio Pascual 1b10347
* Sun Oct 02 2016 Sergio Pascual <sergiopr@fedoraproject.org> - 1.1-2
Sergio Pascual 1b10347
- EVR bump
Sergio Pascual 1b10347
Sergio Pascual 07e8d46
* Sun Sep 25 2016 Sergio Pascual <sergiopr@fedoraproject.org> - 1.1-1
Sergio Pascual 07e8d46
- New upstream version (1.1)
Sergio Pascual 07e8d46
- Updated spec
Sergio Pascual 07e8d46
- Fixes bz #1380134
09f797e
6308e88
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-5
6308e88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6308e88
Sergio Pascual 07e8d46
* Tue Nov 17 2015 Sergio Pascual <sergiopr@fedoraproject.org> - 1.0-4
Sergio Pascual 662365d
- Disable some failing tests (https://github.com/aplpy/aplpy/issues/278)
Sergio Pascual 662365d
214e490
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-3
214e490
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
214e490
8a47b2b
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
8a47b2b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8a47b2b
Sergio Pascual cf6f778
* Mon Mar 02 2015 Sergio Pascual <sergiopr@fedoraproject.org> - 1.0-1
Sergio Pascual cf6f778
- New upstream version (1.0)
Sergio Pascual cf6f778
- Use license macro
Sergio Pascual cf6f778
Sergio Pascual 114db4c
* Thu Dec 11 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.9.14-2
Sergio Pascual 114db4c
- Disable python3 tests
Sergio Pascual 114db4c
Sergio Pascual 17d6f68
* Thu Dec 11 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.9.14-1
Sergio Pascual 17d6f68
- New upstream source (0.9.14), several bug fixes
Sergio Pascual 17d6f68
Sergio Pascual efd2728
* Tue Oct 07 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.9.13-1
Sergio Pascual efd2728
- New upstream source (0.9.13), fixes bug in 0.9.11 and 0.9.12
Sergio Pascual efd2728
Sergio Pascual d2f6f4f
* Thu Sep 11 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.9.12-2
Sergio Pascual d2f6f4f
- Provide python3 subpackage
Sergio Pascual d2f6f4f
- Unbundle decorator
Sergio Pascual d2f6f4f
Sergio Pascual 5a12320
* Thu Sep 11 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.9.12-1
Sergio Pascual 5a12320
- New upstream source (0.9.12)
Sergio Pascual 5a12320
- Tests enabled
Sergio Pascual 5a12320
Sergio Pascual 4bbb834
* Wed Sep 10 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.9.11-2
Sergio Pascual 4bbb834
- Disable tests for the moment
Sergio Pascual 4bbb834
Sergio Pascual 55c187d
* Tue Jul 08 2014 Sergio Pascual <sergiopr@fedoraproject.org> - 0.9.11-1
Sergio Pascual 55c187d
- Updated to new version
Sergio Pascual 55c187d
- Run tests on installed version
Sergio Pascual 55c187d
- Use python2 macros
Sergio Pascual 55c187d
ab0fba2
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8-5
ab0fba2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ab0fba2
d7f9002
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8-4
d7f9002
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d7f9002
7616e0b
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8-3
7616e0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7616e0b
a129aed
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.8-2
a129aed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a129aed
Sergio Pascual 55c187d
* Thu May 03 2012 Germán A. Racca <skytux@fedoraproject.org> - 0.9.8-1
733b07e
- Updated to new version
097ecbf
- Included tests in %%check and corresponding BRs
733b07e
- Packaged tests in %%doc section
733b07e
733b07e
* Mon Feb 06 2012 Germán A. Racca <skytux@fedoraproject.org> 0.9.6-3
33e8ffc
- Minor changes to spec file after approval
33e8ffc
- Removed INSTALL file
33e8ffc
33e8ffc
* Mon Jan 30 2012 Germán A. Racca <skytux@fedoraproject.org> 0.9.6-2
33e8ffc
- Changed name of spec file to match the project name
33e8ffc
33e8ffc
* Mon Jan 23 2012 Germán A. Racca <skytux@fedoraproject.org> 0.9.6-1
33e8ffc
- Initial release of RPM package
33e8ffc