1
0
mirror of https://github.com/pypiserver/pypiserver synced 2024-11-09 16:45:51 +01:00
pypiserver/make_manifest.py
2011-12-05 22:37:56 +01:00

26 lines
435 B
Python
Executable File

#! /usr/bin/env python
import os
def main():
files = [x.strip() for x in os.popen("git ls-files")]
def remove(n):
try:
files.remove(n)
except ValueError:
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__':
main()