Skip to content

Commit

Permalink
NEP29: Set minimum required version to Python 3.9+ (#2487)
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman authored Apr 10, 2023
1 parent ba5cb77 commit d2b0c39
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
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 @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ Compatibility with GMT/Python/NumPy versions
* - `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.8
- >=3.9
- >=1.21
* - `v0.9.0 <https://github.com/GenericMappingTools/pygmt/releases/tag/v0.9.0>`_ (latest release)
- `v0.9.0 Documentation <https://www.pygmt.org/v0.9.0>`_
Expand Down
2 changes: 1 addition & 1 deletion doc/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://github.com/conda-forge/miniforge#mambaforge>`__
Python distribution to ensure you have all dependencies installed and the
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.8"
requires-python = ">=3.9"
license = {text = "BSD License"}
authors = [{name = "The PyGMT Developers", email = "pygmt.team@gmail.com"}]
keywords = [
Expand All @@ -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",
Expand Down

0 comments on commit d2b0c39

Please sign in to comment.