Skip to content

Commit 4e26f58

Browse files
weiji14seisman
andcommitted
Bump the minimum required GMT version to 6.2.0 (#1321)
Bump the minimum required GMT version from 6.1.1 to 6.2.0. Also update GitHub Actions CI workflows to use GMT 6.2.0. Official release of Generic Mapping Tools v6.2.0 is at https://github.com/GenericMappingTools/gmt/releases/tag/6.2.0. Co-authored-by: Dongdong Tian <seisman.info@gmail.com>
1 parent 95a2676 commit 4e26f58

File tree

7 files changed

+7
-10
lines changed

7 files changed

+7
-10
lines changed

.github/workflows/cache_data.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
# Install GMT and other required dependencies from conda-forge
3535
- name: Install dependencies
3636
run: |
37-
conda install conda-forge/label/dev::gmt=6.2.0rc2 \
37+
conda install gmt=6.2.0 \
3838
numpy pandas xarray netCDF4 packaging matplotlib
3939
4040
# Install the package that we want to test

.github/workflows/ci_docs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ jobs:
6666
# Install GMT and other required dependencies from conda-forge
6767
- name: Install dependencies
6868
run: |
69-
conda install conda-forge/label/dev::gmt=6.2.0rc2 \
70-
numpy pandas xarray netCDF4 packaging \
69+
conda install gmt=6.2.0 numpy pandas xarray netCDF4 packaging \
7170
ipython make myst-parser \
7271
sphinx sphinx-copybutton sphinx-gallery sphinx_rtd_theme
7372

.github/workflows/ci_tests.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ jobs:
8989
# Install GMT and other required dependencies from conda-forge
9090
- name: Install dependencies
9191
run: |
92-
conda install conda-forge/label/dev::gmt=6.2.0rc2 \
93-
numpy=${{ matrix.numpy-version }} \
92+
conda install gmt=6.2.0 numpy=${{ matrix.numpy-version }} \
9493
pandas xarray netCDF4 packaging \
9594
${{ matrix.optional-packages }} \
9695
codecov coverage[toml] dvc ipython make \

doc/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Which GMT?
6262
PyGMT requires Generic Mapping Tools (GMT) version 6 as a minimum, which is the
6363
latest released version that can be found at
6464
the `GMT official site <https://www.generic-mapping-tools.org>`__.
65-
We need the latest GMT (>=6.1.1) since there are many changes being made to GMT
65+
We need the latest GMT (>=6.2.0) since there are many changes being made to GMT
6666
itself in response to the development of PyGMT, mainly the new
6767
`modern execution mode <https://docs.generic-mapping-tools.org/latest/cookbook/introduction.html#modern-and-classic-mode>`__.
6868

environment.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
name: pygmt
22
channels:
3-
- conda-forge/label/dev
43
- conda-forge
54
- defaults
65
dependencies:
76
# Required dependencies
87
- pip
9-
- gmt=6.2.0rc2
8+
- gmt=6.2.0
109
- numpy>=1.17
1110
- pandas
1211
- xarray

pygmt/clib/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class Session:
123123
"""
124124

125125
# The minimum version of GMT required
126-
required_version = "6.1.1"
126+
required_version = "6.2.0"
127127

128128
@property
129129
def session_pointer(self):

pygmt/tests/test_clib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ def test_get_default():
750750
with clib.Session() as lib:
751751
assert lib.get_default("API_GRID_LAYOUT") in ["rows", "columns"]
752752
assert int(lib.get_default("API_CORES")) >= 1
753-
assert Version(lib.get_default("API_VERSION")) >= Version("6.1.1")
753+
assert Version(lib.get_default("API_VERSION")) >= Version("6.2.0")
754754

755755

756756
def test_get_default_fails():

0 commit comments

Comments
 (0)