From fc6529c913fd8915b435709f2c50394bfe313c9a Mon Sep 17 00:00:00 2001 From: Jeppe Klitgaard Date: Mon, 6 Apr 2015 01:38:39 +0200 Subject: [PATCH] Removed verify-manifest.py - we now deal with check-manifest in tox.ini --- bin/verify-manifest.py | 32 -------------------------------- tox.ini | 3 +-- 2 files changed, 1 insertion(+), 34 deletions(-) delete mode 100644 bin/verify-manifest.py diff --git a/bin/verify-manifest.py b/bin/verify-manifest.py deleted file mode 100644 index 90e58c1..0000000 --- a/bin/verify-manifest.py +++ /dev/null @@ -1,32 +0,0 @@ -""" -Exits with exit code 0 if manifest was verified. -""" -import sys -import subprocess -import errno -import os - -EXPECTED_OUTPUT = "lists of files in version control and sdist match" -os.chdir("..") # Leave bin/ - -def verify_manifest(): - """ - Returns a ``str`` containing output from ``check-manifest``. - """ - try: - output = subprocess.check_output("check-manifest", - stderr=subprocess.STDOUT) - except subprocess.CalledProcessError as e: - output = e.output - - return output.decode().strip() - -if __name__ == '__main__': - output = verify_manifest() - print(output) - - if output == EXPECTED_OUTPUT: - sys.exit(0) - - else: - sys.exit(1) diff --git a/tox.ini b/tox.ini index ad7c288..a492478 100644 --- a/tox.ini +++ b/tox.ini @@ -70,7 +70,6 @@ commands = basepython = python3.4 deps = check-manifest -changedir = bin commands = - python verify-manifest.py + check-manifest \ No newline at end of file