Skip to content

Commit 8efedef

Browse files
authored
Merge branch 'main' into grdclip/S
2 parents 3b36768 + 99a6340 commit 8efedef

File tree

10 files changed

+20
-46
lines changed

10 files changed

+20
-46
lines changed

.github/workflows/check-links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040

4141
- name: Link Checker
4242
id: lychee
43-
uses: lycheeverse/lychee-action@v2.3.0
43+
uses: lycheeverse/lychee-action@v2.4.0
4444
with:
4545
fail: false # Don't fail action on broken links
4646
output: /tmp/lychee-out.md

.github/workflows/ci_tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ jobs:
7272
include:
7373
# Python 3.11 + core packages (minimum supported versions) + optional packages (minimum supported versions if any)
7474
- python-version: '3.11'
75-
numpy-version: '1.25'
75+
numpy-version: '1.26'
7676
pandas-version: '=2.1'
77-
xarray-version: '=2023.04'
77+
xarray-version: '=2023.07'
7878
optional-packages: ' contextily geopandas ipython pyarrow-core rioxarray sphinx-gallery'
7979
# Python 3.13 + core packages (latest versions) + optional packages
8080
- python-version: '3.13'

.github/workflows/ci_tests_legacy.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
strategy:
3737
fail-fast: false
3838
matrix:
39-
os: [ubuntu-22.04, ubuntu-22.04-arm, macos-13, windows-2019]
39+
os: [ubuntu-22.04, ubuntu-22.04-arm, macos-13, windows-2022]
4040
gmt_version: ['6.4']
4141
timeout-minutes: 30
4242
defaults:
@@ -61,15 +61,15 @@ jobs:
6161
python=3.11
6262
gmt=${{ matrix.gmt_version }}
6363
ghostscript<10
64-
numpy<2
64+
numpy=1.26
6565
pandas
6666
xarray
6767
netCDF4
6868
packaging
69-
contextily
69+
contextily=1.5
7070
geopandas=1.0
7171
ipython
72-
pyarrow-core
72+
pyarrow-core=16
7373
rioxarray
7474
sphinx-gallery
7575
make

.github/workflows/format-command.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
# Generate token from GenericMappingTools bot
19-
- uses: actions/create-github-app-token@v1.12.0
19+
- uses: actions/create-github-app-token@v2.0.2
2020
id: generate-token
2121
with:
2222
app-id: ${{ secrets.APP_ID }}

environment.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ dependencies:
77
# Required dependencies
88
- gmt=6.5.0
99
- ghostscript=10.04.0
10-
- numpy>=1.25
10+
- numpy>=1.26
1111
- pandas>=2.1
12-
- xarray>=2023.04
12+
- xarray>=2023.07
1313
- netCDF4
1414
- packaging
1515
# Optional dependencies
16-
- contextily
16+
- 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/datasets/tile_map.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
from collections.abc import Sequence
77
from typing import Literal
88

9-
from packaging.version import Version
10-
119
try:
1210
import contextily
1311
from rasterio.crs import CRS
@@ -100,9 +98,6 @@ def load_tile_map(
10098
The amount to adjust a chosen zoom level if it is chosen automatically. Values
10199
outside of -1 to 1 are not recommended as they can lead to slow execution.
102100
103-
.. note::
104-
The ``zoom_adjust`` parameter requires ``contextily>=1.5.0``.
105-
106101
Returns
107102
-------
108103
raster
@@ -165,16 +160,8 @@ def load_tile_map(
165160
"ll": lonlat,
166161
"wait": wait,
167162
"max_retries": max_retries,
163+
"zoom_adjust": zoom_adjust,
168164
}
169-
# TODO(contextily>=1.5.0): Remove the check for the 'zoom_adjust' parameter.
170-
if zoom_adjust is not None:
171-
if Version(contextily.__version__) < Version("1.5.0"):
172-
msg = (
173-
"The `zoom_adjust` parameter requires `contextily>=1.5.0` to work. "
174-
"Please upgrade contextily, or manually set the `zoom` level instead."
175-
)
176-
raise ValueError(msg)
177-
contextily_kwargs["zoom_adjust"] = zoom_adjust
178165

179166
west, east, south, north = region
180167
image, extent = contextily.bounds2img(

pygmt/src/tilemap.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ def tilemap(
102102
zoom_adjust
103103
The amount to adjust a chosen zoom level if it is chosen automatically. Values
104104
outside of -1 to 1 are not recommended as they can lead to slow execution.
105-
106-
.. note::
107-
The ``zoom_adjust`` parameter requires ``contextily>=1.5.0``.
108-
109105
kwargs : dict
110106
Extra keyword arguments to pass to :meth:`pygmt.Figure.grdimage`.
111107
"""

pygmt/tests/test_clib_to_numpy.py

Lines changed: 1 addition & 10 deletions
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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,20 @@ classifiers = [
3535
"Programming Language :: Python :: 3.13",
3636
]
3737
dependencies = [
38-
"numpy>=1.25",
38+
"numpy>=1.26",
3939
"pandas>=2.1",
40-
"xarray>=2023.04",
40+
"xarray>=2023.07",
4141
"netCDF4",
4242
"packaging",
4343
]
4444
dynamic = ["version"]
4545

4646
[project.optional-dependencies]
4747
all = [
48-
"contextily",
48+
"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

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Required packages
2-
numpy>=1.25
2+
numpy>=1.26
33
pandas>=2.1
4-
xarray>=2023.04
4+
xarray>=2023.07
55
netCDF4
66
packaging

0 commit comments

Comments
 (0)