Skip to content

Commit 36c44bc

Browse files
authored
remove aenum from show versions; cleanup getting source crs for transform group (#398)
1 parent e9cf7be commit 36c44bc

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

pyproj/_show_versions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def _get_deps_info():
5353
deps_info: dict
5454
version information on relevant Python libraries
5555
"""
56-
deps = ["pyproj", "pip", "setuptools", "Cython", "aenum"]
56+
deps = ["pyproj", "pip", "setuptools", "Cython"]
5757

5858
def get_version(module):
5959
try:

pyproj/_transformer.pyx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,8 @@ cdef _CRS get_transform_crs(_CRS in_crs):
151151
sub_crs._type != PJ_TYPE_TEMPORAL_CRS and
152152
sub_crs._type != PJ_TYPE_VERTICAL_CRS
153153
):
154-
return sub_crs
155-
if in_crs.is_bound:
156-
return in_crs.source_crs
157-
return in_crs
154+
return sub_crs.source_crs if sub_crs.is_bound else sub_crs
155+
return in_crs.source_crs if in_crs.is_bound else in_crs
158156

159157

160158
cdef class _Transformer(Base):

test/test_show_versions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ def test_get_deps_info():
1616
assert "setuptools" in deps_info
1717
assert "pyproj" in deps_info
1818
assert "Cython" in deps_info
19-
assert "aenum" in deps_info
2019

2120

2221
def test_show_versions_with_proj(capsys):

0 commit comments

Comments
 (0)