From a9dcd23de07fc4fd1f5b6d609ef76619e4f94008 Mon Sep 17 00:00:00 2001 From: Andy Freeland Date: Tue, 14 Jul 2015 11:13:49 -0400 Subject: [PATCH] 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 --- .travis.yml | 14 +++++++++----- MANIFEST.in | 9 +++++++++ tox.ini | 13 ++++++++++--- 3 files changed, 28 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 71e608dc..b8acf996 100644 --- a/.travis.yml +++ b/.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 diff --git a/MANIFEST.in b/MANIFEST.in index 74aebb43..a3812518 100644 --- a/MANIFEST.in +++ b/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 diff --git a/tox.ini b/tox.ini index 31701262..c38d7afe 100644 --- a/tox.ini +++ b/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