Skip to content

Commit f7462f6

Browse files
committed
Add support for Python 3.13
Python 3.13 has been released on 7 Oct 2024, changelog is at https://docs.python.org/3.13/whatsnew/3.13.html
1 parent 331998d commit f7462f6

14 files changed

+21
-20
lines changed

.github/workflows/benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
cache-environment-key: micromamba-environment-${{ steps.date.outputs.date }}
5959
create-args: >-
6060
gmt=6.5.0
61-
python=3.12
61+
python=3.13
6262
numpy
6363
pandas
6464
xarray

.github/workflows/cache_data.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- conda-forge
5252
- nodefaults
5353
create-args: >-
54-
python=3.12
54+
python=3.13
5555
gmt=6.5.0
5656
numpy
5757
pandas

.github/workflows/ci_docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
# Is it a draft Pull Request (true or false)?
5656
isDraft:
5757
- ${{ github.event.pull_request.draft }}
58-
# Only run one job (Ubuntu + Python 3.12) for draft PRs
58+
# Only run one job (Ubuntu + Python 3.13) for draft PRs
5959
exclude:
6060
- os: macos-latest
6161
isDraft: true
@@ -92,7 +92,7 @@ jobs:
9292
# environment cache is persistent for one week.
9393
cache-environment-key: micromamba-environment-${{ steps.date.outputs.date }}
9494
create-args: >-
95-
python=3.12
95+
python=3.13
9696
gmt=6.5.0
9797
ghostscript=10.04.0
9898
numpy

.github/workflows/ci_doctests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- conda-forge
5151
- nodefaults
5252
create-args: >-
53-
python=3.12
53+
python=3.13
5454
gmt=6.5.0
5555
numpy
5656
pandas

.github/workflows/ci_tests.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,27 +54,27 @@ jobs:
5454
strategy:
5555
fail-fast: false
5656
matrix:
57-
python-version: ['3.10', '3.12']
57+
python-version: ['3.10', '3.13']
5858
os: [ubuntu-latest, macos-latest, windows-latest]
5959
# Is it a draft Pull Request (true or false)?
6060
isDraft:
6161
- ${{ github.event.pull_request.draft }}
62-
# Only run two jobs (Ubuntu + Python 3.10/3.12) for draft PRs
62+
# Only run two jobs (Ubuntu + Python 3.10/3.13) for draft PRs
6363
exclude:
6464
- os: macos-latest
6565
isDraft: true
6666
- os: windows-latest
6767
isDraft: true
6868
# Pair Python 3.10 with the minimum supported versions of NumPy/Pandas/Xarray
69-
# and Python 3.12 with the latest versions of NumPy/Pandas/Xarray
70-
# Only install optional packages on Python 3.12
69+
# and Python 3.13 with the latest versions of NumPy/Pandas/Xarray
70+
# Only install optional packages on Python 3.13
7171
include:
7272
- python-version: '3.10'
7373
numpy-version: '1.24'
7474
pandas-version: '=2.0'
7575
xarray-version: '=2023.04'
7676
optional-packages: ''
77-
- python-version: '3.12'
77+
- python-version: '3.13'
7878
numpy-version: '2.1'
7979
pandas-version: ''
8080
xarray-version: ''
@@ -83,7 +83,7 @@ jobs:
8383
# The python-version here can't be the versions in the matrix.python-version
8484
# defined above. Otherwise, other jobs will be overridden by this one.
8585
- os: 'ubuntu-latest'
86-
python-version: '3.11' # Can't be 3.10 or 3.12.
86+
python-version: '3.11' # Can't be 3.10 or 3.13.
8787
numpy-version: '1.24'
8888
pandas-version: ''
8989
xarray-version: ''

.github/workflows/ci_tests_dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
# environment cache is persistent for one week.
7070
cache-environment-key: micromamba-environment-${{ steps.date.outputs.date }}
7171
create-args: >-
72-
python=3.12
72+
python=3.13
7373
cmake
7474
make
7575
ninja

.github/workflows/format-command.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
# Setup Python environment
2828
- uses: actions/[email protected]
2929
with:
30-
python-version: '3.12'
30+
python-version: '3.13'
3131

3232
# Install formatting tools
3333
- name: Install formatting tools

.github/workflows/publish-to-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Set up Python
5454
uses: actions/[email protected]
5555
with:
56-
python-version: '3.12'
56+
python-version: '3.13'
5757

5858
- name: Install dependencies
5959
run: python -m pip install build

.github/workflows/style_checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Set up Python
3131
uses: actions/[email protected]
3232
with:
33-
python-version: '3.12'
33+
python-version: '3.13'
3434

3535
- name: Install packages
3636
run: |

.github/workflows/type_checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Set up Python
4040
uses: actions/[email protected]
4141
with:
42-
python-version: '3.12'
42+
python-version: '3.13'
4343

4444
- name: Install packages
4545
run: |

ci/requirements/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ channels:
44
- nodefaults
55
dependencies:
66
# Required dependencies
7-
- python=3.12
7+
- python=3.13
88
- gmt=6.5.0
99
- ghostscript=10.04.0
1010
- numpy

doc/install.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,14 @@ installed (we'll call it `pygmt` but feel free to change it to whatever you want
132132
::: {tab-item} mamba
133133
:sync: mamba
134134
```
135-
mamba create --name pygmt python=3.12 numpy pandas xarray netcdf4 packaging gmt
135+
mamba create --name pygmt python=3.13 numpy pandas xarray netcdf4 packaging gmt
136136
```
137137
:::
138138

139139
::: {tab-item} conda
140140
:sync: conda
141141
```
142-
conda create --name pygmt python=3.12 numpy pandas xarray netcdf4 packaging gmt
142+
conda create --name pygmt python=3.13 numpy pandas xarray netcdf4 packaging gmt
143143
```
144144
:::
145145
::::

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ channels:
33
- conda-forge
44
- nodefaults
55
dependencies:
6-
- python=3.12
6+
- python=3.13
77
# Required dependencies
88
- gmt=6.5.0
99
- ghostscript=10.04.0

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ classifiers = [
2727
"Programming Language :: Python :: 3.10",
2828
"Programming Language :: Python :: 3.11",
2929
"Programming Language :: Python :: 3.12",
30+
"Programming Language :: Python :: 3.13",
3031
"License :: OSI Approved :: BSD License",
3132
]
3233
dependencies = [

0 commit comments

Comments
 (0)