1[tox]
2envlist = python
3minversion = 2.4
4
5[testenv]
6deps =
7	setuptools>=31.0.1
8commands =
9	pytest {posargs}
10usedevelop = True
11extras = testing
12
13[testenv:build-docs]
14extras =
15    docs
16    testing
17changedir = docs
18commands =
19    python -m sphinx . {toxinidir}/build/html
20
21[testenv:release]
22skip_install = True
23# workaround for pep517 build support
24install_command = python install-pip-master.py {opts} {packages}
25deps =
26	# pull from feature branch for feature
27	git+https://github.com/pypa/pep517@feature/build-command
28	# workaround for https://github.com/pypa/twine/issues/423
29	git+https://github.com/pypa/twine
30	path.py
31commands =
32	python -c "import path; path.Path('dist').rmtree_p()"
33	python -m pep517.build .
34	python -m twine upload dist/*
35