* https://github.com/astropy/astropy-iers-data/compare/v0.2026.1.12.0.42.13...v0.2026.1.19.0.42.31 - Update to 0.2025.12.29.0.42.34 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-astropy-iers-data?expand=0&rev=31
86 lines
2.6 KiB
RPMSpec
86 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-astropy-iers-data
|
|
#
|
|
# Copyright (c) 2026 SUSE LLC and contributors
|
|
#
|
|
# 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
|
|
|
|
Name: python-astropy-iers-data%{psuffix}
|
|
Version: 0.2026.1.19.0.42.31
|
|
Release: 0
|
|
Summary: IERS Earth Rotation and Leap Second tables for the astropy core package
|
|
License: BSD-3-Clause
|
|
URL: https://github.com/astropy/astropy-iers-data
|
|
Source: https://files.pythonhosted.org/packages/source/a/astropy-iers-data/astropy_iers_data-%{version}.tar.gz
|
|
BuildRequires: %{python_module base >= 3.8}
|
|
BuildRequires: %{python_module hatch-vcs}
|
|
BuildRequires: %{python_module hatchling >= 1.5}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: python-rpm-macros
|
|
%if %{with test}
|
|
BuildRequires: %{python_module astropy-iers-data = %{version}}
|
|
BuildRequires: %{python_module astropy}
|
|
BuildRequires: %{python_module hypothesis}
|
|
BuildRequires: %{python_module pytest-remotedata}
|
|
BuildRequires: %{python_module pytest-xdist}
|
|
BuildRequires: %{python_module pytest}
|
|
%endif
|
|
BuildRequires: fdupes
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
IERS Earth Rotation and Leap Second tables for the astropy core package
|
|
|
|
Note: This package is not currently meant to be used directly by users, and only meant to be used from the core astropy package.
|
|
|
|
%prep
|
|
%autosetup -p1 -n astropy_iers_data-%{version}
|
|
|
|
%if !%{with test}
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
%endif
|
|
|
|
%if %{with test}
|
|
%check
|
|
# See tox.ini
|
|
%pytest -n auto -m "not hypothesis" --pyargs astropy.coordinates
|
|
%pytest -n auto -m "not hypothesis" --pyargs astropy.time
|
|
%pytest -n auto -m "not hypothesis" --pyargs astropy.utils.iers
|
|
%endif
|
|
|
|
%if !%{with test}
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license LICENSE.rst
|
|
%{python_sitelib}/astropy_iers_data
|
|
%{python_sitelib}/astropy_iers_data-%{version}.dist-info
|
|
%endif
|
|
|
|
%changelog
|