forked from Miksus/rocketry
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
66 lines (59 loc) · 1.93 KB
/
tox.ini
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
[tox]
envlist = py36,py38,py310
# isolated_build = True
# requires = [-rrequirements.txt]
[testenv]
deps =
-rrequirements.txt
pytest
# change pytest tempdir and add posargs from command line
commands = pytest --pyargs rocketry -r chars
[testenv:coverage]
basepython = python3.8
deps =
-rrequirements.txt
pytest-cov
pytest
# change pytest tempdir and add posargs from command line
commands = pytest --cov=rocketry --cov-report=html rocketry/test
# commands = pytest --cov {envsitepackagesdir}/rocketry --cov-report=html --cov-config=.coveragerc
[testenv:wheeltest]
description = Build and install the wheel and run Pytests in it.
deps =
pytest
skip_install = True
commands =
# /bin/rm -rf build
python setup.py bdist_wheel
pip install --upgrade --find-links={toxinidir}/dist rocketry
pytest --pyargs rocketry -r chars
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
basepython = python3.8
deps =
-r{toxinidir}/requirements/docs.txt
sphinx >= 1.7.5
commands = sphinx-build docs "{toxinidir}/docs/_build/html" --color -W -bhtml {posargs}
sphinx-build -b doctest docs "{toxinidir}/docs/_build/html"
python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'
[testenv:build]
description = build the package.
skip_install = true
# install_command = pip install --upgrade build
commands = python setup.py bdist_wheel sdist
[testenv:release]
description = build and release the package.
skip_install = true
deps =
twine
# install_command = pip install --upgrade build
commands = python setup.py bdist_wheel sdist
twine upload dist/*
[testenv:release-test]
description = build and release the package.
skip_install = true
deps =
twine
# install_command = pip install --upgrade build
commands = python setup.py bdist_wheel sdist
twine upload -r testpypi dist/*