Skip to content

Commit

Permalink
Add Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Oct 27, 2022
1 parent a3e05fd commit 03eff32
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-linux.yaml
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-latest]

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-osx.yaml
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- name: Checkout source
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-windows.yaml
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]

steps:
- name: Checkout source
Expand Down
1 change: 1 addition & 0 deletions setup.py
Expand Up @@ -363,6 +363,7 @@ def run_setup(with_extensions):
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
author='Alistair Miles',
author_email='alimanfoo@googlemail.com',
Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Expand Up @@ -3,17 +3,17 @@
# To use it, "pip install tox" and then run "tox" from this directory.

[tox]
envlist = py37, py38, py39, py310, docs
envlist = py37, py38, py39, py310, py311, docs

[testenv]
setenv =
PYTHONHASHSEED = 42
# hooks for coverage exclusions based on Python major version
py37,py38,py39,py310: PY_MAJOR_VERSION = py3
py37,py38,py39,py310,py311: PY_MAJOR_VERSION = py3
commands =
python setup.py build_ext --inplace
py37,py38,py39: pytest -v --cov=numcodecs numcodecs
py310: pytest -v --cov=numcodecs --doctest-modules --doctest-glob=*.pyx numcodecs
py37,py38,py39,310: pytest -v --cov=numcodecs numcodecs
py311: pytest -v --cov=numcodecs --doctest-modules --doctest-glob=*.pyx numcodecs
coverage report -m
py310: flake8 numcodecs
pip freeze
Expand All @@ -22,7 +22,7 @@ deps =
-rrequirements_test.txt

[testenv:docs]
basepython = python3.10
basepython = python3.11
changedir = docs
deps =
-rrequirements_rtfd.txt
Expand Down

0 comments on commit 03eff32

Please sign in to comment.