Skip to content

Commit 1e70a3c

Browse files
authored
Activate Python 3.9 (#859)
* Activate Python 3.9 * bump numcodecs to 0.9.1 * Remove numcodecs 0.6.4 pins * skip numpy 1.17 on py39 * update tox.ini * Exclude AND of py39 & numpy 1.17
1 parent 1d821d4 commit 1e70a3c

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

.github/workflows/python-package.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: [3.7, 3.8]
18+
python-version: [3.7, 3.8, 3.9]
1919
numpy_version: ['!=1.21.0', '==1.17.*']
20+
exclude:
21+
- python-version: 3.9
22+
numpy_version: '==1.17.*'
2023
services:
2124
redis:
2225
image: redis
@@ -47,7 +50,7 @@ jobs:
4750
- name: Create Conda environment with the rights deps
4851
shell: "bash -l {0}"
4952
run: |
50-
conda create -n zarr-env python==${{matrix.python-version}} bsddb3 numcodecs==0.6.4 lmdb pip nodejs flake8 mypy
53+
conda create -n zarr-env python==${{matrix.python-version}} bsddb3 numcodecs lmdb pip nodejs flake8 mypy
5154
conda activate zarr-env
5255
npm install -g azurite
5356
- name: Install dependencies

.github/workflows/windows-testing.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: True
1818
matrix:
19-
python-version: ["3.8"]
19+
python-version: ["3.8", "3.9"]
2020
steps:
2121
- uses: actions/checkout@v2
2222
with:
@@ -31,7 +31,7 @@ jobs:
3131
- name: Create Conda environment with the rights deps
3232
shell: bash -l {0}
3333
run: |
34-
conda create -n zarr-env python==${{matrix.python-version}} numcodecs==0.6.4 pip nodejs
34+
conda create -n zarr-env python==${{matrix.python-version}} numcodecs pip nodejs
3535
- name: Install dependencies
3636
shell: bash -l {0}
3737
run: |

requirements_dev_minimal.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# library requirements
22
asciitree==0.3.3
33
fasteners==0.16.3
4-
numcodecs==0.8.1
4+
numcodecs==0.9.1
55
msgpack-python==0.5.6
66
setuptools-scm==6.3.2
77
# test requirements

tox.ini

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py37-npy{117,latest}, py38, docs
7+
envlist = py37-npy{117,latest}, py38, py39, docs
88

99
[testenv]
1010
install_command = pip install --no-binary=numcodecs {opts} {packages}
@@ -18,17 +18,17 @@ commands =
1818
# clear out any data files generated during tests
1919
python -c 'import glob; import shutil; import os; [(shutil.rmtree(d) if os.path.isdir(d) else os.remove(d) if os.path.isfile(d) else None) for d in glob.glob("./example*")]'
2020
# main unit test runner
21-
py38: pytest -v --cov=zarr --cov-config=.coveragerc zarr
21+
py{38,39}: pytest -v --cov=zarr --cov-config=.coveragerc zarr
2222
# don't collect coverage when running older numpy versions
2323
py37-npy117: pytest -v zarr
2424
# collect coverage and run doctests under py37
2525
py37-npylatest: pytest -v --cov=zarr --cov-config=.coveragerc --doctest-plus zarr --remote-data
2626
# generate a coverage report
27-
py37-npylatest,py38: coverage report -m
27+
py37-npylatest,py38,py39: coverage report -m
2828
# run doctests in the tutorial and spec
29-
py38: python -m doctest -o NORMALIZE_WHITESPACE -o ELLIPSIS docs/tutorial.rst docs/spec/v2.rst
29+
py{38,39}: python -m doctest -o NORMALIZE_WHITESPACE -o ELLIPSIS docs/tutorial.rst docs/spec/v2.rst
3030
# pep8 checks
31-
py38: flake8 zarr
31+
py{38,39}: flake8 zarr
3232
# print environment for debugging
3333
pip freeze
3434
deps =

0 commit comments

Comments
 (0)