- 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
103 lines
3.7 KiB
RPMSpec
103 lines
3.7 KiB
RPMSpec
#
|
|
# spec file for package python-pyproj
|
|
#
|
|
# Copyright (c) 2021 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/
|
|
#
|
|
|
|
|
|
%define skip_python2 1
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-pyproj
|
|
Version: 3.0.0
|
|
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} >= 0.23.5
|
|
BuildRequires: %{python_module Shapely}
|
|
BuildRequires: %{python_module aenum}
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module numpy}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: proj
|
|
BuildRequires: proj-devel >= 7.2.0
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-aenum
|
|
Requires: python-numpy
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module certifi}
|
|
BuildRequires: %{python_module cov-core}
|
|
BuildRequires: %{python_module coverage} >= 4.0
|
|
BuildRequires: %{python_module mock}
|
|
BuildRequires: %{python_module pandas}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module testsuite}
|
|
BuildRequires: %{python_module xarray}
|
|
# /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
|
|
%setup -q -n pyproj-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_clone -a %{buildroot}%{_bindir}/pyproj
|
|
%python_expand rm -rf %{buildroot}%{$python_sitearch}/test
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%check
|
|
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')"
|
|
py.test-%{$python_bin_suffix} --ignore=_build.python2 --ignore=_build.python3 --ignore=_build.python36 --ignore=_build.python38 --ignore=_build.pypy3 -v -m "not network and not cli and not grid"
|
|
}
|
|
mv pyproj_temp pyproj
|
|
|
|
%files %{python_files}
|
|
%python_alternative %{_bindir}/pyproj
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{python_sitearch}/*
|
|
|
|
%changelog
|