Diff of /tox.ini [000000] .. [d9566e]

Switch to unified view

a b/tox.ini
1
[tox]
2
minversion = 3.15
3
envlist = default
4
5
6
[testenv]
7
description = invoke pytest to run automated tests
8
isolated_build = True
9
setenv =
10
    TOXINIDIR = {toxinidir}
11
passenv =
12
    HOME
13
deps =
14
    setuptools
15
    pytest
16
    pytest-cov
17
    # flake8
18
    # mypy
19
    # black
20
install_command = pip install --pre --find-links https://download.pytorch.org/whl/cu117/torch_stable.html {opts} {packages}
21
commands =
22
    pytest {posargs}
23
    # black {toxinidir}/sybil --check
24
    # flake8 {toxinidir}/sybil
25
    # mypy {toxinidir}/sybil
26
27
28
[testenv:{clean,build}]
29
description =
30
    Build (or clean) the package in isolation according to instructions in:
31
    https://setuptools.readthedocs.io/en/latest/build_meta.html#how-to-use-it
32
    https://github.com/pypa/pep517/issues/91
33
    https://github.com/pypa/build
34
# NOTE: build is still experimental, please refer to the links for updates/issues
35
skip_install = True
36
changedir = {toxinidir}
37
deps =
38
    build: build[virtualenv]
39
commands =
40
    clean: python -c 'from shutil import rmtree; rmtree("build", True); rmtree("dist", True)'
41
    build: python -m build .
42
# By default `build` produces wheels, you can also explicitly use the flags `--sdist` and `--wheel`
43
44
45
[testenv:{docs,doctests}]
46
description = invoke sphinx-build to build the docs/run doctests
47
setenv =
48
    DOCSDIR = {toxinidir}/docs
49
    BUILDDIR = {toxinidir}/docs/_build
50
    docs: BUILD = html
51
    doctests: BUILD = doctest
52
deps =
53
    -r {toxinidir}/docs/requirements.txt
54
    # ^  requirements.txt shared with Read The Docs
55
commands =
56
    sphinx-build -b {env:BUILD} -d "{env:BUILDDIR}/doctrees" "{env:DOCSDIR}" "{env:BUILDDIR}/{env:BUILD}" {posargs}