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

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

No files matched your search

+11
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
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
+9 -1
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