[Python-checkins] r66417 - sandbox/trunk/release/release.py

benjamin.peterson python-checkins at python.org
Sat Sep 13 01:47:36 CEST 2008


Author: benjamin.peterson
Date: Sat Sep 13 01:47:36 2008
New Revision: 66417

Log:
fix --bump when in the rc level

Modified:
   sandbox/trunk/release/release.py

Modified: sandbox/trunk/release/release.py
==============================================================================
--- sandbox/trunk/release/release.py	(original)
+++ sandbox/trunk/release/release.py	Sat Sep 13 01:47:36 2008
@@ -23,7 +23,7 @@
 from urlparse import urlsplit, urlunsplit
 
 SPACE = ' '
-tag_cre = re.compile(r'(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:([abc])(\d+))?')
+tag_cre = re.compile(r'(\d+)(?:\.(\d+)(?:\.(\d+))?)?(?:([ab]|rc)(\d+))?')
 
 
 # Ideas stolen from Mailman's release script, Lib/tokens.py and welease
@@ -121,7 +121,7 @@
     substitutions['level'] = dict(
         a   = 'PY_RELEASE_LEVEL_ALPHA',
         b   = 'PY_RELEASE_LEVEL_BETA',
-        c   = 'PY_RELEASE_LEVEL_GAMMA',
+        rc   = 'PY_RELEASE_LEVEL_GAMMA',
         f   = 'PY_RELEASE_LEVEL_FINAL',
         )[tag.level]
     if done:
@@ -258,6 +258,7 @@
         if result is None:
             error('tag %s is not valid' % tag)
         data = list(result.groups())
+        import pdb; pdb.set_trace()
         # fix None level
         if data[3] is None:
             data[3] = "f"


More information about the Python-checkins mailing list