mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-11-25 03:35:29 +01:00
Added tox runner for verifying MANIFEST.in and added MANIFEST.in in preparation for pypi
This commit is contained in:
parent
481fed48e7
commit
83a92daf0b
11
MANIFEST.in
Normal file
11
MANIFEST.in
Normal 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
12
bin/verify-manifest
Executable 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
10
tox.ini
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user