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

26 lines
404 B
Python
Raw Normal View History

2011-07-29 02:02:28 +02:00
#! /usr/bin/env python
import os
2011-07-29 02:41:27 +02:00
2011-07-29 02:02:28 +02:00
def main():
files = [x.strip() for x in os.popen("git ls-files")]
2011-07-29 02:41:27 +02:00
2011-07-29 02:02:28 +02:00
def remove(n):
try:
files.remove(n)
except ValueError:
pass
2011-07-29 02:41:27 +02:00
2011-07-29 02:02:28 +02:00
remove("make_manifest.py")
files.sort()
f = open("MANIFEST.in", "w")
for x in files:
f.write("include %s\n" % x)
f.close()
2011-07-29 02:41:27 +02:00
if __name__ == '__main__':
2011-07-29 02:02:28 +02:00
main()