[Checkins] SVN: hurry.jquery/trunk/s Try to manage zest.releaser automation properly.
Martijn Faassen
faassen at startifact.com
Wed Jul 28 10:47:41 EDT 2010
Log message for revision 115144:
Try to manage zest.releaser automation properly.
Changed:
U hurry.jquery/trunk/setup.py
U hurry.jquery/trunk/src/hurry/jquery/prepare.py
-=-
Modified: hurry.jquery/trunk/setup.py
===================================================================
--- hurry.jquery/trunk/setup.py 2010-07-28 14:39:37 UTC (rev 115143)
+++ hurry.jquery/trunk/setup.py 2010-07-28 14:47:41 UTC (rev 115144)
@@ -41,11 +41,10 @@
'jqueryprepare = hurry.jquery.prepare:main',
],
'zest.releaser.prereleaser.middle': [
- 'prepare = hurry.jquery.prepare:entrypoint',
+ 'prepare = hurry.jquery.prepare:working_entrypoint',
],
- # ALSO grab jquery in the separate tag checkout...
'zest.releaser.releaser.after_checkout': [
- 'prepare = hurry.jquery.prepare:entrypoint',
+ 'prepare = hurry.jquery.prepare:tag_entrypoint',
],
'hurry.resource.libraries': [
'jquery = hurry.jquery:jquery_lib',
Modified: hurry.jquery/trunk/src/hurry/jquery/prepare.py
===================================================================
--- hurry.jquery/trunk/src/hurry/jquery/prepare.py 2010-07-28 14:39:37 UTC (rev 115143)
+++ hurry.jquery/trunk/src/hurry/jquery/prepare.py 2010-07-28 14:47:41 UTC (rev 115144)
@@ -25,8 +25,7 @@
FULL = "jquery-%s.js" % VERSION
-def prepare_jquery():
- package_dir = os.path.dirname(__file__)
+def prepare_jquery(package_dir):
jquery_dest_path = os.path.join(package_dir, 'jquery-build')
# remove previous jquery library build
@@ -62,13 +61,11 @@
def main():
# Commandline tool
- prepare_jquery()
+ prepare_jquery(os.path.dirname(__file__))
+def working_entrypoint(data):
+ prepare_jquery(os.path.dirname(__file__))
-def entrypoint(data):
- """Entry point for zest.releaser's prerelease script"""
- # We could grab data['new_version'] and omit the .1 suffix from it to get
- # the jquery version. Could do away with a bit of version number
- # duplication.
- # And grab the tagdir or workingdir as base, perhaps.
- prepare_jquery()
+def tag_entrypoint(data):
+ prepare_jquery(data['tagdir'])
+
More information about the checkins
mailing list