2019-09-16 07:37:58 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-gwcs
|
|
|
|
#
|
2021-01-18 07:09:40 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2019-09-16 07:37:58 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%define skip_python2 1
|
2021-01-18 07:09:40 +00:00
|
|
|
# Astropy dropped Python 3.6
|
|
|
|
# But gwcs still supports it, so keep the -base, requirement below for potential Leap backports
|
|
|
|
%define skip_python36 1
|
2019-09-16 07:37:58 +00:00
|
|
|
Name: python-gwcs
|
2021-02-11 11:34:12 +00:00
|
|
|
Version: 0.16.1
|
2019-09-16 07:37:58 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Generalized World Coordinate System
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Productivity/Scientific/Astronomy
|
|
|
|
URL: https://gwcs.readthedocs.io/en/latest/
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/g/gwcs/gwcs-%{version}.tar.gz
|
2020-12-19 20:53:41 +00:00
|
|
|
BuildRequires: %{python_module asdf}
|
|
|
|
BuildRequires: %{python_module astropy >= 4.1}
|
|
|
|
BuildRequires: %{python_module base >= 3.6}
|
|
|
|
BuildRequires: %{python_module numpy}
|
|
|
|
BuildRequires: %{python_module scipy}
|
2020-01-07 15:09:21 +00:00
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
2020-06-08 13:18:22 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-09-16 07:37:58 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-asdf
|
2020-12-19 20:53:41 +00:00
|
|
|
Requires: python-astropy >= 4.1
|
|
|
|
Requires: python-numpy
|
|
|
|
Requires: python-scipy
|
2019-09-16 07:37:58 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
# SECTION test requirements
|
2020-12-19 20:53:41 +00:00
|
|
|
BuildRequires: %{python_module pytest-doctestplus}
|
2019-09-16 07:37:58 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2020-06-08 13:18:22 +00:00
|
|
|
An Astropy affiliated package providing tools for managing the
|
2019-09-16 07:37:58 +00:00
|
|
|
World Coordinate System of astronomical data.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n gwcs-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2021-02-11 11:34:12 +00:00
|
|
|
# the schema tests do not tolerate numpy 1.20 deprecation warnings. Already fixed upstream, but patch is too unspecific
|
|
|
|
# gh#spacetelescope/gwcs#353
|
|
|
|
%pytest -ra -k "not (schemas and (label_mapper or regions_selector))"
|
2019-09-16 07:37:58 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
|
|
|
%license licenses/LICENSE.rst licenses/README.rst
|
|
|
|
%{python_sitelib}/gwcs
|
|
|
|
%{python_sitelib}/gwcs-%{version}-py*.egg-info
|
|
|
|
|
|
|
|
%changelog
|