mirror of
https://github.com/pypiserver/pypiserver
synced 2024-11-09 16:45:51 +01:00
24 lines
404 B
Python
Executable File
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()
|