Platform independent manifest verification

This commit is contained in:
Ammar Askar committed 2015-04-02 23:43:03 +05:00
1 parent 4fe5caa7d9
commit f7ed4da0d0
4 files changed
+23 -17

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import os, subprocess
import errno, sys
EXPECTED_OUTPUT = "lists of files in version control and sdist match"
def check_manifest():
os.chdir('..')
output = subprocess.check_output(["check-manifest"]).decode()
print(output)
if EXPECTED_OUTPUT == output.strip():
return 1
else:
sys.exit(2)
if __name__ == '__main__':
check_manifest()