python-gwcs/python-gwcs.spec

78 lines
2.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-gwcs
#
# Copyright (c) 2023 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/
#
Name: python-gwcs
- update to 0.20.0: * Replace ``pkg_resources`` with ``importlib.metadata``. [#478] * Serialize and deserialize ``pixel_shape`` with asdf. [#480] * Synchronize ``array_shape`` and ``pixel_shape`` attributes of WCS objects. [#439] * Fix failures and warnings with numpy 2.0. [#472] * Remove deprecated old ``bounding_box``. The new implementation is released with * Refactor ``CoordinateFrame.axis_physical_types``. [#459] * ``StokesFrame`` uses now ``astropy.coordinates.StokesCoord``. * Dropped support for Python 3.8. [#451] * Fixed a call to ``astropy.coordinates`` in ``wcstools.wcs_from_points``. [#448] * Code and docstrings clean up. [#460] * Register all available asdf extension manifests from ``asdf- wcs-schemas`` * Added an option to to_fits_sip() to be able to specify the * Added support for providing custom range of degrees in * Fix a formula for estimating crpix in to_fits_sip() so that * Allow sub-pixel sampling of the WCS model when computing SIP * Fixed a bug in to_fits_sip due to which inv_degree was * Added insert_frame method to modify the pipeline of a * Added to_fits_tab method to generate FITS header and binary * Added in_image function for testing whether a point in world coordinates maps back to the domain of definition of the * Updated versions of schemas for gwcs objects based on latest versions of transform schemas in asdf-standard. * Added a wcs.Step class to allow serialization to ASDF to * WCS.pipeline now is a list of Step instances instead of a (frame, transform) tuple. Use WCS.pipeline.transform and OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-gwcs?expand=0&rev=21
2023-12-07 22:40:14 +00:00
Version: 0.20.0
Release: 0
Summary: Generalized World Coordinate System
License: BSD-3-Clause
Group: Productivity/Scientific/Astronomy
URL: https://gwcs.readthedocs.io/en/latest/
# SourceRepository: https://github.com/spacetelescope/gwcs
Source: https://files.pythonhosted.org/packages/source/g/gwcs/gwcs-%{version}.tar.gz
BuildRequires: %{python_module asdf >= 2.8.1}
BuildRequires: %{python_module asdf-astropy >= 0.2.0}
BuildRequires: %{python_module asdf_wcs_schemas}
BuildRequires: %{python_module astropy >= 5.1}
- update to 0.20.0: * Replace ``pkg_resources`` with ``importlib.metadata``. [#478] * Serialize and deserialize ``pixel_shape`` with asdf. [#480] * Synchronize ``array_shape`` and ``pixel_shape`` attributes of WCS objects. [#439] * Fix failures and warnings with numpy 2.0. [#472] * Remove deprecated old ``bounding_box``. The new implementation is released with * Refactor ``CoordinateFrame.axis_physical_types``. [#459] * ``StokesFrame`` uses now ``astropy.coordinates.StokesCoord``. * Dropped support for Python 3.8. [#451] * Fixed a call to ``astropy.coordinates`` in ``wcstools.wcs_from_points``. [#448] * Code and docstrings clean up. [#460] * Register all available asdf extension manifests from ``asdf- wcs-schemas`` * Added an option to to_fits_sip() to be able to specify the * Added support for providing custom range of degrees in * Fix a formula for estimating crpix in to_fits_sip() so that * Allow sub-pixel sampling of the WCS model when computing SIP * Fixed a bug in to_fits_sip due to which inv_degree was * Added insert_frame method to modify the pipeline of a * Added to_fits_tab method to generate FITS header and binary * Added in_image function for testing whether a point in world coordinates maps back to the domain of definition of the * Updated versions of schemas for gwcs objects based on latest versions of transform schemas in asdf-standard. * Added a wcs.Step class to allow serialization to ASDF to * WCS.pipeline now is a list of Step instances instead of a (frame, transform) tuple. Use WCS.pipeline.transform and OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-gwcs?expand=0&rev=21
2023-12-07 22:40:14 +00:00
BuildRequires: %{python_module base >= 3.9}
Accepting request 856937 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * Added an option to to_fits_sip() to be able to specify the reference point (crpix) of the FITS WCS. [#337] * Added support for providing custom range of degrees in to_fits_sip. [#339] * Bounding_box now works with tuple of Quantities. [#331] * Fix a formula for estimating crpix in to_fits_sip() so that crpix is near the center of the bounding box. [#337] * Allow sub-pixel sampling of the WCS model when computing SIP approximation in to_fits_sip(). [#338] * Fixed a bug in to_fits_sip due to which inv_degree was ignored. [#339] - 0.15.0 changelog * Added insert_frame method to modify the pipeline of a WCS object. [#299] * Added to_fits_tab method to generate FITS header and binary table extension following FITS WCS -TAB convention. [#295] * Added in_image function for testing whether a point in world coordinates maps back to the domain of definition of the forward transformation. [#322] * Implemented iterative inverse for imaging WCS. [#324] - 0.14.0 changelog * Updated versions of schemas for gwcs objects based on latest versions of transform schemas in asdf-standard. [#307] * Added a wcs.Step class to allow serialization to ASDF to use references. [#317] * WCS.pipeline now is a list of Step instances instead of a (frame, transform) tuple. Use WCS.pipeline.transform and WCS.pipeline.frame to access them. [#319] * Fix a bug in polygon fill for zero-width bounding boxes. [#293] * Add an optional parameter input_frame to ``wcstools.wcs_from_fiducial`. [#312] OBS-URL: https://build.opensuse.org/request/show/856937 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-gwcs?expand=0&rev=8
2020-12-19 20:53:41 +00:00
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module pip}
Accepting request 856937 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * Added an option to to_fits_sip() to be able to specify the reference point (crpix) of the FITS WCS. [#337] * Added support for providing custom range of degrees in to_fits_sip. [#339] * Bounding_box now works with tuple of Quantities. [#331] * Fix a formula for estimating crpix in to_fits_sip() so that crpix is near the center of the bounding box. [#337] * Allow sub-pixel sampling of the WCS model when computing SIP approximation in to_fits_sip(). [#338] * Fixed a bug in to_fits_sip due to which inv_degree was ignored. [#339] - 0.15.0 changelog * Added insert_frame method to modify the pipeline of a WCS object. [#299] * Added to_fits_tab method to generate FITS header and binary table extension following FITS WCS -TAB convention. [#295] * Added in_image function for testing whether a point in world coordinates maps back to the domain of definition of the forward transformation. [#322] * Implemented iterative inverse for imaging WCS. [#324] - 0.14.0 changelog * Updated versions of schemas for gwcs objects based on latest versions of transform schemas in asdf-standard. [#307] * Added a wcs.Step class to allow serialization to ASDF to use references. [#317] * WCS.pipeline now is a list of Step instances instead of a (frame, transform) tuple. Use WCS.pipeline.transform and WCS.pipeline.frame to access them. [#319] * Fix a bug in polygon fill for zero-width bounding boxes. [#293] * Add an optional parameter input_frame to ``wcstools.wcs_from_fiducial`. [#312] OBS-URL: https://build.opensuse.org/request/show/856937 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-gwcs?expand=0&rev=8
2020-12-19 20:53:41 +00:00
BuildRequires: %{python_module scipy}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-asdf >= 2.8.1
Requires: python-asdf-astropy >= 0.2.0
Requires: python-asdf_wcs_schemas
Requires: python-astropy >= 5.1
Accepting request 856937 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.16.0 * Added an option to to_fits_sip() to be able to specify the reference point (crpix) of the FITS WCS. [#337] * Added support for providing custom range of degrees in to_fits_sip. [#339] * Bounding_box now works with tuple of Quantities. [#331] * Fix a formula for estimating crpix in to_fits_sip() so that crpix is near the center of the bounding box. [#337] * Allow sub-pixel sampling of the WCS model when computing SIP approximation in to_fits_sip(). [#338] * Fixed a bug in to_fits_sip due to which inv_degree was ignored. [#339] - 0.15.0 changelog * Added insert_frame method to modify the pipeline of a WCS object. [#299] * Added to_fits_tab method to generate FITS header and binary table extension following FITS WCS -TAB convention. [#295] * Added in_image function for testing whether a point in world coordinates maps back to the domain of definition of the forward transformation. [#322] * Implemented iterative inverse for imaging WCS. [#324] - 0.14.0 changelog * Updated versions of schemas for gwcs objects based on latest versions of transform schemas in asdf-standard. [#307] * Added a wcs.Step class to allow serialization to ASDF to use references. [#317] * WCS.pipeline now is a list of Step instances instead of a (frame, transform) tuple. Use WCS.pipeline.transform and WCS.pipeline.frame to access them. [#319] * Fix a bug in polygon fill for zero-width bounding boxes. [#293] * Add an optional parameter input_frame to ``wcstools.wcs_from_fiducial`. [#312] OBS-URL: https://build.opensuse.org/request/show/856937 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-gwcs?expand=0&rev=8
2020-12-19 20:53:41 +00:00
Requires: python-numpy
Requires: python-scipy
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest-astropy}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
An Astropy affiliated package providing tools for managing the
World Coordinate System of astronomical data.
%prep
%setup -q -n gwcs-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest -ra
%files %{python_files}
%doc README.rst
%license licenses/LICENSE.rst licenses/README.rst
%{python_sitelib}/gwcs
%{python_sitelib}/gwcs-%{version}*-info
%changelog