1
0

Accepting request 843474 from home:bnavigator:branches:devel:languages:python:numeric

- Update to 4.1
  Astropy 4.1 is a major release that contains bug fixes and new
  features since the 4.0.x series of releases.  In particular, this 
  release includes:
  * A new SpectralCoord class for representing and transforming 
    spectral quantities
  * Support for writing Dask arrays to FITS files
  * Added True Equator Mean Equinox (TEME) frame for satellite two-
    line ephemeris data
  * Support for in-place setting of array-valued SkyCoord and frame 
    objects
  * Change in the definition of equality comparison for coordinate 
    classes
  * Support use of SkyCoord in table vstack, dstack, and insert_row
  * Support for table cross-match join with SkyCoord or N-d columns
  * Support for custom attributes in Table subclasses
  * Added a new Time subformat unix_tai
  * Added support for the -TAB convention in FITS WCS
  * Support for replacing submodels in CompoundModel
  * Support for units on otherwise unitless models via the 
    Model.coerce_units method.
  * Support for ASDF serialization of models
  In addition to these major changes, Astropy v4.0 includes a large
  number of smaller improvements and bug fixes, which are described
  in the Full Changelog. By the numbers:
  * 381 issues have been closed since v4.0
  * 511 pull requests have been merged since v4.0
  * 66 distinct people have contributed code to this release, 23 of
    which are first time contributors to Astropy 
- Drop astropy-pr10545-remove-newline-3d_cd_hdr.patch
  * merged upstream
  * gh#astropy/astropy#10545
- Add astropy-pr10329-unbundle-erfa_4.1.patch
  * Remove bundled _erfa but use system package pyerfa instead
  * gh#astropy/astropy#10329
- enable optional pytest-xdist
- Update to 4.0.3
  * astropy.table  
    Fixed a small bug where initializing an empty `Column` 
    with a structured dtype with a length and a shape 
    failed to give the requested dtype. [#10819]
  * Fixed installation of the source distribution with 
    pip<19. [#10837, #10852]

OBS-URL: https://build.opensuse.org/request/show/843474
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-astropy?expand=0&rev=36
This commit is contained in:
Benjamin Greiner 2020-10-23 11:32:38 +00:00 committed by Git OBS Bridge
parent f26bda05c6
commit 18c04387c7
6 changed files with 38257 additions and 123 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4014e472cc7d3ca225524bf56bf4087042cc564849cfc528c435414c2f2f4b7e
size 7756064

3
astropy-4.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a3bad6e1c2619135ad33e4d80452866eb9468f610bf00754da4001c63c1f7049
size 7835617

File diff suppressed because it is too large Load Diff

View File

@ -1,54 +0,0 @@
From e87d4647f2b152b33ef4c22edc2daf16b1dbc1bc Mon Sep 17 00:00:00 2001
From: Mihai Cara <mihail.cara@gmail.com>
Date: Wed, 8 Jul 2020 13:14:01 -0400
Subject: [PATCH] Remove newline characters from header file 3d_cd.hdr
---
astropy/wcs/tests/data/3d_cd.hdr | 17 +----------------
astropy/wcs/tests/test_wcs.py | 9 ++++-----
2 files changed, 5 insertions(+), 21 deletions(-)
diff --git a/astropy/wcs/tests/data/3d_cd.hdr b/astropy/wcs/tests/data/3d_cd.hdr
index be4ce2f1f88..8791e9d35e8 100644
--- a/astropy/wcs/tests/data/3d_cd.hdr
+++ b/astropy/wcs/tests/data/3d_cd.hdr
@@ -1,16 +1 @@
-CD1_2 = -3.72E-05
-CD1_3 = 0
-CD1_1 = -4.12E-05
-CUNIT3 = 'nm '
-CUNIT2 = 'deg '
-CTYPE1 = 'RA---TAN'
-NAXIS = 3
-CTYPE3 = 'AWAV '
-CD2_1 = -3.72E-05
-CTYPE2 = 'DEC--TAN'
-CD2_3 = 0
-CD2_2 = 4.12E-05
-CUNIT1 = 'deg '
-CD3_1 = 0
-CD3_2 = 0
-CD3_3 = 0.2
\ No newline at end of file
+CD1_2 = -3.72E-05 CD1_3 = 0 CD1_1 = -4.12E-05 CUNIT3 = 'nm ' CUNIT2 = 'deg ' CTYPE1 = 'RA---TAN' NAXIS = 3 CTYPE3 = 'AWAV ' CD2_1 = -3.72E-05 CTYPE2 = 'DEC--TAN' CD2_3 = 0 CD2_2 = 4.12E-05 CUNIT1 = 'deg ' CD3_1 = 0 CD3_2 = 0 CD3_3 = 0.2
\ No newline at end of file
diff --git a/astropy/wcs/tests/test_wcs.py b/astropy/wcs/tests/test_wcs.py
index 509d3e916a3..cd180952458 100644
--- a/astropy/wcs/tests/test_wcs.py
+++ b/astropy/wcs/tests/test_wcs.py
@@ -823,11 +823,10 @@ def test_printwcs(capsys):
captured = capsys.readouterr()
assert 'WCS Keywords' in captured.out
h = get_pkg_data_contents('data/3d_cd.hdr', encoding='binary')
- with pytest.warns(AstropyUserWarning):
- w = wcs.WCS(h)
- w.printwcs()
- captured = capsys.readouterr()
- assert 'WCS Keywords' in captured.out
+ w = wcs.WCS(h)
+ w.printwcs()
+ captured = capsys.readouterr()
+ assert 'WCS Keywords' in captured.out
def test_invalid_spherical():

View File

@ -1,3 +1,54 @@
-------------------------------------------------------------------
Thu Oct 22 09:36:36 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Update to 4.1
Astropy 4.1 is a major release that contains bug fixes and new
features since the 4.0.x series of releases. In particular, this
release includes:
* A new SpectralCoord class for representing and transforming
spectral quantities
* Support for writing Dask arrays to FITS files
* Added True Equator Mean Equinox (TEME) frame for satellite two-
line ephemeris data
* Support for in-place setting of array-valued SkyCoord and frame
objects
* Change in the definition of equality comparison for coordinate
classes
* Support use of SkyCoord in table vstack, dstack, and insert_row
* Support for table cross-match join with SkyCoord or N-d columns
* Support for custom attributes in Table subclasses
* Added a new Time subformat unix_tai
* Added support for the -TAB convention in FITS WCS
* Support for replacing submodels in CompoundModel
* Support for units on otherwise unitless models via the
Model.coerce_units method.
* Support for ASDF serialization of models
In addition to these major changes, Astropy v4.0 includes a large
number of smaller improvements and bug fixes, which are described
in the Full Changelog. By the numbers:
* 381 issues have been closed since v4.0
* 511 pull requests have been merged since v4.0
* 66 distinct people have contributed code to this release, 23 of
which are first time contributors to Astropy
- Drop astropy-pr10545-remove-newline-3d_cd_hdr.patch
* merged upstream
* gh#astropy/astropy#10545
- Add astropy-pr10329-unbundle-erfa_4.1.patch
* Remove bundled _erfa but use system package pyerfa instead
* gh#astropy/astropy#10329
- enable optional pytest-xdist
-------------------------------------------------------------------
Thu Oct 15 12:22:54 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
- Update to 4.0.3
* astropy.table
Fixed a small bug where initializing an empty `Column`
with a structured dtype with a length and a shape
failed to give the requested dtype. [#10819]
* Fixed installation of the source distribution with
pip<19. [#10837, #10852]
-------------------------------------------------------------------
Sat Oct 10 20:46:40 UTC 2020 - Benjamin Greiner <code@bnavigator.de>

View File

@ -16,90 +16,103 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
%else
%define psuffix %{nil}
%bcond_with test
%endif
%define binaries fitsdiff fitsheader fitscheck fitsinfo fits2bitmap samp_hub showtable volint wcslint
%bcond_without systemlibs
%if %{with systemlibs}
%define unbundle_libs export ASTROPY_USE_SYSTEM_CFITSIO=1 \
export ASTROPY_USE_SYSTEM_EXPAT=1 \
export ASTROPY_USE_SYSTEM_WCSLIB=1
%endif
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-astropy
Version: 4.0.2
Version: 4.1
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
# PATCH-FIX-UPSTREAM astropy-pr10545-remove-newline-3d_cd_hdr.patch gh#astropy/astropy#10545 -- clean up newlines after pytest output
Patch0: astropy-pr10545-remove-newline-3d_cd_hdr.patch
# 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
# PATCH-FEATURE-UPSTREAM astropy-pr10329-unbundle-erfa_4.1.patch gh#astropy/astropy#10329 -- unbundle _erfa and use pyerfa instead
Patch0: astropy-pr10329-unbundle-erfa_4.1.patch
# https://docs.astropy.org/en/v4.1/install.html#requirements
BuildRequires: %{python_module Cython >= 0.21}
BuildRequires: %{python_module astropy-helpers}
BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module extension-helpers}
BuildRequires: %{python_module numpy-devel >= 1.16}
BuildRequires: %{python_module ply}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: hdf5-devel
BuildRequires: libxml2-tools
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(cfitsio)
BuildRequires: pkgconfig(erfa) >= 1.7.0
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(wcslib)
Requires: hdf5
Requires: liberfa1 >= 1.7.0
Requires: python >= 3.6
Requires: python-dbm
Requires: python-matplotlib >= 2.1
Requires: python-numpy >= 1.7.0
Requires: python-numpy >= 1.16.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: libxml2-tools
Recommends: python-Bottleneck
Recommends: python-Jinja2
Recommends: python-PyYAML
Recommends: python-asdf >= 2.5
Recommends: python-PyYAML >= 3.12
Recommends: python-asdf >= 2.6
Recommends: python-beautifulsoup4
Recommends: python-bleach
Recommends: python-h5py
Recommends: python-ipython
Recommends: python-html5lib
Recommends: python-jplephem
Recommends: python-matplotlib >= 2.1
Recommends: python-mpmath
Recommends: python-pandas
Recommends: python-scikit-image
Recommends: python-scipy >= 0.18
Recommends: python-setuptools
Recommends: python-sortedcontainers
Conflicts: perl-Data-ShowTable
%if %{with systemlibs}
BuildRequires: %{python_module pyerfa}
BuildRequires: pkgconfig(cfitsio)
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(wcslib) >= 7
Requires: python-pyerfa
%endif
%if %{with test}
# SECTION Optional requirements
BuildRequires: %{python_module Bottleneck}
BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module asdf >= 2.5}
BuildRequires: %{python_module PyYAML >= 3.12}
BuildRequires: %{python_module asdf >= 2.6}
BuildRequires: %{python_module beautifulsoup4}
BuildRequires: %{python_module bleach}
BuildRequires: %{python_module h5py}
BuildRequires: %{python_module ipython}
BuildRequires: %{python_module html5lib}
BuildRequires: %{python_module jplephem}
BuildRequires: %{python_module matplotlib >= 2.1}
BuildRequires: %{python_module mpmath}
BuildRequires: %{python_module pandas}
BuildRequires: %{python_module scikit-image}
BuildRequires: %{python_module scipy >= 0.18}
BuildRequires: %{python_module sortedcontainers}
BuildRequires: libxml2-tools
# /SECTION
# SECTION test requirements
# We need the compiled package for testing
BuildRequires: %{python_module astropy = %{version}}
BuildRequires: %{python_module mpmath}
BuildRequires: %{python_module ipython}
BuildRequires: %{python_module objgraph}
BuildRequires: %{python_module pytest >= 3.1}
BuildRequires: %{python_module pytest-astropy}
BuildRequires: %{python_module pytest-doctestplus >= 0.6}
BuildRequires: %{python_module pytest-mpl}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module sgp4}
BuildRequires: %{python_module skyfield}
# /SECTION
%endif
%python_subpackages
@ -113,61 +126,63 @@ managing them.
%if !%{with test}
%prep
%setup -q -n astropy-%{version}
%autopatch -p1
%if %{with systemlibs}
# unbundle liberfa with new package pyerfa
%patch0 -p1
rm -rf cextern/erfa
rm licenses/ERFA.rst
# Make sure bundled libs are not used
rm -rf cextern/cfitsio
rm -rf cextern/expat
rm -rf cextern/wcslib
rm licenses/EXPAT_LICENSE.rst
rm licenses/WCSLIB_LICENSE.rst
%endif
# Disable test failure on DeprecationWarnings
sed -i "/enable_deprecations_as_exceptions(/,/)/ d" astropy/conftest.py
# Make sure bundled libs are not used
rm -rf cextern/expat
rm -rf cextern/erfa
rm -rf cextern/cfitsio
rm -rf cextern/wcslib
echo "[build]" >> setup.cfg
echo "use_system_libraries=1" >> setup.cfg
# increase test deadline for slow obs executions (e.g. on s390x)
echo "
import hypothesis
hypothesis.settings.register_profile('obs', deadline=1000)
" >> astropy/conftest.py
%build
%python_build --use-system-libraries --offline
%{?unbundle_libs}
%python_build
%install
%python_install --use-system-libraries --offline
%{?unbundle_libs}
%python_install
for b in %{binaries}; do
%python_clone -a %{buildroot}%{_bindir}/$b
done
chmod a-x %{buildroot}%{python_sitearch}/astropy/wcs/tests/data/header_with_time.fits
# Deduplicating files can generate a RPMLINT warning for pyc mtime
%{python_expand %fdupes %{buildroot}%{$python_sitearch}
rm -rf %{buildroot}%{$python_sitearch}/astropy/io/misc/tests/__pycache__/__init__.*.pyc
rm -rf %{buildroot}%{$python_sitearch}/astropy/io/votable/tests/__pycache__/*_test.*.pyc
rm -rf %{buildroot}%{$python_sitearch}/astropy/io/votable/tests/__pycache__/__init__.*.pyc
rm -rf %{buildroot}%{$python_sitearch}/astropy/wcs/tests/__pycache__/__init__.*.pyc
rm -rf %{buildroot}%{$python_sitearch}/astropy/wcs/tests/extension/__pycache__/__init__.*.pyc
$python -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/astropy/io/misc/tests/
$python -O -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/astropy/io/misc/tests/
$python -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/astropy/io/votable/tests/
$python -O -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/astropy/io/votable/tests/
$python -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/astropy/stats/bls/tests/
$python -O -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/astropy/stats/bls/tests/
$python -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/astropy/wcs/tests/
$python -O -m compileall -d %{$python_sitearch} %{buildroot}%{$python_sitearch}/astropy/wcs/tests/
%fdupes %{buildroot}%{$python_sitearch}
}
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%endif
%if %{with test}
%check
# test matrix is ill-conditioned and fails occasionally
# https://github.com/astropy/astropy/issues/10675
donttest="compound_fitting_with_units"
%ifarch aarch64
# doctest failure because of precision errors
donttest+=" or bayesian_info_criterion_lsq"
%endif
testselect_expr="${donttest:+-k \"not (${donttest# or })\"}"
# http://docs.astropy.org/en/latest/development/testguide.html#running-tests
# running pytest directly would require building the extensions inplace
%python_exec -B -c "import astropy, sys; sys.exit(astropy.test(args=\"-v -k \\\"not ($donttest)\\\"\"))"
%python_exec -B -c "
import sys, astropy
pytestargs = ('-v '
'-n auto ' # pytest-xdist
'-p no:cacheprovider '
'--hypothesis-profile=obs '
'$testselect_expr')
returncode = astropy.test(args=pytestargs)
sys.exit(returncode)
"
%endif
%if !%{with test}
@ -179,10 +194,10 @@ donttest="compound_fitting_with_units"
%files %{python_files}
%doc CHANGES.rst README.rst
%license licenses/*
%license LICENSE.rst licenses/*
%{expand:%(for b in %{binaries}; do echo "%%python_alternative %%{_bindir}/$b"; done)}
%{python_sitearch}/astropy/
%{python_sitearch}/astropy-%{version}-py*.egg-info
%{python_sitearch}/astropy-%{version}*-info
%endif
%changelog