Added tox runner for verifying MANIFEST.in and added MANIFEST.in in preparation for pypi

This commit is contained in:
Jeppe Klitgaard 2015-04-01 19:50:16 +02:00
parent 481fed48e7
commit 83a92daf0b
3 changed files with 32 additions and 1 deletions

11
MANIFEST.in Normal file
View File

@ -0,0 +1,11 @@
include README.rst
include LICENSE
include requirements.txt
include tox.ini
include start.py
recursive-include tests *.py
recursive-include minecraft *.py
recursive-include docs *.rst
include docs/Makefile
include docs/make.bat
include docs/conf.py

12
bin/verify-manifest Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
OUTPUT=`check-manifest`
EXPECTED_OUTPUT="lists of files in version control and sdist match"
if [[ "$OUTPUT" != "$EXPECTED_OUTPUT" ]]; then
echo "Check-manifest didn't match."
echo "OUTPUT: $OUTPUT"
echo "EXPECTED_OUTPUT: $EXPECTED_OUTPUT"
exit 1 # Error
else
echo "Manifest verified."
exit 0
fi

10
tox.ini
View File

@ -4,7 +4,7 @@
# and then run "tox" from this directory.
[tox]
envlist = py27, py33, py34, pypy, cover, flake8, pylint
envlist = py27, py33, py34, pypy, cover, flake8, pylint, verify-manifest
[testenv]
commands = nosetests
@ -53,3 +53,11 @@ deps =
sphinx-rtd-theme
commands =
{toxinidir}/bin/build_docs
[testenv:verify-manifest]
basepython = python3.4
deps =
check-manifest
commands =
{toxinidir}/bin/verify-manifest