forked from github.com/pypiserver
remove some more files in make_manifest.py
This commit is contained in:
parent
37d155beb1
commit
99512aa2f6
@ -4,22 +4,12 @@ import os
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
files = [x.strip() for x in os.popen("git ls-files")]
|
files = sorted(set([x.strip() for x in os.popen("git ls-files")]) -
|
||||||
|
set(("make_manifest.py", "commit-standalone",
|
||||||
def remove(n):
|
"vendor", ".gitmodules", ".travis.yml")))
|
||||||
try:
|
with open("MANIFEST.in", "w") as f:
|
||||||
files.remove(n)
|
for x in files:
|
||||||
except ValueError:
|
f.write("include %s\n" % x)
|
||||||
pass
|
|
||||||
|
|
||||||
remove("make_manifest.py")
|
|
||||||
remove("commit-standalone")
|
|
||||||
files.sort()
|
|
||||||
|
|
||||||
f = open("MANIFEST.in", "w")
|
|
||||||
for x in files:
|
|
||||||
f.write("include %s\n" % x)
|
|
||||||
f.close()
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user