|
4 | 4 | # and then run "tox" from this directory.
|
5 | 5 |
|
6 | 6 | [tox]
|
7 |
| -envlist = py27, py34, py35, py36-npy{113,114}, docs |
| 7 | +# N.B., test different versions of numpy under py36 rather than py37 |
| 8 | +# because wheels for npy113 not available for py37 |
| 9 | +envlist = py27, py35, py36-npy{113,114,115}, py37, docs |
8 | 10 |
|
9 | 11 | [testenv]
|
| 12 | +install_command = pip install --no-binary=numcodecs {opts} {packages} |
10 | 13 | setenv =
|
11 | 14 | PYTHONHASHSEED = 42
|
12 | 15 | # hooks for coverage exclusions based on Python major version
|
13 |
| - py34,py35,py36: PY_MAJOR_VERSION = py3 |
| 16 | + py35,py36,py37: PY_MAJOR_VERSION = py3 |
14 | 17 | py27: PY_MAJOR_VERSION = py2
|
15 | 18 | commands =
|
| 19 | + # clear out any data files generated during tests |
16 | 20 | 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*")]'
|
17 |
| - py27,py34,py35: pytest -v --cov=zarr zarr |
18 |
| - # don't run py36-npy114 with coverage because it is run together with py35-npy113 on travis |
| 21 | + # main unit test runner |
| 22 | + # N.B., don't run npy113 or npy114 with coverage because it is run together npy115 on travis |
| 23 | + py27,py35,py36-npy115: pytest -v --cov=zarr --cov-config=.coveragerc zarr |
| 24 | + py36-npy113: pytest -v zarr |
19 | 25 | py36-npy114: pytest -v zarr
|
20 |
| - py36-npy113: pytest -v --cov=zarr --doctest-modules zarr |
21 |
| - py27,py34,py35,py36-npy113: coverage report -m |
22 |
| - py36-npy113: python -m doctest -o NORMALIZE_WHITESPACE -o ELLIPSIS docs/tutorial.rst docs/spec/v2.rst |
23 |
| - py36-npy113: flake8 --max-line-length=100 zarr |
| 26 | + py37: pytest -v --cov=zarr --cov-config=.coveragerc --doctest-modules zarr |
| 27 | + # generate a coverate report |
| 28 | + py27,py35,py36-npy115,py37: coverage report -m |
| 29 | + # run doctests in the tutorial and spec |
| 30 | + py37: python -m doctest -o NORMALIZE_WHITESPACE -o ELLIPSIS docs/tutorial.rst docs/spec/v2.rst |
| 31 | + # pep8 checks |
| 32 | + py37: flake8 --max-line-length=100 zarr |
24 | 33 | deps =
|
25 | 34 | py27: backports.lzma
|
26 |
| - py27,py34,py35,py36-npy113: numpy==1.13.3 |
27 |
| - py36-npy114: numpy==1.14.0 |
| 35 | + py36-npy113: numpy==1.13.3 |
| 36 | + py36-npy114: numpy==1.14.6 |
| 37 | + py27,py35,py36-npy115,py37: numpy==1.15.2 |
28 | 38 | -rrequirements_dev.txt
|
29 | 39 | # linux only
|
30 | 40 | -rrequirements_dev_optional.txt
|
|
0 commit comments