From 9edbee253567b24e07eacfded4e5aca5b6f1e799 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Tue, 30 Sep 2025 08:14:41 +0800 Subject: [PATCH 1/3] Drop GMT 6.4 support --- .github/workflows/ci_tests_legacy.yaml | 2 +- pygmt/clib/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci_tests_legacy.yaml b/.github/workflows/ci_tests_legacy.yaml index aa9942b0d6a..ede19f5afa1 100644 --- a/.github/workflows/ci_tests_legacy.yaml +++ b/.github/workflows/ci_tests_legacy.yaml @@ -37,7 +37,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-22.04, ubuntu-22.04-arm, macos-14, windows-2022] - gmt_version: ['6.4', '6.5'] + gmt_version: ['6.5'] timeout-minutes: 30 defaults: run: diff --git a/pygmt/clib/__init__.py b/pygmt/clib/__init__.py index 3d5d6b1a507..0ca2483e3b2 100644 --- a/pygmt/clib/__init__.py +++ b/pygmt/clib/__init__.py @@ -9,7 +9,7 @@ from pygmt.clib.session import Session, __gmt_version__ from pygmt.exceptions import GMTVersionError -required_gmt_version = "6.4.0" +required_gmt_version = "6.5.0" # Check if the GMT version is older than the required version. if Version(__gmt_version__) < Version(required_gmt_version): From 1b17b282bca7ecaa13c2ce62024284850ebdce6d Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Tue, 30 Sep 2025 08:16:41 +0800 Subject: [PATCH 2/3] Remove codes for GMT 6.4 --- .github/workflows/ci_tests_legacy.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/ci_tests_legacy.yaml b/.github/workflows/ci_tests_legacy.yaml index ede19f5afa1..377abb36708 100644 --- a/.github/workflows/ci_tests_legacy.yaml +++ b/.github/workflows/ci_tests_legacy.yaml @@ -84,11 +84,7 @@ jobs: # Download cached files to ~/.gmt directory and list them gh run download --name gmt-cache --dir ~/.gmt/ # Change modification times of the two files, so GMT won't refresh it. - # The two files are in the `~/.gmt/server` directory for GMT<=6.4, and in the - # `~/.gmt` directory for GMT>=6.5. - mkdir -p ~/.gmt/server/ - mv ~/.gmt/gmt_data_server.txt ~/.gmt/gmt_hash_server.txt ~/.gmt/server/ - touch ~/.gmt/server/gmt_data_server.txt ~/.gmt/server/gmt_hash_server.txt + touch ~/.gmt/gmt_data_server.txt ~/.gmt/gmt_hash_server.txt ls -lhR ~/.gmt env: GH_TOKEN: ${{ github.token }} From e9c89c3a184c184545d69df1bd95ef8e9c07386a Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Tue, 30 Sep 2025 08:16:56 +0800 Subject: [PATCH 3/3] Unpin ghostscript for GMT 6.4 --- .github/workflows/ci_tests_legacy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_tests_legacy.yaml b/.github/workflows/ci_tests_legacy.yaml index 377abb36708..3a96c7e8ff0 100644 --- a/.github/workflows/ci_tests_legacy.yaml +++ b/.github/workflows/ci_tests_legacy.yaml @@ -60,7 +60,7 @@ jobs: create-args: >- python=3.11 gmt=${{ matrix.gmt_version }} - ghostscript<10 + ghostscript numpy=1.26 pandas=2.2 xarray=2023.10