Skip to content

Commit

Permalink
SPEC0: Set minimum supported version to Python 3.10
Browse files Browse the repository at this point in the history
Following [SPEC 0](https://scientific-python.org/specs/spec-0000/) policy where
Python 3.9 should be dropped in 2023 quarter 4.

Supersedes PR #2487.

Address #2863.
  • Loading branch information
seisman committed Feb 5, 2024
1 parent 4b7cb2a commit 7bcb8b6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,21 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.12']
python-version: ['3.10', '3.12']
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.9/3.12) for draft PRs
# Only run two jobs (Ubuntu + Python 3.10/3.12) for draft PRs
exclude:
- os: macos-latest
isDraft: true
- os: windows-latest
isDraft: true
# Pair Python 3.9 with NumPy 1.23 and Python 3.12 with NumPy 1.26
# Pair Python 3.10 with NumPy 1.23 and Python 3.12 with NumPy 1.26
# Only install optional packages on Python 3.12/NumPy 1.26
include:
- python-version: '3.9'
- python-version: '3.10'
numpy-version: '1.23'
optional-packages: ''
- python-version: '3.12'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_tests_legacy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
cache-downloads: false
cache-environment: true
create-args: >-
python=3.9
python=3.10
gmt=${{ matrix.gmt_version }}
numpy
pandas<2
Expand Down
2 changes: 1 addition & 1 deletion doc/minversions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ alongside the rest of the Scientific Python ecosystem, and therefore supports:
* - `Dev <https://github.com/GenericMappingTools/pygmt/milestones>`_ (upcoming release)
- `Dev Documentation <https://www.pygmt.org/dev>`_ (reflects `main branch <https://github.com/GenericMappingTools/pygmt>`_)
- >=6.3.0
- >=3.9
- >=3.10
- >=1.23
* - `v0.11.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.11.0>`_ (latest release)
- `v0.11.0 Documentation <https://www.pygmt.org/v0.11.0>`_
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.9"
requires-python = ">=3.10"
authors = [{name = "The PyGMT Developers", email = "pygmt.team@gmail.com"}]
keywords = [
"cartography",
Expand All @@ -24,7 +24,6 @@ classifiers = [
"Intended Audience :: Education",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down

0 comments on commit 7bcb8b6

Please sign in to comment.