Skip to content

Commit

Permalink
support python=3.10 (#155)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
keewis committed Mar 11, 2022
1 parent a295abf commit fbcdff3
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-additional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.8
python-version: 3.10
- name: initialize cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-py3.8-${{ hashFiles('ci/requirements/**.txt') }}
key: ${{ runner.os }}-pip-py3.10-${{ hashFiles('ci/requirements/**.txt') }}
restore-keys: |
${{ runner.os }}-pip-py3.8-
${{ runner.os }}-pip-py3.10-
- name: upgrade pip
run: |
python -m pip install --upgrade pip setuptools wheel
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8, 3.9]
python-version: ["3.8", "3.9", "3.10"]

steps:
- name: cancel previous runs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.9]
python-version: ["3.10"]

outputs:
artifacts_availability: ${{ steps.status.outputs.ARTIFACTS_AVAILABLE }}
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pooch
netCDF4
cf-xarray>=0.6
sphinx<4
ipython_genutils # remove once there's a new `nbconvert` release
sphinx_rtd_theme
ipython
ipykernel
Expand Down
2 changes: 2 additions & 0 deletions docs/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ What's new
------------------
- drop support for python 3.7 (:pull:`153`)
By `Justus Magin <https://github.com/keewis>`_.
- add support for python 3.10 (:pull:`155`)
By `Justus Magin <https://github.com/keewis>`_.

0.2.1 (26 Jul 2021)
-------------------
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ classifiers =
Programming Language :: Python
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Scientific/Engineering

[options]
Expand Down

0 comments on commit fbcdff3

Please sign in to comment.