- update to 6.1.2:
* When reading CDS and MRT files, only interpret a line as a
section delimiter if it contains exclusively dashes or equal
signs. This enables rows starting with dashes.
* Fix a spurious exception when reading integer compressed
images with blanks.
* Fixed a crash that occurred for files opened via
fits.open(..., mode='update'), on Windows, and with numpy 2.0
installed. A warning is now emitted in cases most likely to
escalate into undefined behavior (e.g., segfaults), i.e.,
when a closed memory map object is still referenced by
external code. Please report any regression found.
* Fixed a bug that caused models returned by non-linear fitters
to have sync_constraints set to False, which caused
constraints accessed through, e.g., Model.fixed to not be in
sync with the fixed attribute of the parameters.
* Fixed a bug that caused CompoundModel.without_units_for_data
to return an incorrectly constructed model when the compound
model contained a * or / operation, and which also caused
fitting to not work correctly with compound models that
contained * or / operations.
* The OGIP parser is now less restrictive with strings that
represent a unit that includes the sqrt function. For
example, u.Unit("sqrt(m)**3", format="ogip") no longer causes
a ValueError.
* Fixed an edge-case bug in overlap_slices where the function
could return an empty slice for non-overlapping slices.
* Fixed a WCSAxes bug when overlaying a frame with default
units that are not degrees.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-astropy?expand=0&rev=131
2024-08-09 08:55:59 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-astropy
|
|
|
|
#
|
|
|
|
# Copyright (c) 2024 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}
|
2024-08-30 17:31:50 +02:00
|
|
|
Version: 6.1.3
|
- update to 6.1.2:
* When reading CDS and MRT files, only interpret a line as a
section delimiter if it contains exclusively dashes or equal
signs. This enables rows starting with dashes.
* Fix a spurious exception when reading integer compressed
images with blanks.
* Fixed a crash that occurred for files opened via
fits.open(..., mode='update'), on Windows, and with numpy 2.0
installed. A warning is now emitted in cases most likely to
escalate into undefined behavior (e.g., segfaults), i.e.,
when a closed memory map object is still referenced by
external code. Please report any regression found.
* Fixed a bug that caused models returned by non-linear fitters
to have sync_constraints set to False, which caused
constraints accessed through, e.g., Model.fixed to not be in
sync with the fixed attribute of the parameters.
* Fixed a bug that caused CompoundModel.without_units_for_data
to return an incorrectly constructed model when the compound
model contained a * or / operation, and which also caused
fitting to not work correctly with compound models that
contained * or / operations.
* The OGIP parser is now less restrictive with strings that
represent a unit that includes the sqrt function. For
example, u.Unit("sqrt(m)**3", format="ogip") no longer causes
a ValueError.
* Fixed an edge-case bug in overlap_slices where the function
could return an empty slice for non-overlapping slices.
* Fixed a WCSAxes bug when overlaying a frame with default
units that are not degrees.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-astropy?expand=0&rev=131
2024-08-09 08:55:59 +02:00
|
|
|
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/v6.1/install.html#requirements
|
|
|
|
BuildRequires: %{python_module Cython >= 3 with %python-Cython < 3.1}
|
|
|
|
BuildRequires: %{python_module devel >= 3.9}
|
|
|
|
BuildRequires: %{python_module extension-helpers >= 1.0}
|
2024-08-16 11:27:15 +02:00
|
|
|
BuildRequires: %{python_module numpy-devel}
|
- update to 6.1.2:
* When reading CDS and MRT files, only interpret a line as a
section delimiter if it contains exclusively dashes or equal
signs. This enables rows starting with dashes.
* Fix a spurious exception when reading integer compressed
images with blanks.
* Fixed a crash that occurred for files opened via
fits.open(..., mode='update'), on Windows, and with numpy 2.0
installed. A warning is now emitted in cases most likely to
escalate into undefined behavior (e.g., segfaults), i.e.,
when a closed memory map object is still referenced by
external code. Please report any regression found.
* Fixed a bug that caused models returned by non-linear fitters
to have sync_constraints set to False, which caused
constraints accessed through, e.g., Model.fixed to not be in
sync with the fixed attribute of the parameters.
* Fixed a bug that caused CompoundModel.without_units_for_data
to return an incorrectly constructed model when the compound
model contained a * or / operation, and which also caused
fitting to not work correctly with compound models that
contained * or / operations.
* The OGIP parser is now less restrictive with strings that
represent a unit that includes the sqrt function. For
example, u.Unit("sqrt(m)**3", format="ogip") no longer causes
a ValueError.
* Fixed an edge-case bug in overlap_slices where the function
could return an empty slice for non-overlapping slices.
* Fixed a WCSAxes bug when overlaying a frame with default
units that are not degrees.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-astropy?expand=0&rev=131
2024-08-09 08:55:59 +02:00
|
|
|
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 >= 3.13
|
2024-08-30 17:31:50 +02:00
|
|
|
Requires: python-astropy-iers-data >= 0.2024.7.29.0.32.7
|
2024-08-16 11:27:15 +02:00
|
|
|
Requires: python-numpy >= 1.23
|
- update to 6.1.2:
* When reading CDS and MRT files, only interpret a line as a
section delimiter if it contains exclusively dashes or equal
signs. This enables rows starting with dashes.
* Fix a spurious exception when reading integer compressed
images with blanks.
* Fixed a crash that occurred for files opened via
fits.open(..., mode='update'), on Windows, and with numpy 2.0
installed. A warning is now emitted in cases most likely to
escalate into undefined behavior (e.g., segfaults), i.e.,
when a closed memory map object is still referenced by
external code. Please report any regression found.
* Fixed a bug that caused models returned by non-linear fitters
to have sync_constraints set to False, which caused
constraints accessed through, e.g., Model.fixed to not be in
sync with the fixed attribute of the parameters.
* Fixed a bug that caused CompoundModel.without_units_for_data
to return an incorrectly constructed model when the compound
model contained a * or / operation, and which also caused
fitting to not work correctly with compound models that
contained * or / operations.
* The OGIP parser is now less restrictive with strings that
represent a unit that includes the sqrt function. For
example, u.Unit("sqrt(m)**3", format="ogip") no longer causes
a ValueError.
* Fixed an edge-case bug in overlap_slices where the function
could return an empty slice for non-overlapping slices.
* Fixed a WCSAxes bug when overlaying a frame with default
units that are not degrees.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-astropy?expand=0&rev=131
2024-08-09 08:55:59 +02:00
|
|
|
Requires: python-packaging >= 19.0
|
|
|
|
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.8
|
|
|
|
Recommends: python-matplotlib >= 3.3
|
|
|
|
Conflicts: python-matplotlib = 3.4.0
|
|
|
|
Conflicts: python-matplotlib = 3.5.2
|
|
|
|
# [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 >= 5
|
|
|
|
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}
|
|
|
|
BuildRequires: %{python_module fsspec >= 2023.4.0}
|
|
|
|
BuildRequires: %{python_module h5py}
|
|
|
|
BuildRequires: %{python_module html5lib}
|
|
|
|
BuildRequires: %{python_module jplephem}
|
|
|
|
BuildRequires: %{python_module matplotlib >= 3.3}
|
|
|
|
BuildRequires: %{python_module mpmath}
|
|
|
|
BuildRequires: %{python_module pandas}
|
|
|
|
%ifnarch %arm
|
|
|
|
BuildRequires: %{python_module pyarrow >= 5}
|
|
|
|
%endif
|
|
|
|
BuildRequires: %{python_module pytz}
|
|
|
|
BuildRequires: %{python_module scipy >= 1.8}
|
|
|
|
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 >= 4.2 if %python-base >= 3.10}
|
|
|
|
BuildRequires: %{python_module objgraph}
|
|
|
|
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}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module sgp4 >= 2.3}
|
|
|
|
BuildRequires: %{python_module skyfield}
|
|
|
|
BuildRequires: %{python_module threadpoolctl}
|
|
|
|
# /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]
|
|
|
|
)
|
|
|
|
" >> 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
|