Added tox runner for verifying MANIFEST.in and added MANIFEST.in in preparation for pypi
This commit is contained in:
1 parent
481fed48e7
commit
83a92daf0b
3 files changed
+32
-1
No files matched your search
+11
@@ -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
|
||||||
Executable
+12
@@ -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
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
# and then run "tox" from this directory.
|
# and then run "tox" from this directory.
|
||||||
|
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py27, py33, py34, pypy, cover, flake8, pylint
|
envlist = py27, py33, py34, pypy, cover, flake8, pylint, verify-manifest
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
commands = nosetests
|
commands = nosetests
|
||||||
@@ -53,3 +53,11 @@ deps =
|
|||||||
sphinx-rtd-theme
|
sphinx-rtd-theme
|
||||||
commands =
|
commands =
|
||||||
{toxinidir}/bin/build_docs
|
{toxinidir}/bin/build_docs
|
||||||
|
|
||||||
|
[testenv:verify-manifest]
|
||||||
|
basepython = python3.4
|
||||||
|
deps =
|
||||||
|
check-manifest
|
||||||
|
commands =
|
||||||
|
{toxinidir}/bin/verify-manifest
|
||||||
|
|
||||||
Reference in new issue
Block a user