-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put packaging tests in a separate Tox testing environment
Move check-manifest's configuration from Tox to setup.cfg.
- Loading branch information
Showing
2 changed files
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |