- Update to 7.1.0
## New Features ### astropy.coordinates * search_around_sky and search_around_3D now accept separations/distlimits broadcastable to the same shape as coords1. [#17824] ### astropy.io.ascii * Add functionality to read and write to a Table from the TDAT format as part of the Unified File Read/Write Interface. [#16780] * io.ascii now supports on-the-fly decompression of LZW-compressed files (typically “.Z” extension) via the optional package uncompresspy. [#17960] ### astropy.io.fits * Astropy can now not only read but also write headers that have HIERARCH keys with long values, by allowing the use of CONTINUE cards for those (as was already the case for regular FITS keys). [#17748] * Add strip_spaces option to Table.read to strip trailing whitespaces in string columns. This will be activated by default in the next major release. [#17777] * io.fits now supports on-the-fly decompression of LZW-compressed files (typically “.Z” extension) via the optional package uncompresspy. [#17960] * io.fits now supports on-the-fly decompression of LZMA-compressed files (typically “.xz” extension) if the lzma module is provided by the Python installation. [#17968] ### astropy.io.misc * Add a fast Table CSV reader that uses the PyArrow read_csv() function. This can be significantly faster and more OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-astropy?expand=0&rev=150
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
_multibuild
Normal file
3
_multibuild
Normal file
@@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>test</package>
|
||||
</multibuild>
|
3
astropy-6.1.1.tar.gz
Normal file
3
astropy-6.1.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e5c6f45d911c30acb8d556c7f8ed994aec71b108e61eee5067f00af1e4e36138
|
||||
size 7050022
|
3
astropy-6.1.3.tar.gz
Normal file
3
astropy-6.1.3.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9ac834cdedc1f6b5ce6f941f7bfbbfc58fca861eb172bcf72dd90aff8f750970
|
||||
size 7057076
|
3
astropy-6.1.5.tar.gz
Normal file
3
astropy-6.1.5.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9098dddd0946a6a39df622ecbf8704ed031cfb066381e9d960c0913c2db46b81
|
||||
size 7061139
|
3
astropy-6.1.6.tar.gz
Normal file
3
astropy-6.1.6.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:63e153747de7892138860925f0395de66d0bd036c69837f68bf93aeadaac6847
|
||||
size 7062175
|
3
astropy-6.1.7.tar.gz
Normal file
3
astropy-6.1.7.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a405ac186306b6cb152e6df2f7444ab8bd764e4127d7519da1b3ae4dd65357ef
|
||||
size 7063411
|
3
astropy-7.0.1.tar.gz
Normal file
3
astropy-7.0.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:392feeb443b2437cd4c2e0641a65e0f15ba791e148e9b1e5ed7de7dfcb38e460
|
||||
size 7139539
|
3
astropy-7.1.0.tar.gz
Normal file
3
astropy-7.1.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c8f254322295b1b8cf24303d6f155bf7efdb6c1282882b966ce3040eff8c53c5
|
||||
size 6976116
|
3
python-astropy-rpmlintrc
Normal file
3
python-astropy-rpmlintrc
Normal file
@@ -0,0 +1,3 @@
|
||||
addFilter('devel-file-in-non-devel-package')
|
||||
addFilter('hidden-file-or-dir .*/tests/data')
|
||||
addFilter('zero-length .*/tests/data')
|
6399
python-astropy.changes
Normal file
6399
python-astropy.changes
Normal file
File diff suppressed because it is too large
Load Diff
247
python-astropy.spec
Normal file
247
python-astropy.spec
Normal file
@@ -0,0 +1,247 @@
|
||||
#
|
||||
# spec file for package python-astropy
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%bcond_without test
|
||||
%define psuffix -test
|
||||
%else
|
||||
%bcond_with test
|
||||
%define psuffix %{nil}
|
||||
%endif
|
||||
|
||||
%define binaries fitsdiff fitsheader fitscheck fitsinfo fits2bitmap samp_hub showtable volint wcslint
|
||||
|
||||
# backwards compatibility for --without systemlibs
|
||||
%bcond_without systemlibs
|
||||
|
||||
%if %{with systemlibs}
|
||||
%bcond_without system_expat
|
||||
%bcond_without system_wcslib
|
||||
%else
|
||||
%bcond_with system_expat
|
||||
%bcond_with system_wcslib
|
||||
%endif
|
||||
|
||||
%if %{with system_expat}
|
||||
%define unbundle_expat export ASTROPY_USE_SYSTEM_EXPAT=1
|
||||
%endif
|
||||
%if %{with system_wcslib}
|
||||
%define unbundle_wcs export ASTROPY_USE_SYSTEM_WCSLIB=1
|
||||
%endif
|
||||
%define unbundle_libs %{?unbundle_expat} \
|
||||
%{?unbundle_wcs}
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-astropy%{psuffix}
|
||||
Version: 7.1.0
|
||||
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/stable/install.html#requirements
|
||||
BuildRequires: %{python_module Cython >= 3 with %python-Cython < 4}
|
||||
BuildRequires: %{python_module devel >= 3.11}
|
||||
BuildRequires: %{python_module extension-helpers >= 1.0 with %python-extension-helpers < 2}
|
||||
BuildRequires: %{python_module numpy-devel}
|
||||
BuildRequires: %{python_module pip}
|
||||
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 >= 6
|
||||
Requires: python-astropy-iers-data >= 0.2025.4.28.0.37.27
|
||||
Requires: python-numpy >= 1.23.2
|
||||
Requires: python-packaging >= 22
|
||||
Requires: python-pyerfa >= 2.0.1.1
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
# %%{_bindir}/showtable namespace clash
|
||||
Conflicts: perl-Data-ShowTable
|
||||
# [recommended]
|
||||
Recommends: python-scipy >= 1.9.2
|
||||
Recommends: python-matplotlib >= 3.6
|
||||
# [all]
|
||||
Suggests: python-h5py
|
||||
Suggests: python-beautifulsoup4
|
||||
Suggests: python-html5lib
|
||||
Suggests: python-bleach
|
||||
Suggests: libxml2-tools
|
||||
Suggests: python-pandas
|
||||
Suggests: python-sortedcontainers
|
||||
Suggests: python-pytz
|
||||
Suggests: python-jplephem
|
||||
Suggests: python-setuptools
|
||||
Suggests: python-mpmath
|
||||
Suggests: python-asdf-astropy >= 0.3
|
||||
Suggests: python-Bottleneck
|
||||
Suggests: python-pyarrow >= 10.0.1
|
||||
Suggests: python-fsspec >= 2023.4.0
|
||||
# Suggests: python-s3fs
|
||||
%if %{with system_expat}
|
||||
BuildRequires: pkgconfig(expat)
|
||||
%endif
|
||||
%if %{with system_wcslib}
|
||||
BuildRequires: pkgconfig(wcslib) >= 8.1
|
||||
%endif
|
||||
%if %{with test}
|
||||
# SECTION [all]+[recommends]
|
||||
BuildRequires: %{python_module Bottleneck}
|
||||
BuildRequires: %{python_module asdf-astropy >= 0.3}
|
||||
BuildRequires: %{python_module beautifulsoup4}
|
||||
BuildRequires: %{python_module bleach}
|
||||
BuildRequires: %{python_module dask-array >= 2022.5.1}
|
||||
BuildRequires: %{python_module fsspec >= 2023.4.0}
|
||||
BuildRequires: %{python_module h5py}
|
||||
BuildRequires: %{python_module html5lib}
|
||||
BuildRequires: %{python_module jplephem}
|
||||
BuildRequires: %{python_module matplotlib >= 3.6.0}
|
||||
BuildRequires: %{python_module mpmath}
|
||||
BuildRequires: %{python_module pandas}
|
||||
%ifnarch %arm
|
||||
BuildRequires: %{python_module pyarrow >= 10.0.1}
|
||||
%endif
|
||||
BuildRequires: %{python_module pytz}
|
||||
BuildRequires: %{python_module scipy >= 1.9.2}
|
||||
BuildRequires: %{python_module sortedcontainers}
|
||||
BuildRequires: %{python_module typing_extensions >= 4.0.0}
|
||||
BuildRequires: libxml2-tools
|
||||
# /SECTION
|
||||
# SECTION [test]
|
||||
# We need the compiled package for testing
|
||||
BuildRequires: %{python_module astropy = %{version}}
|
||||
BuildRequires: %{python_module ipython >= 8}
|
||||
BuildRequires: %{python_module objgraph}
|
||||
BuildRequires: %{python_module pytest >= 7.3}
|
||||
BuildRequires: %{python_module pytest-astropy >= 0.10}
|
||||
BuildRequires: %{python_module pytest-astropy-header >= 0.2.1}
|
||||
BuildRequires: %{python_module pytest-doctestplus >= 0.12}
|
||||
BuildRequires: %{python_module pytest-mpl}
|
||||
BuildRequires: %{python_module pytest-xdist >= 2.5}
|
||||
BuildRequires: %{python_module sgp4 >= 2.3}
|
||||
BuildRequires: %{python_module skyfield}
|
||||
BuildRequires: %{python_module threadpoolctl >= 3}
|
||||
# /SECTION
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Astropy is a package intended to contain core functionality and some
|
||||
common tools needed for performing astronomy and astrophysics research with
|
||||
Python. It also provides an index for other astronomy packages and tools for
|
||||
managing them.
|
||||
|
||||
%if !%{with test}
|
||||
%prep
|
||||
%autosetup -p1 -n astropy-%{version}
|
||||
# avoid rpmlint zero-length error for empty module
|
||||
echo '# empty module' > astropy/samp/setup_package.py
|
||||
|
||||
# Make sure bundled libs are not used
|
||||
%if %{with system_expat}
|
||||
rm -rf cextern/expat
|
||||
rm licenses/EXPAT_LICENSE.rst
|
||||
%endif
|
||||
%if %{with system_wcslib}
|
||||
rm -rf cextern/wcslib
|
||||
rm licenses/WCSLIB_LICENSE.rst
|
||||
%endif
|
||||
|
||||
# increase test deadline for slow obs executions (e.g. on s390x)
|
||||
echo "
|
||||
import hypothesis
|
||||
hypothesis.settings.register_profile(
|
||||
'obs',
|
||||
deadline=5000,
|
||||
suppress_health_check=[
|
||||
hypothesis.HealthCheck.too_slow,
|
||||
hypothesis.HealthCheck.filter_too_much,
|
||||
]
|
||||
)
|
||||
" >> astropy/conftest.py
|
||||
sed -i '/"--color=yes",/d' pyproject.toml
|
||||
find astropy -name .gitignore -delete
|
||||
find astropy -name .empty -delete
|
||||
find astropy -name '*.c' -exec chmod -x {} ';'
|
||||
|
||||
%build
|
||||
%{?unbundle_libs}
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%{?unbundle_libs}
|
||||
%pyproject_install
|
||||
for b in %{binaries}; do
|
||||
%python_clone -a %{buildroot}%{_bindir}/$b
|
||||
done
|
||||
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
%endif
|
||||
|
||||
%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)"
|
||||
# segfaults on obs, but are okay when run on live system -- gh#astropy/astropy/13286
|
||||
donttest+=" or test_celprm or test_prjprm"
|
||||
%ifarch %arm32
|
||||
# precision issues
|
||||
donttest+=" or (TestFits2Bitmap and test_orientation)"
|
||||
%endif
|
||||
# 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 sys, astropy
|
||||
pytestargs = ('-v '
|
||||
'-rsfE '
|
||||
'-n auto ' # pytest-xdist
|
||||
'-p no:cacheprovider '
|
||||
'--hypothesis-profile=obs '
|
||||
'-k \"not ($donttest)\"')
|
||||
returncode = astropy.test(args=pytestargs)
|
||||
sys.exit(returncode)
|
||||
"}
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
%post
|
||||
%{expand:%(for b in %{binaries}; do echo "%%python_install_alternative $b"; done)}
|
||||
|
||||
%postun
|
||||
%{expand:%(for b in %{binaries}; do echo "%%python_uninstall_alternative $b"; done)}
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGES.rst README.rst
|
||||
%license LICENSE.rst licenses/*
|
||||
%{expand:%(for b in %{binaries}; do echo "%%python_alternative %%{_bindir}/$b"; done)}
|
||||
%{python_sitearch}/astropy/
|
||||
%{python_sitearch}/astropy-%{version}.dist-info
|
||||
%endif
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user