summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b054ba7)
When generating sdists and wheels with the testenv:dist env in tox,
first run a check of the readme to make sure its contents will be
correctly parsed by PyPI/Warehouse. Also add dist to the set of
default envs and stop excluding the dist directory it creates from
testenv:flake8 runs since it shouldn't contain anything problematic
anyway. Clean up an unused VIRTUAL_ENV assignment in the tox.ini
too.
Update the Coder Guide with the simpler tox invocation while we're
at it.
A :file:`ChangeLog` is generated automatically from repository
commit logs, and is included automatically in all sdist_ tarballs. It
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
.. _Git: https://git-scm.com/
.. _sdist: https://packaging.python.org/glossary
-envlist = flake8, yamllint
+envlist = dist, flake8, yamllint
skipsdist = True
[testenv]
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install {opts} {packages}
setenv =
usedevelop = True
install_command = pip install {opts} {packages}
setenv =
PYTHONWARNINGS=default::DeprecationWarning
deps = -r{toxinidir}/test-requirements.txt
commands = python setup.py test --slowest --testr-args='{posargs}'
[testenv:dist]
whitelist_externals = rm
PYTHONWARNINGS=default::DeprecationWarning
deps = -r{toxinidir}/test-requirements.txt
commands = python setup.py test --slowest --testr-args='{posargs}'
[testenv:dist]
whitelist_externals = rm
+ python setup.py check --restructuredtext --strict
python setup.py bdist_wheel sdist
[testenv:docs]
python setup.py bdist_wheel sdist
[testenv:docs]
[flake8]
show-source = True
[flake8]
show-source = True
-exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
+exclude=.venv,.git,.tox,doc,*lib/python*,*egg,build