1
0
mirror of https://github.com/pypiserver/pypiserver synced 2024-11-09 16:45:51 +01:00
pypiserver/make_manifest.py
2011-07-29 02:02:28 +02:00

24 lines
404 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")
files.sort()
f = open("MANIFEST.in", "w")
for x in files:
f.write("include %s\n" % x)
f.close()
if __name__=='__main__':
main()