From 30d7cd4fede811d8429efa4071ce020ab877b431274339ac7ff2beacda9aa037 Mon Sep 17 00:00:00 2001 From: Stanislav Brabec Date: Wed, 17 Jul 2019 17:35:06 +0000 Subject: [PATCH] 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 --- pyproj-2.0.1.tar.gz | 3 -- pyproj-2.2.0.tar.gz | 3 ++ python-pyproj.changes | 66 +++++++++++++++++++++++++++++++++++++++++++ python-pyproj.spec | 45 +++++++++++++++-------------- 4 files changed, 93 insertions(+), 24 deletions(-) delete mode 100644 pyproj-2.0.1.tar.gz create mode 100644 pyproj-2.2.0.tar.gz diff --git a/pyproj-2.0.1.tar.gz b/pyproj-2.0.1.tar.gz deleted file mode 100644 index 8788ac7..0000000 --- a/pyproj-2.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f2ac42ee0bf52cd4320c7e2d6793fa7e6a4901612a9e85194590ecf885035e56 -size 408681 diff --git a/pyproj-2.2.0.tar.gz b/pyproj-2.2.0.tar.gz new file mode 100644 index 0000000..f03712d --- /dev/null +++ b/pyproj-2.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0a4f793cc93539c2292638c498e24422a2ec4b25cb47545addea07724b2a56e5 +size 378221 diff --git a/python-pyproj.changes b/python-pyproj.changes index a28212e..479b6c5 100644 --- a/python-pyproj.changes +++ b/python-pyproj.changes @@ -1,3 +1,69 @@ +------------------------------------------------------------------- +Wed Jun 12 20:41:02 UTC 2019 - Todd R + +- 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 + ------------------------------------------------------------------- Mon Mar 11 14:05:28 UTC 2019 - Martin Pluskal diff --git a/python-pyproj.spec b/python-pyproj.spec index a1fccd8..e29aaaf 100644 --- a/python-pyproj.spec +++ b/python-pyproj.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pyproj -Version: 2.0.1 +Version: 2.2.0 Release: 0 Summary: Python interface to PROJ4 library License: SUSE-Public-Domain AND X11 @@ -31,17 +31,25 @@ BuildRequires: %{python_module numpy} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: proj -BuildRequires: proj-devel >= 6.0.0 +BuildRequires: proj-devel >= 6.1.0 BuildRequires: python-rpm-macros Requires: python-numpy -# TODO : test it with external proj -# Do tests only for > 1500 -%if 0%{?suse_version} >= 1500 +%if %{python3_version_nodots} < 36 +BuildRequires: %{python_module aenum} +Requires: python-aenum +%else +BuildRequires: python-aenum +%ifpython2 +Requires: python-aenum +%endif +%endif +# SECTION test requirements BuildRequires: %{python_module cov-core} BuildRequires: %{python_module coverage} >= 4.0 BuildRequires: %{python_module mock} -BuildRequires: %{python_module nose2} -%endif +BuildRequires: %{python_module pytest} +# /SECTION + %python_subpackages %description @@ -76,23 +84,18 @@ where you may access the most up-to-date source. %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -%if 0%{?suse_version} >= 1500 - -#{python_expand # Multiline -#export PROJ_DIR=$(pkg-config --variable=libdir proj) -#export PYTHONPATH=%{buildroot}%{$python_sitearch} -#$python -c "import pyproj; pyproj.test()" -#$python -c "import pyproj; pyproj.Proj(init='epsg:4269')" -#cd unittest -#$python test.py -v -#cd .. -#} - -%endif +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.pypy3 -v +} +mv pyproj_temp pyproj %files %{python_files} %license LICENSE -%doc README.md docs/* +%doc README.md %{python_sitearch}/* %changelog