Skip to content

Commit 72131ae

Browse files
authored
SPEC0: Set minimum supported version to Python 3.10+ (#3039)
SPEC0: Set minimum supported version to Python 3.10 Following [SPEC 0](https://scientific-python.org/specs/spec-0000/) policy where Python 3.9 should be dropped in 2023 quarter 4.
1 parent 7e1389f commit 72131ae

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

.github/workflows/ci_tests.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,21 @@ jobs:
5151
strategy:
5252
fail-fast: false
5353
matrix:
54-
python-version: ['3.9', '3.12']
54+
python-version: ['3.10', '3.12']
5555
os: [ubuntu-latest, macos-latest, windows-latest]
5656
# Is it a draft Pull Request (true or false)?
5757
isDraft:
5858
- ${{ github.event.pull_request.draft }}
59-
# Only run two jobs (Ubuntu + Python 3.9/3.12) for draft PRs
59+
# Only run two jobs (Ubuntu + Python 3.10/3.12) for draft PRs
6060
exclude:
6161
- os: macos-latest
6262
isDraft: true
6363
- os: windows-latest
6464
isDraft: true
65-
# Pair Python 3.9 with NumPy 1.23 and Python 3.12 with NumPy 1.26
65+
# Pair Python 3.10 with NumPy 1.23 and Python 3.12 with NumPy 1.26
6666
# Only install optional packages on Python 3.12/NumPy 1.26
6767
include:
68-
- python-version: '3.9'
68+
- python-version: '3.10'
6969
numpy-version: '1.23'
7070
optional-packages: ''
7171
- python-version: '3.12'

.github/workflows/ci_tests_legacy.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
cache-downloads: false
6161
cache-environment: true
6262
create-args: >-
63-
python=3.9
63+
python=3.10
6464
gmt=${{ matrix.gmt_version }}
6565
numpy
6666
pandas<2

doc/minversions.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ the rest of the Scientific Python ecosystem, and therefore:
1919
* - `Dev <https://github.com/GenericMappingTools/pygmt/milestones>`_ (upcoming release)
2020
- `Dev Documentation <https://www.pygmt.org/dev>`_ (reflects `main branch <https://github.com/GenericMappingTools/pygmt>`_)
2121
- >=6.3.0
22-
- >=3.9
22+
- >=3.10
2323
- >=1.23
2424
* - `v0.11.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.11.0>`_ (latest release)
2525
- `v0.11.0 Documentation <https://www.pygmt.org/v0.11.0>`_

pyproject.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66
name = "pygmt"
77
description = "A Python interface for the Generic Mapping Tools"
88
readme = "README.rst"
9-
requires-python = ">=3.9"
9+
requires-python = ">=3.10"
1010
authors = [{name = "The PyGMT Developers", email = "[email protected]"}]
1111
keywords = [
1212
"cartography",
@@ -24,7 +24,6 @@ classifiers = [
2424
"Intended Audience :: Education",
2525
"Topic :: Scientific/Engineering",
2626
"Topic :: Software Development :: Libraries",
27-
"Programming Language :: Python :: 3.9",
2827
"Programming Language :: Python :: 3.10",
2928
"Programming Language :: Python :: 3.11",
3029
"Programming Language :: Python :: 3.12",

0 commit comments

Comments
 (0)