Skip to content

Commit

Permalink
Put packaging tests in a separate Tox testing environment
Browse files Browse the repository at this point in the history
Move check-manifest's configuration from Tox to setup.cfg.
  • Loading branch information
tjanez committed Jun 9, 2016
1 parent 9554316 commit 3eb1166
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[check-manifest]
# patterns to ignore when checking MANIFEST.in for completness
ignore =
tox.ini
18 changes: 12 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
[tox]
envlist = py{34,35}
envlist = py{34,35},packaging
skip_missing_interpreters = True

# NOTE: Don't use 'deps = .[test]' tox option since we want Tox to install the
# package from sdist first

[testenv]
commands =
# install testing requirements
# NOTE: Don't use 'deps = .[test]' tox option since we want Tox to install the
# package from sdist first
pip install .[test]
# run tests
python setup.py test

[testenv:packaging]
commands =
# install testing requirements
pip install .[test]
# confirm that items checked into git are in sdist
check-manifest --ignore tox.ini
check-manifest
# verify package metadata and confirm the long_description will render
# correctly on PyPI
python setup.py check --metadata --restructuredtext --strict
# run tests
python setup.py test

0 comments on commit 3eb1166

Please sign in to comment.