Skip to content

Commit

Permalink
Activate Python 3.9 (#859)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
joshmoore authored Nov 15, 2021
1 parent 1d821d4 commit 1e70a3c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8]
python-version: [3.7, 3.8, 3.9]
numpy_version: ['!=1.21.0', '==1.17.*']
exclude:
- python-version: 3.9
numpy_version: '==1.17.*'
services:
redis:
image: redis
Expand Down Expand Up @@ -47,7 +50,7 @@ jobs:
- name: Create Conda environment with the rights deps
shell: "bash -l {0}"
run: |
conda create -n zarr-env python==${{matrix.python-version}} bsddb3 numcodecs==0.6.4 lmdb pip nodejs flake8 mypy
conda create -n zarr-env python==${{matrix.python-version}} bsddb3 numcodecs lmdb pip nodejs flake8 mypy
conda activate zarr-env
npm install -g azurite
- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: True
matrix:
python-version: ["3.8"]
python-version: ["3.8", "3.9"]
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Create Conda environment with the rights deps
shell: bash -l {0}
run: |
conda create -n zarr-env python==${{matrix.python-version}} numcodecs==0.6.4 pip nodejs
conda create -n zarr-env python==${{matrix.python-version}} numcodecs pip nodejs
- name: Install dependencies
shell: bash -l {0}
run: |
Expand Down
2 changes: 1 addition & 1 deletion requirements_dev_minimal.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# library requirements
asciitree==0.3.3
fasteners==0.16.3
numcodecs==0.8.1
numcodecs==0.9.1
msgpack-python==0.5.6
setuptools-scm==6.3.2
# test requirements
Expand Down
10 changes: 5 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# and then run "tox" from this directory.

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

[testenv]
install_command = pip install --no-binary=numcodecs {opts} {packages}
Expand All @@ -18,17 +18,17 @@ commands =
# clear out any data files generated during tests
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*")]'
# main unit test runner
py38: pytest -v --cov=zarr --cov-config=.coveragerc zarr
py{38,39}: pytest -v --cov=zarr --cov-config=.coveragerc zarr
# don't collect coverage when running older numpy versions
py37-npy117: pytest -v zarr
# collect coverage and run doctests under py37
py37-npylatest: pytest -v --cov=zarr --cov-config=.coveragerc --doctest-plus zarr --remote-data
# generate a coverage report
py37-npylatest,py38: coverage report -m
py37-npylatest,py38,py39: coverage report -m
# run doctests in the tutorial and spec
py38: python -m doctest -o NORMALIZE_WHITESPACE -o ELLIPSIS docs/tutorial.rst docs/spec/v2.rst
py{38,39}: python -m doctest -o NORMALIZE_WHITESPACE -o ELLIPSIS docs/tutorial.rst docs/spec/v2.rst
# pep8 checks
py38: flake8 zarr
py{38,39}: flake8 zarr
# print environment for debugging
pip freeze
deps =
Expand Down

0 comments on commit 1e70a3c

Please sign in to comment.