[go: up one dir, main page]

File: tox.ini

package info (click to toggle)
unyt 3.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,444 kB
  • sloc: python: 11,454; makefile: 20
file content (109 lines) | stat: -rw-r--r-- 2,508 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
[tox]
envlist = py39-docs,begin,py39-dependencies,py39-versions,py{39,310,311,312,313},py39-unyt-module-test-function,end
isolated_build = True

[gh-actions]
python =
    3.9: py39, py39-docs, py39-dependencies, py39-versions, py39-unyt-module-test-function
    3.10: py310
    3.11: py311
    3.12: py312
    3.13: py313

[testenv]
package = wheel
wheel_build_env = .pkg
setenv =
    PYTHONPATH = {toxinidir}
    MPLBACKEND = agg
recreate = true
depends = begin
deps =
    pytest
    h5py
    !py39: pint
    !py39: astropy!=6.1.1
    coverage[toml]>=5.0
    pytest-cov
    pytest-doctestplus
    matplotlib!=3.5.0
    docutils
    dask[array,diagnostics]
commands =
    pytest --cov=unyt --cov-append --doctest-modules --doctest-plus --doctest-rst --basetemp={envtmpdir}
    coverage report --omit='.tox/*'

[testenv:py39]
# skip doctest on py39 because doctests require numpy>=2.0 and all optional deps,
# but some of our optional deps (pint, astropy) don't have a version that support
# both numpy>=2.0 and Python 3.9
commands=
    pytest --cov=unyt --cov-append --basetemp={envtmpdir}
    coverage report --omit='.tox/*'

[testenv:py39-versions]
deps =
    docutils
    pytest
    sympy==1.7
    numpy==1.19.3
    h5py==3.0.0
    pint==0.9
    astropy==4.0.4
    matplotlib==3.3.3
    coverage[toml]
    pytest-cov
    pytest-doctestplus
    dask[array,diagnostics]==2021.04.1
commands =
    # don't do doctests on old numpy versions
    pytest --cov=unyt --cov-append --basetemp={envtmpdir}
    coverage report --omit='.tox/*'

[testenv:py39-dependencies]
deps =
    docutils
    pytest
    coverage[toml]
    pytest-cov
    pytest-doctestplus
depends = begin
commands =
    # don't do doctests in rst files due to lack of way to specify optional
    # test dependencies there
    pytest --cov=unyt --cov-append --doctest-modules --doctest-plus --basetemp={envtmpdir}
    coverage report --omit='.tox/*'

[testenv:py39-docs]
allowlist_externals = make
changedir = docs
deps =
    pytest
    sphinx
    matplotlib!=3.5.0
    dask[array,diagnostics]
commands =
    make clean
    python -m sphinx -M html "." "_build" -W

[testenv:py39-unyt-module-test-function]
depends = py39
commands =
    python -c 'import unyt; unyt.test()'

[testenv:begin]
commands =
    coverage erase
depends =
skip_install = true
deps =
    coverage[toml]

[testenv:end]
commands =
    coverage report --omit='.tox/*'
    coverage html --omit='.tox/*'
skip_install = true
depends = py{39,310,311,312}
deps =
    coverage[toml]