Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use 'check-manifest' to avoid broken packages
This patch adds a tox target that runs [check-manifest][] to verify that
all files in the repository are either explicitly included or excluded
from MANIFEST.in.

[check-manifest]: https://pypi.python.org/pypi/check-manifest
  • Loading branch information
Andy Freeland committed Jul 14, 2015
1 parent f78b28d commit a9dcd23
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
14 changes: 9 additions & 5 deletions .travis.yml
@@ -1,6 +1,10 @@
language: python
python:
- 2.7
- 3.4
- pypy
script: ./run-tests.sh
install:
- pip install tox
script:
- tox
env:
- TOXENV=py27
- TOXENV=py34
- TOXENV=pypy
- TOXENV=packaging
9 changes: 9 additions & 0 deletions MANIFEST.in
@@ -1 +1,10 @@
include README.md NOTICE.txt ChangeLog *.sh
include Makefile
include t
include tox.ini

recursive-include docs *.py
recursive-include docs *.rst
recursive-include docs Makefile
recursive-include tests *.avro
recursive-include tests *.py
13 changes: 10 additions & 3 deletions tox.ini
@@ -1,8 +1,15 @@
[tox]
envlist = py27,py34,pypy
envlist = py27,py34,pypy,packaging

[testenv]
deps =
nose
deps =
nose
flake8
commands = ./run-tests.sh

[testenv:packaging]
skip_install = true
deps =
check-manifest
commands =
check-manifest

0 comments on commit a9dcd23

Please sign in to comment.