[Zope-Checkins] SVN: Zope/trunk/inst/generate_index.py write information for Zope2 package
Andreas Jung
andreas at andreas-jung.com
Tue Apr 21 07:48:02 EDT 2009
Log message for revision 99350:
write information for Zope2 package
Changed:
U Zope/trunk/inst/generate_index.py
-=-
Modified: Zope/trunk/inst/generate_index.py
===================================================================
--- Zope/trunk/inst/generate_index.py 2009-04-21 11:41:33 UTC (rev 99349)
+++ Zope/trunk/inst/generate_index.py 2009-04-21 11:48:01 UTC (rev 99350)
@@ -9,16 +9,8 @@
from xmlrpclib import Server
from ConfigParser import ConfigParser
-CP = ConfigParser()
-CP.read(['versions.cfg'])
-server = Server('http://pypi.python.org/pypi')
-links = list()
-
-dirname = sys.argv[1]
-
-for package in CP.options('versions'):
- version = CP.get('versions', package)
+def write_index(package, version):
print >>sys.stderr, 'Package %s==%s' % (package, version)
dest_dir = os.path.join(dirname, package)
if not os.path.exists(dest_dir):
@@ -33,3 +25,16 @@
print >>fp, '<br/>'
print >>fp, '</body></html>'
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)
More information about the Zope-Checkins
mailing list