Skip to content

Commit

Permalink
update to PROJ 6.2.1 (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 authored Nov 2, 2019
1 parent 81f1012 commit ae7d057
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
13 changes: 8 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
global:
- PROJ_BASE_DIR=$HOME/proj_install
- CYTHON_COVERAGE=True
- PROJSOURCE=6.2.0
- PROJSOURCE=6.2.1
# Following generated with
- WHEELHOUSE_UPLOADER_USERNAME=travis-worker
# Following generated by
Expand All @@ -26,20 +26,23 @@ matrix:
os: osx
env:
- PYTHON=3.6.8
- PROJSOURCE=6.2.0
- PROJSOURCE=6.2.1
- python: 3.5
env:
- PROJSOURCE=6.2.0
- PROJSOURCE=6.2.1
- python: 3.6
env:
- PROJSOURCE=6.2.0
- python: 3.6
env:
- PROJSOURCE=6.2.1
- python: 3.7
env:
- PROJSOURCE=6.2.0
- PROJSOURCE=6.2.1
- DOC=true
- python: 3.8
env:
- PROJSOURCE=6.2.0
- PROJSOURCE=6.2.1
- python: "nightly"
env:
- PROJSOURCE=git
Expand Down
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ environment:
# PYTHON_ARCH: "64"
# VS_VERSION: Visual Studio 14
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
# PROJSOURCE: 6.2.0
# PROJSOURCE: 6.2.1
- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
VS_VERSION: Visual Studio 14
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
PROJSOURCE: 6.2.0
PROJSOURCE: 6.2.1
# - PYTHON: "C:\\Python37-x64"
# PYTHON_VERSION: "3.7"
# PYTHON_ARCH: "64"
# VS_VERSION: Visual Studio 14
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
# PROJSOURCE: 6.2.0
# PROJSOURCE: 6.2.1
# - PYTHON: "C:\\Python36-x64"
# PYTHON_VERSION: "3.6"
# PYTHON_ARCH: "64"
Expand Down
1 change: 1 addition & 0 deletions docs/history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Change Log

2.4.1
~~~~~
* Wheels contain PROJ version is 6.2.1 (issue #456)
* BUG: Fix setting lat_ts for mercator projection in :meth:`~pyproj.CRS.from_cf` and :meth:`~pyproj.CRS.to_cf` (issue #461)
* BUG: latlon -> longlat in `CRS.from_cf()` for o_proj so behavior consistent in PROJ 6.2.0 and 6.2.1 (pull #472)
* ENH: Add repr for `pyproj.crs.CoordinateOperation` and for `pyproj.transformer.TransformerGroup` (pull #464)
Expand Down
2 changes: 1 addition & 1 deletion test/test_crs.py
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ def test_to_dict_no_proj4():
"proj": "ob_tran",
}
)
if LooseVersion(proj_version_str) > LooseVersion("6.2.0"):
if LooseVersion(proj_version_str) >= LooseVersion("6.3.0"):
assert crs.to_proj4() == (
"+proj=ob_tran +o_proj=longlat +lon_0=-10 +o_lat_p=30 "
"+o_lon_p=0 +R=6371229 +no_defs +type=crs"
Expand Down
4 changes: 2 additions & 2 deletions test/test_crs_cf.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def test_cf_rotated_latlon():
)
cf_dict = crs.to_cf()
assert cf_dict.pop("crs_wkt").startswith("GEOGCRS[")
if LooseVersion(proj_version_str) > LooseVersion("6.2.0"):
if LooseVersion(proj_version_str) >= LooseVersion("6.3.0"):
assert crs.to_dict() == {
"proj": "ob_tran",
"o_proj": "longlat",
Expand Down Expand Up @@ -181,7 +181,7 @@ def test_cf_rotated_latlon__grid():
north_pole_grid_longitude=0,
)
)
if LooseVersion(proj_version_str) > LooseVersion("6.2.0"):
if LooseVersion(proj_version_str) >= LooseVersion("6.3.0"):
assert crs.to_dict() == {
"proj": "ob_tran",
"o_proj": "longlat",
Expand Down
2 changes: 1 addition & 1 deletion test/test_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def test_transform_no_exception():
def test_transform__out_of_bounds():
with pytest.warns(DeprecationWarning):
transformer = Transformer.from_proj("+init=epsg:4326", "+init=epsg:27700")
if LooseVersion(proj_version_str) > LooseVersion("6.2.0"):
if LooseVersion(proj_version_str) >= LooseVersion("6.3.0"):
with pytest.raises(ProjError):
transformer.transform(100000, 100000, errcheck=True)
else:
Expand Down

0 comments on commit ae7d057

Please sign in to comment.