[Checkins] SVN: zope.release/branches/3.4/ First draft of an index updater.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Jan 29 05:12:54 EST 2009
Log message for revision 95396:
First draft of an index updater.
Changed:
U zope.release/branches/3.4/buildout.cfg
U zope.release/branches/3.4/setup.py
_U zope.release/branches/3.4/src/zope/release/
A zope.release/branches/3.4/src/zope/release/update.py
-=-
Modified: zope.release/branches/3.4/buildout.cfg
===================================================================
--- zope.release/branches/3.4/buildout.cfg 2009-01-29 09:31:04 UTC (rev 95395)
+++ zope.release/branches/3.4/buildout.cfg 2009-01-29 10:12:53 UTC (rev 95396)
@@ -1,7 +1,7 @@
[buildout]
develop = .
index = http://download.zope.org/zope3.4
-parts = test upload update-tree
+parts = test upload update-index update-tree
generate-buildout generate-versions generate-site
list-latest list-changes
versions = versions
@@ -30,6 +30,11 @@
scripts = generate-site
arguments = ['-t', 'src/zope/release/templates'] + sys.argv[1:]
+[update-index]
+recipe = zc.recipe.egg:scripts
+eggs = zope.release
+scripts = update-index
+
[upload]
recipe = zc.recipe.egg:scripts
eggs = zope.release
Modified: zope.release/branches/3.4/setup.py
===================================================================
--- zope.release/branches/3.4/setup.py 2009-01-29 09:31:04 UTC (rev 95395)
+++ zope.release/branches/3.4/setup.py 2009-01-29 10:12:53 UTC (rev 95396)
@@ -50,11 +50,13 @@
install_requires=[
'setuptools',
'zc.buildout',
+ 'zc.lockfile',
'zope.kgs',
],
entry_points = dict(console_scripts=[
'upload = zope.release.upload:main',
'update-tree = zope.release.tree:main',
+ 'update-index = zope.release.update:main',
]),
include_package_data = True,
zip_safe = False,
Property changes on: zope.release/branches/3.4/src/zope/release
___________________________________________________________________
Added: svn:externals
+ mirror svn+ssh://svn.zope.org/repos/main/zc.mirrorcheeseshopslashsimple/trunk/src/zc/
Added: zope.release/branches/3.4/src/zope/release/update.py
===================================================================
--- zope.release/branches/3.4/src/zope/release/update.py (rev 0)
+++ zope.release/branches/3.4/src/zope/release/update.py 2009-01-29 10:12:53 UTC (rev 95396)
@@ -0,0 +1,41 @@
+##############################################################################
+#
+# Copyright (c) 2007 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Update indexes of all versions.
+
+Usage: update-index site-dir
+
+* ``site-dir``
+
+ The directory that contains the KGS Web site.
+"""
+import os
+import sys
+from zope.release.mirror import mirrorcheeseshopslashsimple as mirror
+
+mirror.controlled_packages_path = os.path.join('..', 'controlled-packages.cfg')
+
+def main(args=None):
+ if args is None:
+ args = sys.argv[1:]
+
+ if len(args) != 1:
+ print __doc__
+ sys.exit(1)
+
+ siteDir = args[-1]
+
+ for filename in os.listdir(siteDir):
+ path = os.path.join(siteDir, filename)
+ if os.path.isdir(path) and 'index' in os.listdir(path):
+ mirror.update([os.path.join(path, 'index')])
Property changes on: zope.release/branches/3.4/src/zope/release/update.py
___________________________________________________________________
Added: svn:keywords
+ Id
More information about the Checkins
mailing list