forked from pool/python-astropy
Accepting request 949763 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 5.0.1 astropy.coordinates * Trying to create an instance of astropy.coordinates.Distance by providing both z and parallax now raises the expected ValueError. [#12531] * Fixed a bug where changing the wrap angle of the longitude component of a representation could raise a warning or error in certain situations. [#12556] * astropy.coordinates.Distance constructor no longer ignores the unit keyword when parallax is provided. [#12569] astropy.cosmology * astropy.cosmology.utils.aszarr can now convert Column objects. [#12525] * Reading a cosmology from an ECSV will load redshift and Hubble parameter units from the cosmology units module. [#12636] astropy.io.fits * Fix formatting issue in _dump_coldefs and add tests for tabledump and tableload convenience functions. [#12526] astropy.io.misc * YAML can now also represent quantities and arrays with structured dtype, as well as structured scalars based on np.void. [#12509] astropy.modeling * Fixes error when fitting multiplication or division based compound models where the sub-models have different output units. [#12475] * Bugfix for incorrectly initialized and filled parameters data for Spline1D model. [#12523] * Bugfix for keyerror thrown by Model.input_units_equivalencies when used on fix_inputs models which have no set unit OBS-URL: https://build.opensuse.org/request/show/949763 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-astropy?expand=0&rev=64
This commit is contained in:
parent
977ca53c2b
commit
4d514e83e4
3
astropy-5.0.1.tar.gz
Normal file
3
astropy-5.0.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6382cde6a205aa0b16a0d5e61c0c0131ebd4f0174d6c73e2964f4bee132a9027
|
||||
size 7830894
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:70203e151e13292586a817b4069ce1aad4643567aff38b1d191c173bc54f3927
|
||||
size 7823746
|
@ -1,3 +1,67 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 28 19:27:20 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Update to 5.0.1
|
||||
astropy.coordinates
|
||||
* Trying to create an instance of astropy.coordinates.Distance by
|
||||
providing both z and parallax now raises the expected
|
||||
ValueError. [#12531]
|
||||
* Fixed a bug where changing the wrap angle of the longitude
|
||||
component of a representation could raise a warning or error in
|
||||
certain situations. [#12556]
|
||||
* astropy.coordinates.Distance constructor no longer ignores the
|
||||
unit keyword when parallax is provided. [#12569]
|
||||
astropy.cosmology
|
||||
* astropy.cosmology.utils.aszarr can now convert Column objects.
|
||||
[#12525]
|
||||
* Reading a cosmology from an ECSV will load redshift and Hubble
|
||||
parameter units from the cosmology units module. [#12636]
|
||||
astropy.io.fits
|
||||
* Fix formatting issue in _dump_coldefs and add tests for
|
||||
tabledump and tableload convenience functions. [#12526]
|
||||
astropy.io.misc
|
||||
* YAML can now also represent quantities and arrays with
|
||||
structured dtype, as well as structured scalars based on
|
||||
np.void. [#12509]
|
||||
astropy.modeling
|
||||
* Fixes error when fitting multiplication or division based
|
||||
compound models where the sub-models have different output
|
||||
units. [#12475]
|
||||
* Bugfix for incorrectly initialized and filled parameters data
|
||||
for Spline1D model. [#12523]
|
||||
* Bugfix for keyerror thrown by Model.input_units_equivalencies
|
||||
when used on fix_inputs models which have no set unit
|
||||
equivalencies. [#12597]
|
||||
astropy.table
|
||||
* astropy.table.Table.keep_columns() and
|
||||
astropy.table.Table.remove_columns() now work with generators
|
||||
of column names. [#12529]
|
||||
* Avoid duplicate storage of info in serialized columns if the
|
||||
column used to serialize already can hold that information.
|
||||
[#12607] astropy.timeseries
|
||||
* Fixed edge case bugs which emerged when using
|
||||
aggregate_downsample with custom bins. [#12527]
|
||||
astropy.units
|
||||
* Structured units can be serialized to/from yaml. [#12492]
|
||||
* Fix bad typing problems by removing interaction with
|
||||
NDArray.__class_getitem__. [#12511]
|
||||
* Ensure that Quantity.to_string(format='latex') properly
|
||||
typesets exponents also when
|
||||
u.quantity.conf.latex_array_threshold = -1 (i.e., when the
|
||||
threshold is taken from numpy). [#12573]
|
||||
* Structured units can now be copied with copy.copy and
|
||||
copy.deepcopy and also pickled and unpicked also for protocol
|
||||
>= 2. This does not work for big-endian architecture with older
|
||||
numpy<1.21.1. [#12583]
|
||||
astropy.utils
|
||||
* Ensure that a Masked instance can be used to initialize (or
|
||||
viewed as) a numpy.ma.Maskedarray. [#12482]
|
||||
* Ensure Masked also works with numpy >=1.22, which has a keyword
|
||||
argument name change for np.quantile. [#12511]
|
||||
* astropy.utils.iers.LeapSeconds.auto_open() no longer emits
|
||||
unnecessary warnings when astropy.utils.iers.conf.auto_max_age
|
||||
is set to None. [#12713]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 28 20:00:07 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -30,16 +30,9 @@
|
||||
# backwards compatibility for --without systemlibs
|
||||
%bcond_without systemlibs
|
||||
|
||||
%if 0%{suse_version} <= 1500 || ! %{with systemlibs}
|
||||
# Use the bundled libraries for Leap 15.X, because the versions in the repos are too old
|
||||
%bcond_with system_cfitsio
|
||||
%bcond_with system_expat
|
||||
%bcond_with system_wcslib
|
||||
%else
|
||||
%bcond_without system_cfitsio
|
||||
%bcond_without system_expat
|
||||
%bcond_without system_wcslib
|
||||
%endif
|
||||
|
||||
%if %{with system_cfitsio}
|
||||
%define unbundle_cfitsio export ASTROPY_USE_SYSTEM_CFITSIO=1
|
||||
@ -56,10 +49,8 @@
|
||||
|
||||
%{?!python_module:%define python_module() python3-%{**}}
|
||||
%define skip_python2 1
|
||||
# upcoming python3 multiflavor: minimum supported python is 3.7
|
||||
%define skip_python36 1
|
||||
Name: python-astropy%{psuffix}
|
||||
Version: 5.0
|
||||
Version: 5.0.1
|
||||
Release: 0
|
||||
Summary: Community-developed python astronomy tools
|
||||
License: BSD-3-Clause
|
||||
@ -173,8 +164,6 @@ rm -rf cextern/wcslib
|
||||
rm licenses/WCSLIB_LICENSE.rst
|
||||
%endif
|
||||
|
||||
# Disable test failure on DeprecationWarnings
|
||||
sed -i "/enable_deprecations_as_exceptions(/,/)/ d" astropy/conftest.py
|
||||
# increase test deadline for slow obs executions (e.g. on s390x)
|
||||
echo "
|
||||
import hypothesis
|
||||
@ -201,6 +190,11 @@ done
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
# these are flaky on obs
|
||||
donttest="test_color_print3"
|
||||
donttest+=" or test_ignore_sigint"
|
||||
donttest+=" or (test_wcs and test_spectra)"
|
||||
donttest+=" or (test_standard_profile and test_main)"
|
||||
%ifarch aarch64
|
||||
# doctest failure because of precision errors
|
||||
donttest+=" or bayesian_info_criterion_lsq"
|
||||
@ -209,9 +203,7 @@ done
|
||||
# gh#astropy/astropy#12017
|
||||
donttest+=" or test_stats"
|
||||
%endif
|
||||
# this one is flaky
|
||||
donttest+=" or test_color_print3"
|
||||
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 "
|
||||
@ -220,7 +212,7 @@ pytestargs = ('-v '
|
||||
'-n auto ' # pytest-xdist
|
||||
'-p no:cacheprovider '
|
||||
'--hypothesis-profile=obs '
|
||||
'$testselect_expr')
|
||||
'-k \"not ($donttest)\"')
|
||||
returncode = astropy.test(args=pytestargs)
|
||||
sys.exit(returncode)
|
||||
"}
|
||||
|
Loading…
Reference in New Issue
Block a user