forked from pypa/twine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
96 lines (86 loc) · 1.89 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[tox]
minversion = 2.4
envlist = lint,docs,py38,py37,py36
[testenv]
deps =
coverage
pretend
pytest
jaraco.envs
portend
pytest-services
munch
commands =
coverage run --source twine -m pytest {posargs:tests}
coverage report -m
[testenv:docs]
deps =
-rdocs/requirements.txt
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html
doc8 docs
sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/linkcheck
python setup.py sdist
twine check dist/*
[testenv:format]
deps =
isort
black
commands =
isort --recursive twine/ tests/
black twine/ tests/
[testenv:code-style]
deps =
{[testenv:format]deps}
flake8
commands =
isort --check-only --diff --recursive twine/ tests/
black --check --diff twine/ tests/
flake8 twine/ tests/
[testenv:typing]
deps =
mypy
lxml
commands =
# TODO: Consider checking the tests after the source is fully typed
mypy twine
[testenv:monkeytype]
deps =
{[testenv]deps}
{[testenv:typing]deps}
monkeytype
commands =
monkeytype {posargs:run -m pytest}
[testenv:lint]
deps =
{[testenv:code-style]deps}
{[testenv:typing]deps}
commands =
{[testenv:code-style]commands}
{[testenv:typing]commands}
[testenv:release]
# disabled for twine to cause it to upload itself
# skip_install = True
# specify Python 3 to use platform's default Python 3
basepython = python3
deps =
pep517>=0.5
twine>=1.13
path.py
passenv =
TWINE_PASSWORD
TWINE_REPOSITORY
setenv =
TWINE_USERNAME = {env:TWINE_USERNAME:__token__}
commands =
python -c "import path; path.Path('dist').rmtree_p()"
python -m pep517.build .
python -m twine upload dist/*
[testenv:devpi]
deps =
devpi-server
devpi
[testenv:pypiserver]
deps =
pypiserver