From 899bfcd6ea60ab3f9ce3f129f92353a4ad39f26e Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Sun, 9 Apr 2023 12:03:26 +0800 Subject: [PATCH] NEP29: Set minimum required version to Python 3.9+ --- .github/workflows/ci_tests.yaml | 8 ++++---- .github/workflows/ci_tests_legacy.yaml | 2 +- README.rst | 2 +- doc/install.rst | 2 +- pyproject.toml | 3 +-- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci_tests.yaml b/.github/workflows/ci_tests.yaml index fc7f4424e73..06a76c13dce 100644 --- a/.github/workflows/ci_tests.yaml +++ b/.github/workflows/ci_tests.yaml @@ -28,21 +28,21 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.8', '3.11'] + python-version: ['3.9', '3.11'] os: [ubuntu-latest, macOS-latest, windows-latest] # Is it a draft Pull Request (true or false)? isDraft: - ${{ github.event.pull_request.draft }} - # Only run two jobs (Ubuntu + Python 3.8/3.11) for draft PRs + # Only run two jobs (Ubuntu + Python 3.9/3.11) for draft PRs exclude: - os: macOS-latest isDraft: true - os: windows-latest isDraft: true - # Pair Python 3.8 with NumPy 1.21 and Python 3.11 with NumPy 1.24 + # Pair Python 3.9 with NumPy 1.21 and Python 3.11 with NumPy 1.24 # Only install optional packages on Python 3.11/NumPy 1.24 include: - - python-version: '3.8' + - python-version: '3.9' numpy-version: '1.21' optional-packages: '' - python-version: '3.11' diff --git a/.github/workflows/ci_tests_legacy.yaml b/.github/workflows/ci_tests_legacy.yaml index 1608a4e7d09..b857f99e0cb 100644 --- a/.github/workflows/ci_tests_legacy.yaml +++ b/.github/workflows/ci_tests_legacy.yaml @@ -25,7 +25,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.8'] + python-version: ['3.9'] os: [ubuntu-20.04, macOS-11, windows-2019] gmt_version: ['6.3'] timeout-minutes: 30 diff --git a/README.rst b/README.rst index 2e19552a56f..6de1c13b851 100644 --- a/README.rst +++ b/README.rst @@ -262,7 +262,7 @@ Compatibility with GMT/Python/NumPy versions * - `Dev `_ (upcoming release) - `Dev Documentation `_ (reflects `main branch `_) - >=6.3.0 - - >=3.8 + - >=3.9 - >=1.21 * - `v0.9.0 `_ (latest release) - `v0.9.0 Documentation `_ diff --git a/doc/install.rst b/doc/install.rst index 834fb168ae3..fb51a27bb5f 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -64,7 +64,7 @@ Start by looking at the tutorials on our sidebar, good luck! Which Python? ------------- -PyGMT is tested to run on **Python 3.8 or greater**. +PyGMT is tested to run on **Python 3.9 or greater**. We recommend using the `Mambaforge `__ Python distribution to ensure you have all dependencies installed and the diff --git a/pyproject.toml b/pyproject.toml index bdd62c8e28b..247c2dc9087 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta" name = "pygmt" description = "A Python interface for the Generic Mapping Tools" readme = "README.rst" -requires-python = ">=3.8" +requires-python = ">=3.9" license = {text = "BSD License"} authors = [{name = "The PyGMT Developers", email = "pygmt.team@gmail.com"}] keywords = [ @@ -25,7 +25,6 @@ classifiers = [ "Intended Audience :: Education", "Topic :: Scientific/Engineering", "Topic :: Software Development :: Libraries", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11",