tox: add env to check package long_description using 'twine check' command

Restrucutred Text is very picky. 3.32.0 release process failed because of some broken rst.
I have to stop doing [skip ci] when I update the changelog... :(
This commit is contained in:
Cosimo Lupo 2018-11-01 13:11:12 +00:00
parent 3ac256012a
commit 39dd56f552
No known key found for this signature in database
GPG Key ID: 59D54DB0C9976482

View File

@ -37,6 +37,15 @@ commands =
coverage combine coverage combine
codecov --env TOXENV codecov --env TOXENV
[testenv:package_readme]
description = check that the long description is valid (need for PyPi)
deps = twine >= 1.12.1
pip >= 18.0.0
skip_install = true
extras =
commands = pip wheel -w {envtmpdir}/build --no-deps .
twine check {envtmpdir}/build/*
[testenv:bdist] [testenv:bdist]
deps = deps =
pygments pygments