From 39dd56f5528bb3e77b122ff0791cf2142539e457 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Thu, 1 Nov 2018 13:11:12 +0000 Subject: [PATCH] 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... :( --- tox.ini | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tox.ini b/tox.ini index 63619e3d6..d71d5b4ff 100644 --- a/tox.ini +++ b/tox.ini @@ -37,6 +37,15 @@ commands = coverage combine 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] deps = pygments