Removed verify-manifest.py - we now deal with check-manifest in tox.ini

This commit is contained in:
Jeppe Klitgaard 2015-04-06 01:38:39 +02:00
parent 70c381d9f4
commit fc6529c913
2 changed files with 1 additions and 34 deletions

View File

@ -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)

View File

@ -70,7 +70,6 @@ commands =
basepython = python3.4
deps =
check-manifest
changedir = bin
commands =
python verify-manifest.py
check-manifest