From 83a92daf0bcb2baa5cb9a2fc6046f59a8124a583 Mon Sep 17 00:00:00 2001 From: Jeppe Klitgaard Date: Wed, 1 Apr 2015 19:50:16 +0200 Subject: [PATCH] Added tox runner for verifying MANIFEST.in and added MANIFEST.in in preparation for pypi --- MANIFEST.in | 11 +++++++++++ bin/verify-manifest | 12 ++++++++++++ tox.ini | 10 +++++++++- 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 MANIFEST.in create mode 100755 bin/verify-manifest diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..9d16ddb --- /dev/null +++ b/MANIFEST.in @@ -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 diff --git a/bin/verify-manifest b/bin/verify-manifest new file mode 100755 index 0000000..e64b39c --- /dev/null +++ b/bin/verify-manifest @@ -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 \ No newline at end of file diff --git a/tox.ini b/tox.ini index aa309da..7f37254 100644 --- a/tox.ini +++ b/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 + \ No newline at end of file