A :file:`ChangeLog` is generated automatically from repository
commit logs, and is included automatically in all sdist_ tarballs. It
-can be regenerated easily by running :command:`tox -e venv python
-setup.py sdist` from the top level directory of the Git repository in
-a working `developer environment`_.
+can be regenerated easily by running :command:`tox -e dist` from the
+top level directory of the Git repository in a working `developer
+environment`_.
.. _Git: https://git-scm.com/
.. _sdist: https://packaging.python.org/glossary
[tox]
minversion = 2.0
-envlist = flake8, yamllint
+envlist = dist, flake8, yamllint
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install {opts} {packages}
setenv =
- VIRTUAL_ENV={envdir}
PYTHONWARNINGS=default::DeprecationWarning
deps = -r{toxinidir}/test-requirements.txt
commands = python setup.py test --slowest --testr-args='{posargs}'
[testenv:dist]
whitelist_externals = rm
-deps = pbr
+deps =
+ docutils
+ pbr
commands =
rm -fr dist
+ python setup.py check --restructuredtext --strict
python setup.py bdist_wheel sdist
[testenv:docs]
[flake8]
show-source = True
-exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
+exclude=.venv,.git,.tox,doc,*lib/python*,*egg,build