Skip to content

Commit 99a6340

Browse files
authored
Bump minimum supported version to pyarrow>=16 (#3917)
* Bump minimum supported version to pyarrow>=16 * Remove the dummy pyarrow version
1 parent a2c8f3e commit 99a6340

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
lines changed

.github/workflows/ci_tests_legacy.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
contextily=1.5
7070
geopandas=1.0
7171
ipython
72-
pyarrow-core
72+
pyarrow-core=16
7373
rioxarray
7474
sphinx-gallery
7575
make

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
- contextily>=1.5
1717
- geopandas>=1.0
1818
- ipython
19-
- pyarrow-core
19+
- pyarrow-core>=16
2020
- rioxarray
2121
# Development dependencies (general)
2222
- dvc

pygmt/tests/test_clib_to_numpy.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ class pa: # noqa: N801
2424
A dummy class to mimic pyarrow.
2525
"""
2626

27-
__version__ = "0.0.0"
28-
2927
@staticmethod
3028
def timestamp(unit: str, tz: str | None = None):
3129
"""
@@ -625,14 +623,7 @@ def test_to_numpy_pyarrow_numeric_with_na(dtype, expected_dtype):
625623
"utf8", # alias for string
626624
"large_string",
627625
"large_utf8", # alias for large_string
628-
pytest.param(
629-
"string_view",
630-
# TODO(pyarrow>=16): Remove the skipif marker for pyarrow<16.
631-
marks=pytest.mark.skipif(
632-
Version(pa.__version__) < Version("16"),
633-
reason="string_view type was added since pyarrow 16",
634-
),
635-
),
626+
"string_view",
636627
],
637628
)
638629
def test_to_numpy_pyarrow_string(dtype):

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ all = [
4848
"contextily>=1.5",
4949
"geopandas>=1.0",
5050
"IPython", # 'ipython' is not the correct module name.
51-
"pyarrow",
51+
"pyarrow>=16",
5252
"rioxarray",
5353
]
5454

0 commit comments

Comments
 (0)