File: tox.ini

package info (click to toggle)
sphinx-sqlalchemy 0.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 160 kB
  • sloc: python: 241; makefile: 7
file content (31 lines) | stat: -rw-r--r-- 705 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
# To use tox, see https://tox.readthedocs.io
# Simply pip or conda install tox
# If you use conda, you may also want to install tox-conda
# then run `tox` or `tox -- {pytest args}`
# run in parallel using `tox -p`
[tox]
envlist = py38

[testenv]
usedevelop = true

[testenv:py{38,39,310,311}]
description = Run unit tests with this Python version
extras =
    dev
setenv =
    SQLALCHEMY_WARN_20 = 1
commands = pytest {posargs}


[testenv:py38-docs]
description = Create the documentation
extras =
    docs
whitelist_externals =
    echo
    rm
commands =
    rm -rf docs/_build/html
    sphinx-build -nW --keep-going -b html docs/ docs/_build/html
commands_post = echo "open docs/_build/html/index.html"