Skip to content

Commit 823d9c0

Browse files
weiji14seisman
andauthored
Add support for Python 3.13 (#3490)
Python 3.13 has been released on 7 Oct 2024, changelog is at https://docs.python.org/3.13/whatsnew/3.13.html --------- Co-authored-by: Dongdong Tian <[email protected]>
1 parent 4060160 commit 823d9c0

14 files changed

+18
-17
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 jobs on Ubuntu 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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
strategy:
5757
fail-fast: false
5858
matrix:
59-
python-version: ['3.10', '3.12']
59+
python-version: ['3.10', '3.13']
6060
os: [ubuntu-latest, macos-latest, windows-latest]
6161
# Is it a draft Pull Request (true or false)?
6262
isDraft:
@@ -74,8 +74,8 @@ jobs:
7474
pandas-version: '=2.0'
7575
xarray-version: '=2023.04'
7676
optional-packages: ' contextily geopandas<1 ipython pyarrow rioxarray sphinx-gallery'
77-
# Python 3.12 + core packages (latest versions) + optional packages
78-
- python-version: '3.12'
77+
# Python 3.13 + core packages (latest versions) + optional packages
78+
- python-version: '3.13'
7979
numpy-version: '2.2'
8080
pandas-version: ''
8181
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
@@ -128,14 +128,14 @@ installed (we'll call it `pygmt` but feel free to change it to whatever you want
128128
::: {tab-item} mamba
129129
:sync: mamba
130130
```
131-
mamba create --name pygmt python=3.12 numpy pandas xarray netcdf4 packaging gmt
131+
mamba create --name pygmt python=3.13 numpy pandas xarray netcdf4 packaging gmt
132132
```
133133
:::
134134

135135
::: {tab-item} conda
136136
:sync: conda
137137
```
138-
conda create --name pygmt python=3.12 numpy pandas xarray netcdf4 packaging gmt
138+
conda create --name pygmt python=3.13 numpy pandas xarray netcdf4 packaging gmt
139139
```
140140
:::
141141
::::

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.10
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)