forked from Miksus/red-bird
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
72 lines (64 loc) · 2.04 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
67
68
69
70
71
72
[tox]
envlist = py36,py38,py310
# isolated_build = True
# requires = [-rrequirements.txt]
[testenv]
passenv = USERNAME
deps =
-rrequirements.txt
pytest
# change pytest tempdir and add posargs from command line
commands = pytest --pyargs redbird -r chars
[testenv:minimal]
passenv = USERNAME
deps =
pytest
# change pytest tempdir and add posargs from command line
commands = pytest --pyargs redbird -r chars
[testenv:wheeltest]
passenv = USERNAME
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 redbird[full-test]
pytest --pyargs redbird -r chars
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
basepython = python3.8
deps =
-r{toxinidir}/requirements/docs.txt
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/*
[testenv:test-send]
description = Send actual emails in order to visually test content embedding and actual sending
deps =
python-dotenv
-rrequirements.txt
# install_command = pip install --upgrade build
commands = python ci/test_send.py