Removed verify-manifest.py - we now deal with check-manifest in tox.ini
This commit is contained in:
1 parent
70c381d9f4
commit
fc6529c913
2 files changed
+1
-34
No files matched your search
@@ -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)
|
|
||||||
Reference in new issue
Block a user