Commit f41b4623 authored by Andreas Jung's avatar Andreas Jung

write information for Zope2 package

parent f73e357f
...@@ -9,16 +9,8 @@ import sys ...@@ -9,16 +9,8 @@ import sys
from xmlrpclib import Server from xmlrpclib import Server
from ConfigParser import ConfigParser from ConfigParser import ConfigParser
CP = ConfigParser()
CP.read(['versions.cfg'])
server = Server('http://pypi.python.org/pypi')
links = list()
dirname = sys.argv[1] def write_index(package, version):
for package in CP.options('versions'):
version = CP.get('versions', package)
print >>sys.stderr, 'Package %s==%s' % (package, version) print >>sys.stderr, 'Package %s==%s' % (package, version)
dest_dir = os.path.join(dirname, package) dest_dir = os.path.join(dirname, package)
if not os.path.exists(dest_dir): if not os.path.exists(dest_dir):
...@@ -33,3 +25,16 @@ for package in CP.options('versions'): ...@@ -33,3 +25,16 @@ for package in CP.options('versions'):
print >>fp, '<br/>' print >>fp, '<br/>'
print >>fp, '</body></html>' print >>fp, '</body></html>'
fp.close() fp.close()
CP = ConfigParser()
CP.read(['versions.cfg'])
server = Server('http://pypi.python.org/pypi')
links = list()
dirname = sys.argv[1]
write_index('Zope2', '2.12.0a3')
for package in CP.options('versions'):
version = CP.get('versions', package)
write_index(package, version)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment