Skip to content

Commit 26bc871

Browse files
committed
Add todo notes related to dropped py3.7 support #578
1 parent 10d1b14 commit 26bc871

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"mock",
2323
"requests-mock>=1.8.0",
2424
"httpretty>=1.1.4",
25-
# Conditional netCDF4 constraint: no more py3.7 wheels since 1.6.5 (#489)
25+
# TODO #578 Conditional netCDF4 constraint: no more py3.7 wheels since 1.6.5 (#489)
2626
"netCDF4<1.6.5 ; python_version <= '3.7'",
2727
"netCDF4 ; python_version > '3.7'",
2828
"matplotlib",
@@ -31,7 +31,7 @@
3131
"time_machine",
3232
"pyproj>=3.2.0", # Pyproj is an optional, best-effort runtime dependency
3333
"dirty_equals>=0.6.0",
34-
# (#578) On Python 3.7: avoid dirty_equals 0.7.1 which wrongly claims to be Python 3.7 compatible
34+
# TODO #578 On Python 3.7: avoid dirty_equals 0.7.1 which wrongly claims to be Python 3.7 compatible
3535
"dirty_equals<0.7.1 ; python_version <= '3.7'",
3636
"pyarrow>=10.0.1", # For Parquet read/write support in pandas
3737
]
@@ -77,7 +77,8 @@
7777
"numpy>=1.17.0",
7878
"xarray>=0.12.3",
7979
"pandas>0.20.0",
80-
"pystac>=1.5.0", # pystac 1.5.0 is highest version available for lowest Python version we still support (3.7).
80+
# TODO #578: pystac 1.5.0 is highest version available for lowest Python version we still support (3.7).
81+
"pystac>=1.5.0",
8182
"deprecated>=1.2.12",
8283
'oschmod>=0.3.12; sys_platform == "win32"',
8384
"importlib_resources; python_version<'3.9'",

tests/rest/datacube/test_datacube100.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def _get_normalizable_crs_inputs():
199199
yield "EPSG:32631"
200200
yield 32631
201201
if pyproj.__version__ >= ComparableVersion("3.3.1"):
202-
# TODO drop this skip once support for python 3.7 is dropped (pyproj 3.3.0 requires at least python 3.8)
202+
# TODO #578 drop this skip once support for python 3.7 is dropped (pyproj 3.3.0 requires at least python 3.8)
203203
# pyproj below 3.3.1 does not support int-like strings
204204
yield "32631"
205205
yield "+proj=utm +zone=31 +datum=WGS84 +units=m +no_defs" # is also EPSG:32631, in proj format

tests/rest/test_connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2719,7 +2719,7 @@ def test_list_service_types_error(requests_mock):
27192719
def test_list_udf_runtimes(requests_mock):
27202720
requests_mock.get(API_URL, json={"api_version": "1.0.0"})
27212721
conn = Connection(API_URL)
2722-
runtimes = {"Python": {"type": "language", "versions": {"3.7": {}}, "default": "3.7"}}
2722+
runtimes = {"Python": {"type": "language", "versions": {"3.7": {}}, "default": "3.7"}} # TODO #578
27232723
m = requests_mock.get(API_URL + "udf_runtimes", json=runtimes)
27242724
assert conn.list_udf_runtimes() == runtimes
27252725
assert m.call_count == 1

tests/test_util.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ def test_init(self):
690690
}
691691

692692
@pytest.mark.skipif(
693-
# TODO #460 this skip is only necessary for python 3.6 and lower
693+
# TODO #460 #578 this skip is only necessary for python 3.6 and lower
694694
pyproj.__version__ < ComparableVersion("3.3.1"),
695695
reason="pyproj below 3.3.1 does not support int-like strings",
696696
)
@@ -731,7 +731,7 @@ def test_to_bbox_dict_from_sequence(self):
731731
}
732732

733733
@pytest.mark.skipif(
734-
# TODO #460 this skip is only necessary for python 3.6 and lower
734+
# TODO #460 #578 this skip is only necessary for python 3.6 and lower
735735
pyproj.__version__ < ComparableVersion("3.3.1"),
736736
reason="pyproj below 3.3.1 does not support int-like strings",
737737
)
@@ -789,7 +789,7 @@ def test_to_bbox_dict_from_dict(self):
789789
) == {"west": 1, "south": 2, "east": 3, "north": 4, "crs": 4326}
790790

791791
@pytest.mark.skipif(
792-
# TODO #460 this skip is only necessary for python 3.6 and lower
792+
# TODO #460 #578 this skip is only necessary for python 3.6 and lower
793793
pyproj.__version__ < ComparableVersion("3.3.1"),
794794
reason="pyproj below 3.3.1 does not support int-like strings",
795795
)
@@ -933,7 +933,7 @@ class TestNormalizeCrs:
933933
def test_normalize_crs_succeeds_with_correct_crses(self, epsg_input, expected):
934934
"""Happy path, values that are allowed"""
935935
if isinstance(epsg_input, str) and epsg_input.isnumeric() and pyproj.__version__ < ComparableVersion("3.3.1"):
936-
# TODO drop this skip once support for python 3.7 is dropped (pyproj 3.3.0 requires at least python 3.8)
936+
# TODO #578 drop this skip once support for python 3.7 is dropped (pyproj 3.3.0 requires at least python 3.8)
937937
pytest.skip("pyproj below 3.3.1 does not support int-like strings")
938938

939939
assert normalize_crs(epsg_input) == expected
@@ -1052,7 +1052,7 @@ def test_normalize_crs_without_pyproj_succeeds_with_wkt2_input(self):
10521052
}
10531053

10541054
@pytest.mark.skipif(
1055-
# TODO drop this skip once support for python 3.7 is dropped (pyproj 3.3.0 requires at least python 3.8)
1055+
# TODO #578 drop this skip once support for python 3.7 is dropped (pyproj 3.3.0 requires at least python 3.8)
10561056
pyproj.__version__ < ComparableVersion("3.3.0"),
10571057
reason="PROJJSON format support requires pyproj 3.3.0 or higher",
10581058
)

tests/udf/test_xarraydatacube.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def _get_netcdf_engines() -> List[str]:
156156
]
157157
else:
158158
# Poor man's hardcoded fallback
159-
# TODO: drop this once we can require "xarray>=0.17" (which requires "python>=3.7")
159+
# TODO #578: drop this once we can require "xarray>=0.17" (which requires "python>=3.7")
160160
netcdf_engines = ["netcdf4"]
161161
return netcdf_engines
162162

0 commit comments

Comments
 (0)