[Zodb-checkins] SVN: ZODB/trunk/ Teach release.py how to change the version # in setup.py again.

Tim Peters tim.one at comcast.net
Thu Aug 11 14:24:50 EDT 2005


Log message for revision 37875:
  Teach release.py how to change the version # in setup.py again.
  

Changed:
  U   ZODB/trunk/release.py
  U   ZODB/trunk/setup.py

-=-
Modified: ZODB/trunk/release.py
===================================================================
--- ZODB/trunk/release.py	2005-08-11 18:22:53 UTC (rev 37874)
+++ ZODB/trunk/release.py	2005-08-11 18:24:50 UTC (rev 37875)
@@ -60,8 +60,8 @@
     version, date = args
 
     replace("setup.py",
-            r'version="\S+"',
-            'version="%s"' % version)
+            r'^VERSION = "\S+"$',
+            'VERSION = "%s"' % version)
     replace("src/ZODB/__init__.py",
             r'__version__ = "\S+"',
             '__version__ = "%s"' % version)

Modified: ZODB/trunk/setup.py
===================================================================
--- ZODB/trunk/setup.py	2005-08-11 18:22:53 UTC (rev 37874)
+++ ZODB/trunk/setup.py	2005-08-11 18:24:50 UTC (rev 37875)
@@ -19,6 +19,8 @@
 
 import zpkgsetup.setup
 
+# Note that release.py must be able to recognize the VERSION line.
+VERSION = "3.5a6"
 
 here = os.path.dirname(os.path.abspath(__file__))
 
@@ -27,10 +29,8 @@
     relative_path = posixpath.join(*parts)
     return local_full_path, relative_path
 
+context = zpkgsetup.setup.SetupContext("ZODB3", VERSION, __file__)
 
-context = zpkgsetup.setup.SetupContext(
-    "ZODB3", "3.5.0a42", __file__)
-
 context.load_metadata(
     os.path.join(here, "PUBLICATION.cfg"))
 



More information about the Zodb-checkins mailing list