Skip to content

Commit 5cc8c13

Browse files
ashwoodsblueyed
authored andcommitted
Add tox packaging helpers (#511)
1 parent de31fab commit 5cc8c13

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

tox.ini

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ deps =
3434
pytest3: pytest>=3.0,<4.0
3535
setenv =
3636
PYTHONPATH = {toxinidir}:{env:PYTHONPATH:}
37+
3738
passenv = PYTEST_ADDOPTS
3839
usedevelop = True
3940
commands =
@@ -44,3 +45,39 @@ commands =
4445
postgres: pytest --ds=pytest_django_test.settings_postgres --strict -r fEsxXw {posargs:tests}
4546
sqlite: pytest --ds=pytest_django_test.settings_sqlite --strict -r fEsxXw {posargs:tests}
4647
sqlite_file: pytest --ds=pytest_django_test.settings_sqlite_file --strict -r fEsxXw {posargs:tests}
48+
49+
[testenv:doc8]
50+
basepython = python3.6
51+
skip_install = true
52+
deps =
53+
sphinx
54+
doc8
55+
commands =
56+
doc8 docs/
57+
58+
[testenv:readme]
59+
basepython = python3.5
60+
deps =
61+
readme_renderer
62+
commands =
63+
python setup.py check -r -s
64+
65+
# Release tooling
66+
[testenv:build]
67+
basepython = python3.6
68+
skip_install = true
69+
deps =
70+
wheel
71+
setuptools
72+
commands =
73+
python setup.py -q sdist bdist_wheel
74+
75+
[testenv:release]
76+
basepython = python3.5
77+
skip_install = true
78+
deps =
79+
{[testenv:build]deps}
80+
twine >= 1.9.1
81+
commands =
82+
{[testenv:build]commands}
83+
twine upload -s --skip-existing dist/*

0 commit comments

Comments
 (0)