From ef44d0ccf13b90685aeed45478ed6e950e3fbf15 Mon Sep 17 00:00:00 2001 From: Peter Bittner Date: Sat, 18 Nov 2017 19:56:33 +0100 Subject: [PATCH] Check PyPI package description generation w/ tox --- .travis.yml | 3 ++- tox.ini | 10 +++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 12d2e9d..bec34a4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,7 +23,8 @@ matrix: - { python: 3.6, env: DJANGO=1.10 } - { python: 3.3, env: DJANGO=1.11 } include: - - { python: 2.7, env: TOXENV=flake8 } + - { python: 3.6, env: TOXENV=flake8 } + - { python: 3.6, env: TOXENV=checkdocs } install: - pip install tox-travis diff --git a/tox.ini b/tox.ini index 47b2651..927acf3 100644 --- a/tox.ini +++ b/tox.ini @@ -7,6 +7,7 @@ envlist = py{27,34,35}-django110 py{27,34,35,36}-django111 flake8 + checkdocs [testenv] commands = @@ -23,8 +24,15 @@ deps = passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH whitelist_externals = sh +[testenv:checkdocs] +deps = + collective.checkdocs + pygments +commands = + python setup.py -q sdist + python setup.py checkdocs + [testenv:flake8] -basepython = python2.7 deps = flake8 commands = flake8