Skip to content

Commit eec37af

Browse files
committed
Update continuous integration workflows to use Python 3.10
Python 3.10 has been released on 7 October 2021, see changelog at https://docs.python.org/3.10/whatsnew/3.10.html. Updating all the GitHub Actions continuous integration workflows that used Python 3.9 to use Python 3.10 now. Also updated setup.py to include Python 3.10 classifier.
1 parent 0d07ccc commit eec37af

File tree

7 files changed

+14
-13
lines changed

7 files changed

+14
-13
lines changed

.github/workflows/ci_docs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
python-version: [3.9]
28+
python-version: [3.10]
2929
os: [ubuntu-latest, macOS-latest, windows-latest]
3030
# Is it a draft Pull Request (true or false)?
3131
isDraft:
3232
- ${{ github.event.pull_request.draft }}
33-
# Only run one job (Ubuntu + Python 3.9) for draft PRs
33+
# Only run one job (Ubuntu + Python 3.10) for draft PRs
3434
exclude:
3535
- os: macOS-latest
3636
isDraft: true

.github/workflows/ci_tests.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ jobs:
3030
strategy:
3131
fail-fast: false
3232
matrix:
33-
python-version: [3.7, 3.9]
33+
python-version: [3.7, 3.10]
3434
os: [ubuntu-latest, macOS-latest, windows-latest]
3535
# Is it a draft Pull Request (true or false)?
3636
isDraft:
3737
- ${{ github.event.pull_request.draft }}
38-
# Only run one job (Ubuntu + Python 3.9) for draft PRs
38+
# Only run one job (Ubuntu + Python 3.10) for draft PRs
3939
exclude:
4040
- os: macOS-latest
4141
isDraft: true
@@ -44,13 +44,13 @@ jobs:
4444
# - os: ubuntu-latest
4545
# python-version: 3.7
4646
# isDraft: true
47-
# Pair Python 3.7 with NumPy 1.18 and Python 3.9 with NumPy 1.21
48-
# Only install optional packages on Python 3.9/NumPy 1.21
47+
# Pair Python 3.7 with NumPy 1.18 and Python 3.10 with NumPy 1.21
48+
# Only install optional packages on Python 3.10/NumPy 1.21
4949
include:
50-
- python-version: 3.7
50+
- python-version: '3.7'
5151
numpy-version: '1.18'
5252
optional-packages: ''
53-
- python-version: 3.9
53+
- python-version: '3.10'
5454
numpy-version: '1.21'
5555
optional-packages: 'geopandas ipython'
5656
defaults:

.github/workflows/ci_tests_dev.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
python-version: [3.9]
32+
python-version: [3.10]
3333
os: [ubuntu-latest, macOS-11.0, windows-latest]
3434
gmt_git_ref: [master]
3535
defaults:

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Set up Python
3232
uses: actions/[email protected]
3333
with:
34-
python-version: 3.9
34+
python-version: 3.10
3535

3636
- name: Install dependencies
3737
run: python -m pip install setuptools wheel

.github/workflows/style_checks.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Python
2323
uses: actions/[email protected]
2424
with:
25-
python-version: 3.9
25+
python-version: 3.10
2626

2727
- name: Install packages
2828
run: |

doc/install.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Now we can create a new conda environment with Python and all our dependencies
109109
installed (we'll call it ``pygmt`` but feel free to change it to whatever you
110110
want)::
111111

112-
conda create --name pygmt python=3.9 numpy pandas xarray netcdf4 packaging gmt
112+
conda create --name pygmt python=3.10 numpy pandas xarray netcdf4 packaging gmt
113113

114114
Activate the environment by running the following (**do not forget this step!**)::
115115

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
PACKAGE_DATA = {"pygmt.tests": ["data/*", "baseline/*"]}
2222

2323
CLASSIFIERS = [
24-
"Development Status :: 3 - Alpha",
24+
"Development Status :: 4 - Beta",
2525
"Intended Audience :: Science/Research",
2626
"Intended Audience :: Developers",
2727
"Intended Audience :: Education",
@@ -30,6 +30,7 @@
3030
"Programming Language :: Python :: 3.7",
3131
"Programming Language :: Python :: 3.8",
3232
"Programming Language :: Python :: 3.9",
33+
"Programming Language :: Python :: 3.10",
3334
f"License :: OSI Approved :: {LICENSE}",
3435
]
3536
PLATFORMS = "Any"

0 commit comments

Comments
 (0)