Skip to content

Commit fbcdff3

Browse files
authored
support python=3.10 (#155)
* test on python 3.10 * run the doctests on python 3.10 * run nightly on py310 as well as py39 for now [test-upstream] * add the python 3.10 classifier * changelog * only test nightly on py310 * add `ipython_genutils` to the docs dependencies for now
1 parent a295abf commit fbcdff3

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

.github/workflows/ci-additional.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ jobs:
1919
- name: setup python
2020
uses: actions/setup-python@v2
2121
with:
22-
python-version: 3.8
22+
python-version: 3.10
2323
- name: initialize cache
2424
uses: actions/cache@v2
2525
with:
2626
path: ~/.cache/pip
27-
key: ${{ runner.os }}-pip-py3.8-${{ hashFiles('ci/requirements/**.txt') }}
27+
key: ${{ runner.os }}-pip-py3.10-${{ hashFiles('ci/requirements/**.txt') }}
2828
restore-keys: |
29-
${{ runner.os }}-pip-py3.8-
29+
${{ runner.os }}-pip-py3.10-
3030
- name: upgrade pip
3131
run: |
3232
python -m pip install --upgrade pip setuptools wheel

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
strategy:
4141
fail-fast: false
4242
matrix:
43-
python-version: [3.8, 3.9]
43+
python-version: ["3.8", "3.9", "3.10"]
4444

4545
steps:
4646
- name: cancel previous runs

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
strategy:
4444
fail-fast: false
4545
matrix:
46-
python-version: [3.9]
46+
python-version: ["3.10"]
4747

4848
outputs:
4949
artifacts_availability: ${{ steps.status.outputs.ARTIFACTS_AVAILABLE }}

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ pooch
44
netCDF4
55
cf-xarray>=0.6
66
sphinx<4
7+
ipython_genutils # remove once there's a new `nbconvert` release
78
sphinx_rtd_theme
89
ipython
910
ipykernel

docs/whats-new.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ What's new
66
------------------
77
- drop support for python 3.7 (:pull:`153`)
88
By `Justus Magin <https://github.com/keewis>`_.
9+
- add support for python 3.10 (:pull:`155`)
10+
By `Justus Magin <https://github.com/keewis>`_.
911

1012
0.2.1 (26 Jul 2021)
1113
-------------------

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ classifiers =
1717
Programming Language :: Python
1818
Programming Language :: Python :: 3.8
1919
Programming Language :: Python :: 3.9
20+
Programming Language :: Python :: 3.10
2021
Topic :: Scientific/Engineering
2122

2223
[options]

0 commit comments

Comments
 (0)