10
0
forked from pool/python-pyproj
Files
python-pyproj/python-pyproj.spec

110 lines
3.7 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package python-pyproj
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-pyproj
Version: 3.7.1
Release: 0
Summary: Python interface to PROJ library
License: SUSE-Public-Domain AND X11
Group: Development/Languages/Python
URL: https://github.com/pyproj4/pyproj
Source: https://files.pythonhosted.org/packages/source/p/pyproj/pyproj-%{version}.tar.gz
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module devel >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: proj
BuildRequires: proj-devel >= 9.2
BuildRequires: python-rpm-macros
Requires: python-certifi
Requires(post): update-alternatives
Requires(postun): update-alternatives
Accepting request 709778 from home:TheBlackCat:branches:Application:Geo - Update to 2.2.0 * Minimum PROJ version is now 6.1.0 + `pyproj.crs` updates: * Updated CRS repr (issue #264) * Add Datum, CoordinateSystem, CoordinateOperation clases (issue #262) * Added :meth:`~pyproj.crs.CRS.to_cf` and :meth:`~pyproj.crs.CRS.from_cf` for converting to/from Climate and Forcast (CF) 1.8 grid mappings (pull #244) * Added :meth:`~pyproj.crs.CRS.to_dict` (issue #226) * Added :meth:`~pyproj.crs.CRS.to_authority` (pull #294) * Added :attr:`~pyproj.crs.CRS.is_vertical` and :attr:`~pyproj.crs.CRS.is_engineering` (issue #316) * Added :attr:`~pyproj.crs.CRS.target_crs` (pull #328) * Provide option to "pretty print" WKT in :attr:`~pyproj.crs.CRS.to_wkt` (issue #258) * Add support for Bound and Compound CRS for :attr:`~pyproj.crs.CRS.is_geographic`, :attr:`~pyproj.crs.CRS.is_projected` (issue #274) * Add support for Bound CRS for :attr:`~pyproj.crs.CRS.is_geocentric` (issue #374) * Add support for comparison with CRS a non-crs type supported by :meth:`~pyproj.crs.CRS.from_user_input` (issue #312) * Added support for ITRF, compound EPSG, and urn projection strings in CRS (pull #289) * Better handle Compound CRS (issue #265) * Disallow creation of non-CRS object (eg pipeline) in CRS class (issue #267) * Added check in :meth:`~pyproj.crs.CRS.to_epsg` for when `proj_list` is null (issue #257) * Fix comparing classes of non-instance types (issue #310) + `pyroj.transformer` updates: * Added `always_xy` option to Transformer so the transform method will always accept as input and return as output coordinates using the traditional GIS order, that is longitude, latitudecfor geographic CRS and easting, northing for most projected CRS (issue #225) * Provide `direction` option in :meth:`~pyproj.transformer.Transformer.transform` (issue #266) * Add check for valid initialization of Transformer and ensure it is a transformer (issue #321) * Added :meth:`~pyproj.transformer.Transformer.to_wkt` as well as attributes related to `PJ_PROJ_INFO` (pull #322) * Undo deprecation of :meth:`~pyproj.transformer.Transformer.from_crs` (issue #275) * Fix false positive errors raised in transformer (issue #249) * Fix :class:`~pyproj.proj.Proj` initialization from DerivedGeographicCRS (issue #270) * Add interface to get the projection/ellps/prime_meridian/units lists (issue #251) * Docs/Build/Test fixes (pull #278, pull #245, pull #248, pull #247, issue #253, pull #252) - Update to 2.1.3 * Added support for time transformations (issue #208) * Fixed projection equivalence testing for transformations (pull #231). * Switch to pytest for testing (pull #230) * Various testing fixes (pull #223, #222, #221, #220) * Convert PROJ error messages from bytes to strings (pull #219) * Fix data dir path separator to be (;) for windows and (:) for linux (pull #234) - Update to 2.1.2 * Updated to use the CRS definition for Proj instances in transforms (issue #207) * Add option to skip tranformation operation if input and output projections are equivalent and always skip if the input and output projections are exact (issue #128) * Update setup.py method for checking PROJ version (pull #211) * Add internal proj error log messages to exceptions (pull #215) - Update to 2.1.1 * Restore behavior of 1.9.6 when illegal projection transformation requested (return ``inf`` instead of raising an exception, issue #202). kwarg ``errcheck`` added to :func:`~pyproj.transformer.transform` and :func:`~pyproj.transformer.itransform` (default ``False``). When ``errcheck=True`` an exception is raised. - Update to 2.1.0 * Added :class:`~pyproj.transformer.Transformer` to make repetitive transformations more efficient (issue #187) * Added fix for using local datumgrids with transform (issue #191) * Added :meth:`~pyproj.transformer.Transformer.from_pipeline` to support pipeline transformations. * Added fix for conversion between radians/degrees for transformations (issues #192 & #195) - Update to 2.0.2 * add filter for boolean values in dict2string so "no_rot=True" works (issue #183). * make sure .pxd files included in source tarball. * add radians flag back in for transform/itransform (issue #185). - Run unit tests - Fix dependencies OBS-URL: https://build.opensuse.org/request/show/709778 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-pyproj?expand=0&rev=9
2019-07-17 17:35:06 +00:00
# SECTION test requirements
BuildRequires: %{python_module Shapely}
BuildRequires: %{python_module certifi}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module packaging}
Accepting request 865359 from home:Guillaume_G:branches:Application:Geo - Update to 3.0.0: * Minimum supported Python version 3.6 (issue #499) * Minimum PROJ version 7.2 (issues #599 & #689) * WHL: Removed datumgrids from wheels because not needed with RFC 4 (pull #628) * ENH: Added PROJ Network Settings (#675, #691, #695) * ENH: Added ability to use global context (issue #661) * ENH: Added transformation grid sync API/CLI (issue #572) * ENH: Support obects with __array__ method (pandas.Series, xarray.DataArray, dask.array.Array) (issue #573) * ENH: Added pyproj.datadir.get_user_data_dir() (pull #636) * ENH: Added pyproj.transformer.Transformer.is_network_enabled (issue #629) * ENH: Added pyproj.transformer.TransformerGroup.download_grids() (pull #643) * ENH: Use ‘proj_get_units_from_database’ in pyproj.database.get_units_map() & cleanup pyproj.database.get_codes() (issue #619) * ENH: Added support for radians for Proj & Transformer.from_pipeline & use less gil (issue #612) * ENH: Datum.from_name default to check all datum types (issue #606) * ENH: Use from_user_input in __eq__ when comparing CRS sub-classes (i.e. PrimeMeridian, Datum, Ellipsoid, etc.) (issue #606) * ENH: Add support for coordinate systems with CRS using CF conventions (issue #536) * ENH: Use proj_is_equivalent_to_with_ctx in the place of proj_is_equivalent_to internally (issue #666) * BUG: Add support for identifying engineering/parametric/temporal datums (issue #670) * ENH: Add support for temporal CRS CF coordinate system (issue #672) * ENH: Added support for debugging internal PROJ (pull #696) * ENH: Added pathlib support for data directory methods (pull #702) * ENH: Added pyproj.database.query_crs_info() (pull #703) * ENH: Added pyproj.database.query_utm_crs_info() (pull #712) * REF: Refactor Proj to inherit from Transformer (issue #624) * REF: Added pyproj.database, pyproj.aoi, and pyproj.list modules (pull #703) * BUG: Fix handling of polygon holes when calculating area in Geod (pull #686) - Drop upstream patch: * pyproj-3.0.0-TST-Update-tests-with-scope-remarks-649.patch - Include 'pyproj' command line tool OBS-URL: https://build.opensuse.org/request/show/865359 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-pyproj?expand=0&rev=28
2021-01-22 10:09:55 +00:00
BuildRequires: %{python_module pandas}
Accepting request 709778 from home:TheBlackCat:branches:Application:Geo - Update to 2.2.0 * Minimum PROJ version is now 6.1.0 + `pyproj.crs` updates: * Updated CRS repr (issue #264) * Add Datum, CoordinateSystem, CoordinateOperation clases (issue #262) * Added :meth:`~pyproj.crs.CRS.to_cf` and :meth:`~pyproj.crs.CRS.from_cf` for converting to/from Climate and Forcast (CF) 1.8 grid mappings (pull #244) * Added :meth:`~pyproj.crs.CRS.to_dict` (issue #226) * Added :meth:`~pyproj.crs.CRS.to_authority` (pull #294) * Added :attr:`~pyproj.crs.CRS.is_vertical` and :attr:`~pyproj.crs.CRS.is_engineering` (issue #316) * Added :attr:`~pyproj.crs.CRS.target_crs` (pull #328) * Provide option to "pretty print" WKT in :attr:`~pyproj.crs.CRS.to_wkt` (issue #258) * Add support for Bound and Compound CRS for :attr:`~pyproj.crs.CRS.is_geographic`, :attr:`~pyproj.crs.CRS.is_projected` (issue #274) * Add support for Bound CRS for :attr:`~pyproj.crs.CRS.is_geocentric` (issue #374) * Add support for comparison with CRS a non-crs type supported by :meth:`~pyproj.crs.CRS.from_user_input` (issue #312) * Added support for ITRF, compound EPSG, and urn projection strings in CRS (pull #289) * Better handle Compound CRS (issue #265) * Disallow creation of non-CRS object (eg pipeline) in CRS class (issue #267) * Added check in :meth:`~pyproj.crs.CRS.to_epsg` for when `proj_list` is null (issue #257) * Fix comparing classes of non-instance types (issue #310) + `pyroj.transformer` updates: * Added `always_xy` option to Transformer so the transform method will always accept as input and return as output coordinates using the traditional GIS order, that is longitude, latitudecfor geographic CRS and easting, northing for most projected CRS (issue #225) * Provide `direction` option in :meth:`~pyproj.transformer.Transformer.transform` (issue #266) * Add check for valid initialization of Transformer and ensure it is a transformer (issue #321) * Added :meth:`~pyproj.transformer.Transformer.to_wkt` as well as attributes related to `PJ_PROJ_INFO` (pull #322) * Undo deprecation of :meth:`~pyproj.transformer.Transformer.from_crs` (issue #275) * Fix false positive errors raised in transformer (issue #249) * Fix :class:`~pyproj.proj.Proj` initialization from DerivedGeographicCRS (issue #270) * Add interface to get the projection/ellps/prime_meridian/units lists (issue #251) * Docs/Build/Test fixes (pull #278, pull #245, pull #248, pull #247, issue #253, pull #252) - Update to 2.1.3 * Added support for time transformations (issue #208) * Fixed projection equivalence testing for transformations (pull #231). * Switch to pytest for testing (pull #230) * Various testing fixes (pull #223, #222, #221, #220) * Convert PROJ error messages from bytes to strings (pull #219) * Fix data dir path separator to be (;) for windows and (:) for linux (pull #234) - Update to 2.1.2 * Updated to use the CRS definition for Proj instances in transforms (issue #207) * Add option to skip tranformation operation if input and output projections are equivalent and always skip if the input and output projections are exact (issue #128) * Update setup.py method for checking PROJ version (pull #211) * Add internal proj error log messages to exceptions (pull #215) - Update to 2.1.1 * Restore behavior of 1.9.6 when illegal projection transformation requested (return ``inf`` instead of raising an exception, issue #202). kwarg ``errcheck`` added to :func:`~pyproj.transformer.transform` and :func:`~pyproj.transformer.itransform` (default ``False``). When ``errcheck=True`` an exception is raised. - Update to 2.1.0 * Added :class:`~pyproj.transformer.Transformer` to make repetitive transformations more efficient (issue #187) * Added fix for using local datumgrids with transform (issue #191) * Added :meth:`~pyproj.transformer.Transformer.from_pipeline` to support pipeline transformations. * Added fix for conversion between radians/degrees for transformations (issues #192 & #195) - Update to 2.0.2 * add filter for boolean values in dict2string so "no_rot=True" works (issue #183). * make sure .pxd files included in source tarball. * add radians flag back in for transform/itransform (issue #185). - Run unit tests - Fix dependencies OBS-URL: https://build.opensuse.org/request/show/709778 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-pyproj?expand=0&rev=9
2019-07-17 17:35:06 +00:00
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module xarray}
Accepting request 709778 from home:TheBlackCat:branches:Application:Geo - Update to 2.2.0 * Minimum PROJ version is now 6.1.0 + `pyproj.crs` updates: * Updated CRS repr (issue #264) * Add Datum, CoordinateSystem, CoordinateOperation clases (issue #262) * Added :meth:`~pyproj.crs.CRS.to_cf` and :meth:`~pyproj.crs.CRS.from_cf` for converting to/from Climate and Forcast (CF) 1.8 grid mappings (pull #244) * Added :meth:`~pyproj.crs.CRS.to_dict` (issue #226) * Added :meth:`~pyproj.crs.CRS.to_authority` (pull #294) * Added :attr:`~pyproj.crs.CRS.is_vertical` and :attr:`~pyproj.crs.CRS.is_engineering` (issue #316) * Added :attr:`~pyproj.crs.CRS.target_crs` (pull #328) * Provide option to "pretty print" WKT in :attr:`~pyproj.crs.CRS.to_wkt` (issue #258) * Add support for Bound and Compound CRS for :attr:`~pyproj.crs.CRS.is_geographic`, :attr:`~pyproj.crs.CRS.is_projected` (issue #274) * Add support for Bound CRS for :attr:`~pyproj.crs.CRS.is_geocentric` (issue #374) * Add support for comparison with CRS a non-crs type supported by :meth:`~pyproj.crs.CRS.from_user_input` (issue #312) * Added support for ITRF, compound EPSG, and urn projection strings in CRS (pull #289) * Better handle Compound CRS (issue #265) * Disallow creation of non-CRS object (eg pipeline) in CRS class (issue #267) * Added check in :meth:`~pyproj.crs.CRS.to_epsg` for when `proj_list` is null (issue #257) * Fix comparing classes of non-instance types (issue #310) + `pyroj.transformer` updates: * Added `always_xy` option to Transformer so the transform method will always accept as input and return as output coordinates using the traditional GIS order, that is longitude, latitudecfor geographic CRS and easting, northing for most projected CRS (issue #225) * Provide `direction` option in :meth:`~pyproj.transformer.Transformer.transform` (issue #266) * Add check for valid initialization of Transformer and ensure it is a transformer (issue #321) * Added :meth:`~pyproj.transformer.Transformer.to_wkt` as well as attributes related to `PJ_PROJ_INFO` (pull #322) * Undo deprecation of :meth:`~pyproj.transformer.Transformer.from_crs` (issue #275) * Fix false positive errors raised in transformer (issue #249) * Fix :class:`~pyproj.proj.Proj` initialization from DerivedGeographicCRS (issue #270) * Add interface to get the projection/ellps/prime_meridian/units lists (issue #251) * Docs/Build/Test fixes (pull #278, pull #245, pull #248, pull #247, issue #253, pull #252) - Update to 2.1.3 * Added support for time transformations (issue #208) * Fixed projection equivalence testing for transformations (pull #231). * Switch to pytest for testing (pull #230) * Various testing fixes (pull #223, #222, #221, #220) * Convert PROJ error messages from bytes to strings (pull #219) * Fix data dir path separator to be (;) for windows and (:) for linux (pull #234) - Update to 2.1.2 * Updated to use the CRS definition for Proj instances in transforms (issue #207) * Add option to skip tranformation operation if input and output projections are equivalent and always skip if the input and output projections are exact (issue #128) * Update setup.py method for checking PROJ version (pull #211) * Add internal proj error log messages to exceptions (pull #215) - Update to 2.1.1 * Restore behavior of 1.9.6 when illegal projection transformation requested (return ``inf`` instead of raising an exception, issue #202). kwarg ``errcheck`` added to :func:`~pyproj.transformer.transform` and :func:`~pyproj.transformer.itransform` (default ``False``). When ``errcheck=True`` an exception is raised. - Update to 2.1.0 * Added :class:`~pyproj.transformer.Transformer` to make repetitive transformations more efficient (issue #187) * Added fix for using local datumgrids with transform (issue #191) * Added :meth:`~pyproj.transformer.Transformer.from_pipeline` to support pipeline transformations. * Added fix for conversion between radians/degrees for transformations (issues #192 & #195) - Update to 2.0.2 * add filter for boolean values in dict2string so "no_rot=True" works (issue #183). * make sure .pxd files included in source tarball. * add radians flag back in for transform/itransform (issue #185). - Run unit tests - Fix dependencies OBS-URL: https://build.opensuse.org/request/show/709778 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-pyproj?expand=0&rev=9
2019-07-17 17:35:06 +00:00
# /SECTION
%python_subpackages
%description
Performs cartographic transformations and geodetic computations.
The Proj class can convert from geographic (longitude,latitude) to native map
projection (x,y) coordinates and vice versa, or from one map projection
coordinate system directly to another.
The Geod class can perform forward and inverse geodetic, or Great Circle,
computations. The forward computation involves determining latitude, longitude
and back azimuth of a terminus point given the latitude and longitude of an
initial point, plus azimuth and distance. The inverse computation involves
determining the forward and back azimuths and distance given the latitudes and
longitudes of an initial and terminus point.
Input coordinates can be given as python arrays, lists/tuples, scalars or
numpy/Numeric/numarray arrays. Optimized for objects that support the Python
buffer protocol (regular python and numpy array objects).
This project has a git repository https://github.com/pyproj4/pyproj
where you may access the most up-to-date source.
%prep
%autosetup -p1 -n pyproj-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
Accepting request 865359 from home:Guillaume_G:branches:Application:Geo - Update to 3.0.0: * Minimum supported Python version 3.6 (issue #499) * Minimum PROJ version 7.2 (issues #599 & #689) * WHL: Removed datumgrids from wheels because not needed with RFC 4 (pull #628) * ENH: Added PROJ Network Settings (#675, #691, #695) * ENH: Added ability to use global context (issue #661) * ENH: Added transformation grid sync API/CLI (issue #572) * ENH: Support obects with __array__ method (pandas.Series, xarray.DataArray, dask.array.Array) (issue #573) * ENH: Added pyproj.datadir.get_user_data_dir() (pull #636) * ENH: Added pyproj.transformer.Transformer.is_network_enabled (issue #629) * ENH: Added pyproj.transformer.TransformerGroup.download_grids() (pull #643) * ENH: Use ‘proj_get_units_from_database’ in pyproj.database.get_units_map() & cleanup pyproj.database.get_codes() (issue #619) * ENH: Added support for radians for Proj & Transformer.from_pipeline & use less gil (issue #612) * ENH: Datum.from_name default to check all datum types (issue #606) * ENH: Use from_user_input in __eq__ when comparing CRS sub-classes (i.e. PrimeMeridian, Datum, Ellipsoid, etc.) (issue #606) * ENH: Add support for coordinate systems with CRS using CF conventions (issue #536) * ENH: Use proj_is_equivalent_to_with_ctx in the place of proj_is_equivalent_to internally (issue #666) * BUG: Add support for identifying engineering/parametric/temporal datums (issue #670) * ENH: Add support for temporal CRS CF coordinate system (issue #672) * ENH: Added support for debugging internal PROJ (pull #696) * ENH: Added pathlib support for data directory methods (pull #702) * ENH: Added pyproj.database.query_crs_info() (pull #703) * ENH: Added pyproj.database.query_utm_crs_info() (pull #712) * REF: Refactor Proj to inherit from Transformer (issue #624) * REF: Added pyproj.database, pyproj.aoi, and pyproj.list modules (pull #703) * BUG: Fix handling of polygon holes when calculating area in Geod (pull #686) - Drop upstream patch: * pyproj-3.0.0-TST-Update-tests-with-scope-remarks-649.patch - Include 'pyproj' command line tool OBS-URL: https://build.opensuse.org/request/show/865359 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-pyproj?expand=0&rev=28
2021-01-22 10:09:55 +00:00
%python_clone -a %{buildroot}%{_bindir}/pyproj
%python_expand rm -rf %{buildroot}%{$python_sitearch}/test
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
Accepting request 709778 from home:TheBlackCat:branches:Application:Geo - Update to 2.2.0 * Minimum PROJ version is now 6.1.0 + `pyproj.crs` updates: * Updated CRS repr (issue #264) * Add Datum, CoordinateSystem, CoordinateOperation clases (issue #262) * Added :meth:`~pyproj.crs.CRS.to_cf` and :meth:`~pyproj.crs.CRS.from_cf` for converting to/from Climate and Forcast (CF) 1.8 grid mappings (pull #244) * Added :meth:`~pyproj.crs.CRS.to_dict` (issue #226) * Added :meth:`~pyproj.crs.CRS.to_authority` (pull #294) * Added :attr:`~pyproj.crs.CRS.is_vertical` and :attr:`~pyproj.crs.CRS.is_engineering` (issue #316) * Added :attr:`~pyproj.crs.CRS.target_crs` (pull #328) * Provide option to "pretty print" WKT in :attr:`~pyproj.crs.CRS.to_wkt` (issue #258) * Add support for Bound and Compound CRS for :attr:`~pyproj.crs.CRS.is_geographic`, :attr:`~pyproj.crs.CRS.is_projected` (issue #274) * Add support for Bound CRS for :attr:`~pyproj.crs.CRS.is_geocentric` (issue #374) * Add support for comparison with CRS a non-crs type supported by :meth:`~pyproj.crs.CRS.from_user_input` (issue #312) * Added support for ITRF, compound EPSG, and urn projection strings in CRS (pull #289) * Better handle Compound CRS (issue #265) * Disallow creation of non-CRS object (eg pipeline) in CRS class (issue #267) * Added check in :meth:`~pyproj.crs.CRS.to_epsg` for when `proj_list` is null (issue #257) * Fix comparing classes of non-instance types (issue #310) + `pyroj.transformer` updates: * Added `always_xy` option to Transformer so the transform method will always accept as input and return as output coordinates using the traditional GIS order, that is longitude, latitudecfor geographic CRS and easting, northing for most projected CRS (issue #225) * Provide `direction` option in :meth:`~pyproj.transformer.Transformer.transform` (issue #266) * Add check for valid initialization of Transformer and ensure it is a transformer (issue #321) * Added :meth:`~pyproj.transformer.Transformer.to_wkt` as well as attributes related to `PJ_PROJ_INFO` (pull #322) * Undo deprecation of :meth:`~pyproj.transformer.Transformer.from_crs` (issue #275) * Fix false positive errors raised in transformer (issue #249) * Fix :class:`~pyproj.proj.Proj` initialization from DerivedGeographicCRS (issue #270) * Add interface to get the projection/ellps/prime_meridian/units lists (issue #251) * Docs/Build/Test fixes (pull #278, pull #245, pull #248, pull #247, issue #253, pull #252) - Update to 2.1.3 * Added support for time transformations (issue #208) * Fixed projection equivalence testing for transformations (pull #231). * Switch to pytest for testing (pull #230) * Various testing fixes (pull #223, #222, #221, #220) * Convert PROJ error messages from bytes to strings (pull #219) * Fix data dir path separator to be (;) for windows and (:) for linux (pull #234) - Update to 2.1.2 * Updated to use the CRS definition for Proj instances in transforms (issue #207) * Add option to skip tranformation operation if input and output projections are equivalent and always skip if the input and output projections are exact (issue #128) * Update setup.py method for checking PROJ version (pull #211) * Add internal proj error log messages to exceptions (pull #215) - Update to 2.1.1 * Restore behavior of 1.9.6 when illegal projection transformation requested (return ``inf`` instead of raising an exception, issue #202). kwarg ``errcheck`` added to :func:`~pyproj.transformer.transform` and :func:`~pyproj.transformer.itransform` (default ``False``). When ``errcheck=True`` an exception is raised. - Update to 2.1.0 * Added :class:`~pyproj.transformer.Transformer` to make repetitive transformations more efficient (issue #187) * Added fix for using local datumgrids with transform (issue #191) * Added :meth:`~pyproj.transformer.Transformer.from_pipeline` to support pipeline transformations. * Added fix for conversion between radians/degrees for transformations (issues #192 & #195) - Update to 2.0.2 * add filter for boolean values in dict2string so "no_rot=True" works (issue #183). * make sure .pxd files included in source tarball. * add radians flag back in for transform/itransform (issue #185). - Run unit tests - Fix dependencies OBS-URL: https://build.opensuse.org/request/show/709778 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-pyproj?expand=0&rev=9
2019-07-17 17:35:06 +00:00
mv pyproj pyproj_temp
export PROJ_DIR=$(pkg-config --variable=libdir proj)
%{python_expand # Multiline
export PYTHONPATH=%{buildroot}%{$python_sitearch}
$python -c "import pyproj; pyproj.Proj(init='epsg:4269')"
}
# Reset to remove wrong flavor path from loop above
export PYTHONPATH=""
%pytest_arch -rs -k "not (network)"
Accepting request 709778 from home:TheBlackCat:branches:Application:Geo - Update to 2.2.0 * Minimum PROJ version is now 6.1.0 + `pyproj.crs` updates: * Updated CRS repr (issue #264) * Add Datum, CoordinateSystem, CoordinateOperation clases (issue #262) * Added :meth:`~pyproj.crs.CRS.to_cf` and :meth:`~pyproj.crs.CRS.from_cf` for converting to/from Climate and Forcast (CF) 1.8 grid mappings (pull #244) * Added :meth:`~pyproj.crs.CRS.to_dict` (issue #226) * Added :meth:`~pyproj.crs.CRS.to_authority` (pull #294) * Added :attr:`~pyproj.crs.CRS.is_vertical` and :attr:`~pyproj.crs.CRS.is_engineering` (issue #316) * Added :attr:`~pyproj.crs.CRS.target_crs` (pull #328) * Provide option to "pretty print" WKT in :attr:`~pyproj.crs.CRS.to_wkt` (issue #258) * Add support for Bound and Compound CRS for :attr:`~pyproj.crs.CRS.is_geographic`, :attr:`~pyproj.crs.CRS.is_projected` (issue #274) * Add support for Bound CRS for :attr:`~pyproj.crs.CRS.is_geocentric` (issue #374) * Add support for comparison with CRS a non-crs type supported by :meth:`~pyproj.crs.CRS.from_user_input` (issue #312) * Added support for ITRF, compound EPSG, and urn projection strings in CRS (pull #289) * Better handle Compound CRS (issue #265) * Disallow creation of non-CRS object (eg pipeline) in CRS class (issue #267) * Added check in :meth:`~pyproj.crs.CRS.to_epsg` for when `proj_list` is null (issue #257) * Fix comparing classes of non-instance types (issue #310) + `pyroj.transformer` updates: * Added `always_xy` option to Transformer so the transform method will always accept as input and return as output coordinates using the traditional GIS order, that is longitude, latitudecfor geographic CRS and easting, northing for most projected CRS (issue #225) * Provide `direction` option in :meth:`~pyproj.transformer.Transformer.transform` (issue #266) * Add check for valid initialization of Transformer and ensure it is a transformer (issue #321) * Added :meth:`~pyproj.transformer.Transformer.to_wkt` as well as attributes related to `PJ_PROJ_INFO` (pull #322) * Undo deprecation of :meth:`~pyproj.transformer.Transformer.from_crs` (issue #275) * Fix false positive errors raised in transformer (issue #249) * Fix :class:`~pyproj.proj.Proj` initialization from DerivedGeographicCRS (issue #270) * Add interface to get the projection/ellps/prime_meridian/units lists (issue #251) * Docs/Build/Test fixes (pull #278, pull #245, pull #248, pull #247, issue #253, pull #252) - Update to 2.1.3 * Added support for time transformations (issue #208) * Fixed projection equivalence testing for transformations (pull #231). * Switch to pytest for testing (pull #230) * Various testing fixes (pull #223, #222, #221, #220) * Convert PROJ error messages from bytes to strings (pull #219) * Fix data dir path separator to be (;) for windows and (:) for linux (pull #234) - Update to 2.1.2 * Updated to use the CRS definition for Proj instances in transforms (issue #207) * Add option to skip tranformation operation if input and output projections are equivalent and always skip if the input and output projections are exact (issue #128) * Update setup.py method for checking PROJ version (pull #211) * Add internal proj error log messages to exceptions (pull #215) - Update to 2.1.1 * Restore behavior of 1.9.6 when illegal projection transformation requested (return ``inf`` instead of raising an exception, issue #202). kwarg ``errcheck`` added to :func:`~pyproj.transformer.transform` and :func:`~pyproj.transformer.itransform` (default ``False``). When ``errcheck=True`` an exception is raised. - Update to 2.1.0 * Added :class:`~pyproj.transformer.Transformer` to make repetitive transformations more efficient (issue #187) * Added fix for using local datumgrids with transform (issue #191) * Added :meth:`~pyproj.transformer.Transformer.from_pipeline` to support pipeline transformations. * Added fix for conversion between radians/degrees for transformations (issues #192 & #195) - Update to 2.0.2 * add filter for boolean values in dict2string so "no_rot=True" works (issue #183). * make sure .pxd files included in source tarball. * add radians flag back in for transform/itransform (issue #185). - Run unit tests - Fix dependencies OBS-URL: https://build.opensuse.org/request/show/709778 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-pyproj?expand=0&rev=9
2019-07-17 17:35:06 +00:00
mv pyproj_temp pyproj
%post
%python_install_alternative pyproj
%postun
%python_uninstall_alternative pyproj
%files %{python_files}
Accepting request 865359 from home:Guillaume_G:branches:Application:Geo - Update to 3.0.0: * Minimum supported Python version 3.6 (issue #499) * Minimum PROJ version 7.2 (issues #599 & #689) * WHL: Removed datumgrids from wheels because not needed with RFC 4 (pull #628) * ENH: Added PROJ Network Settings (#675, #691, #695) * ENH: Added ability to use global context (issue #661) * ENH: Added transformation grid sync API/CLI (issue #572) * ENH: Support obects with __array__ method (pandas.Series, xarray.DataArray, dask.array.Array) (issue #573) * ENH: Added pyproj.datadir.get_user_data_dir() (pull #636) * ENH: Added pyproj.transformer.Transformer.is_network_enabled (issue #629) * ENH: Added pyproj.transformer.TransformerGroup.download_grids() (pull #643) * ENH: Use ‘proj_get_units_from_database’ in pyproj.database.get_units_map() & cleanup pyproj.database.get_codes() (issue #619) * ENH: Added support for radians for Proj & Transformer.from_pipeline & use less gil (issue #612) * ENH: Datum.from_name default to check all datum types (issue #606) * ENH: Use from_user_input in __eq__ when comparing CRS sub-classes (i.e. PrimeMeridian, Datum, Ellipsoid, etc.) (issue #606) * ENH: Add support for coordinate systems with CRS using CF conventions (issue #536) * ENH: Use proj_is_equivalent_to_with_ctx in the place of proj_is_equivalent_to internally (issue #666) * BUG: Add support for identifying engineering/parametric/temporal datums (issue #670) * ENH: Add support for temporal CRS CF coordinate system (issue #672) * ENH: Added support for debugging internal PROJ (pull #696) * ENH: Added pathlib support for data directory methods (pull #702) * ENH: Added pyproj.database.query_crs_info() (pull #703) * ENH: Added pyproj.database.query_utm_crs_info() (pull #712) * REF: Refactor Proj to inherit from Transformer (issue #624) * REF: Added pyproj.database, pyproj.aoi, and pyproj.list modules (pull #703) * BUG: Fix handling of polygon holes when calculating area in Geod (pull #686) - Drop upstream patch: * pyproj-3.0.0-TST-Update-tests-with-scope-remarks-649.patch - Include 'pyproj' command line tool OBS-URL: https://build.opensuse.org/request/show/865359 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-pyproj?expand=0&rev=28
2021-01-22 10:09:55 +00:00
%python_alternative %{_bindir}/pyproj
%license LICENSE
Accepting request 709778 from home:TheBlackCat:branches:Application:Geo - Update to 2.2.0 * Minimum PROJ version is now 6.1.0 + `pyproj.crs` updates: * Updated CRS repr (issue #264) * Add Datum, CoordinateSystem, CoordinateOperation clases (issue #262) * Added :meth:`~pyproj.crs.CRS.to_cf` and :meth:`~pyproj.crs.CRS.from_cf` for converting to/from Climate and Forcast (CF) 1.8 grid mappings (pull #244) * Added :meth:`~pyproj.crs.CRS.to_dict` (issue #226) * Added :meth:`~pyproj.crs.CRS.to_authority` (pull #294) * Added :attr:`~pyproj.crs.CRS.is_vertical` and :attr:`~pyproj.crs.CRS.is_engineering` (issue #316) * Added :attr:`~pyproj.crs.CRS.target_crs` (pull #328) * Provide option to "pretty print" WKT in :attr:`~pyproj.crs.CRS.to_wkt` (issue #258) * Add support for Bound and Compound CRS for :attr:`~pyproj.crs.CRS.is_geographic`, :attr:`~pyproj.crs.CRS.is_projected` (issue #274) * Add support for Bound CRS for :attr:`~pyproj.crs.CRS.is_geocentric` (issue #374) * Add support for comparison with CRS a non-crs type supported by :meth:`~pyproj.crs.CRS.from_user_input` (issue #312) * Added support for ITRF, compound EPSG, and urn projection strings in CRS (pull #289) * Better handle Compound CRS (issue #265) * Disallow creation of non-CRS object (eg pipeline) in CRS class (issue #267) * Added check in :meth:`~pyproj.crs.CRS.to_epsg` for when `proj_list` is null (issue #257) * Fix comparing classes of non-instance types (issue #310) + `pyroj.transformer` updates: * Added `always_xy` option to Transformer so the transform method will always accept as input and return as output coordinates using the traditional GIS order, that is longitude, latitudecfor geographic CRS and easting, northing for most projected CRS (issue #225) * Provide `direction` option in :meth:`~pyproj.transformer.Transformer.transform` (issue #266) * Add check for valid initialization of Transformer and ensure it is a transformer (issue #321) * Added :meth:`~pyproj.transformer.Transformer.to_wkt` as well as attributes related to `PJ_PROJ_INFO` (pull #322) * Undo deprecation of :meth:`~pyproj.transformer.Transformer.from_crs` (issue #275) * Fix false positive errors raised in transformer (issue #249) * Fix :class:`~pyproj.proj.Proj` initialization from DerivedGeographicCRS (issue #270) * Add interface to get the projection/ellps/prime_meridian/units lists (issue #251) * Docs/Build/Test fixes (pull #278, pull #245, pull #248, pull #247, issue #253, pull #252) - Update to 2.1.3 * Added support for time transformations (issue #208) * Fixed projection equivalence testing for transformations (pull #231). * Switch to pytest for testing (pull #230) * Various testing fixes (pull #223, #222, #221, #220) * Convert PROJ error messages from bytes to strings (pull #219) * Fix data dir path separator to be (;) for windows and (:) for linux (pull #234) - Update to 2.1.2 * Updated to use the CRS definition for Proj instances in transforms (issue #207) * Add option to skip tranformation operation if input and output projections are equivalent and always skip if the input and output projections are exact (issue #128) * Update setup.py method for checking PROJ version (pull #211) * Add internal proj error log messages to exceptions (pull #215) - Update to 2.1.1 * Restore behavior of 1.9.6 when illegal projection transformation requested (return ``inf`` instead of raising an exception, issue #202). kwarg ``errcheck`` added to :func:`~pyproj.transformer.transform` and :func:`~pyproj.transformer.itransform` (default ``False``). When ``errcheck=True`` an exception is raised. - Update to 2.1.0 * Added :class:`~pyproj.transformer.Transformer` to make repetitive transformations more efficient (issue #187) * Added fix for using local datumgrids with transform (issue #191) * Added :meth:`~pyproj.transformer.Transformer.from_pipeline` to support pipeline transformations. * Added fix for conversion between radians/degrees for transformations (issues #192 & #195) - Update to 2.0.2 * add filter for boolean values in dict2string so "no_rot=True" works (issue #183). * make sure .pxd files included in source tarball. * add radians flag back in for transform/itransform (issue #185). - Run unit tests - Fix dependencies OBS-URL: https://build.opensuse.org/request/show/709778 OBS-URL: https://build.opensuse.org/package/show/Application:Geo/python-pyproj?expand=0&rev=9
2019-07-17 17:35:06 +00:00
%doc README.md
%{python_sitearch}/pyproj
%{python_sitearch}/pyproj-%{version}*-info
%changelog