[Zodb-checkins] SVN: ZODB/branches/3.4/ ZEO and ZODB henceforth share the same version number.

Tim Peters tim.one at comcast.net
Fri Apr 22 20:35:44 EDT 2005


Log message for revision 30123:
  ZEO and ZODB henceforth share the same version number.
  
  Also fiddled things to make this look like release 3.4a4.
  

Changed:
  U   ZODB/branches/3.4/NEWS.txt
  U   ZODB/branches/3.4/README.txt
  U   ZODB/branches/3.4/doc/guide/zodb.tex
  U   ZODB/branches/3.4/doc/zodb.pdf
  U   ZODB/branches/3.4/release.py
  U   ZODB/branches/3.4/setup.py
  U   ZODB/branches/3.4/src/ZEO/__init__.py
  U   ZODB/branches/3.4/src/ZEO/tests/testZEO.py
  U   ZODB/branches/3.4/src/ZEO/version.txt
  U   ZODB/branches/3.4/src/ZODB/__init__.py

-=-
Modified: ZODB/branches/3.4/NEWS.txt
===================================================================
--- ZODB/branches/3.4/NEWS.txt	2005-04-22 22:43:19 UTC (rev 30122)
+++ ZODB/branches/3.4/NEWS.txt	2005-04-23 00:35:44 UTC (rev 30123)
@@ -1,14 +1,22 @@
 What's new in ZODB3 3.4a4?
 ==========================
-Release date: DD-MMM-2005
+Release date: 23-Apr-2005
 
 ZEO
 ---
 
-The default logging setup in ``runzeo.py`` was broken.  It was changed
-so that running ``runzeo.py`` from a command line now, and without using
-a config file, prints output to the console much as ZODB 3.2 did.
+- The ZODB and ZEO version numbers are now the same.  Concretely::
 
+      import ZODB, ZEO
+      assert ZODB.__version__ == ZEO.version
+
+  no longer fails.  If interested, see the README file for details about
+  earlier version numbering schemes.
+
+- The default logging setup in ``runzeo.py`` was broken.  It was changed
+  so that running ``runzeo.py`` from a command line now, and without using
+  a config file, prints output to the console much as ZODB 3.2 did.
+
 ZEO on Windows
 --------------
 

Modified: ZODB/branches/3.4/README.txt
===================================================================
--- ZODB/branches/3.4/README.txt	2005-04-22 22:43:19 UTC (rev 30122)
+++ ZODB/branches/3.4/README.txt	2005-04-23 00:35:44 UTC (rev 30123)
@@ -124,11 +124,14 @@
 History
 -------
 
-The version numbering scheme for ZODB is complicated.  Starting with
-the ZODB 3.1 release, we tried to make it simpler.  Versions prior to
-3.1 had different names and different numbers.  This section describes
-the gory details.
+The historical version numbering schemes for ZODB and ZEO are complicated.
+Starting with ZODB 3.4, the ZODB and ZEO version numbers are the same.
 
+In the ZODB 3.1 through 3.3 lines, the ZEO version number was "one smaller"
+than the ZODB version number; e.g., ZODB 3.2.7 included ZEO 2.2.7.  ZODB and
+ZEO were distinct releases prior to ZODB 3.1, and had independent version
+numbers.
+
 Historically, ZODB was distributed as a part of the Zope application
 server.  Jim Fulton's paper at the Python conference in 2000 described
 a version of ZODB he called ZODB 3, based on an earlier persistent
@@ -155,9 +158,11 @@
 
 To make matters worse, we worked on a ZODB4 package for a while and
 made a couple of alpha releases.  We've now abandoned that effort,
-because we didn't have the resources to pursue while also maintaining
+because we didn't have the resources to pursue ot while also maintaining
 ZODB(3).
 
+
+
 License
 -------
 

Modified: ZODB/branches/3.4/doc/guide/zodb.tex
===================================================================
--- ZODB/branches/3.4/doc/guide/zodb.tex	2005-04-22 22:43:19 UTC (rev 30122)
+++ ZODB/branches/3.4/doc/guide/zodb.tex	2005-04-23 00:35:44 UTC (rev 30123)
@@ -1,7 +1,7 @@
 \documentclass{howto}
 
 \title{ZODB/ZEO Programming Guide}
-\release{3.4.0a3}
+\release{3.4.0a4}
 \date{\today}
 
 \author{A.M.\ Kuchling}

Modified: ZODB/branches/3.4/doc/zodb.pdf
===================================================================
(Binary files differ)

Modified: ZODB/branches/3.4/release.py
===================================================================
--- ZODB/branches/3.4/release.py	2005-04-22 22:43:19 UTC (rev 30122)
+++ ZODB/branches/3.4/release.py	2005-04-23 00:35:44 UTC (rev 30123)
@@ -46,13 +46,11 @@
         print >> e, "*" * 60, "Oops!"
         print >> e, "    Failed to find %r in %r" % (pat, filename)
 
-def compute_zeoversion(version):
-    # ZEO version's trail ZODB versions by one full revision.
-    # ZODB 3.2c1 corresponds to ZEO 2.2c1
-    major, rest = version.split(".", 1)
-    major = int(major) - 1
-    return "%s.%s" % (major, rest)
-
+# Nothing in our codebase cares about ZEO/version.txt.  Jeremy said
+# someone asked for it so that a shell script could read up the ZEO
+# version easily.
+# Before ZODB 3.4, the ZEO version was one smaller than the ZODB version;
+# e.g., ZEO 2.2.7 shipped with ZODB 3.2.7.
 def write_zeoversion(path, version):
     f = file(path, "w")
     print >> f, version
@@ -60,7 +58,6 @@
 
 def main(args):
     version, date = args
-    zeoversion = compute_zeoversion(version)
 
     replace("setup.py",
             r'version="\S+"',
@@ -70,8 +67,8 @@
             '__version__ = "%s"' % version)
     replace("src/ZEO/__init__.py",
             r'version = "\S+"',
-            'version = "%s"' % zeoversion)
-    write_zeoversion("src/ZEO/version.txt", zeoversion)
+            'version = "%s"' % version)
+    write_zeoversion("src/ZEO/version.txt", version)
     replace("NEWS.txt",
             r"^Release date: .*",
             "Release date: %s" % date)

Modified: ZODB/branches/3.4/setup.py
===================================================================
--- ZODB/branches/3.4/setup.py	2005-04-22 22:43:19 UTC (rev 30122)
+++ ZODB/branches/3.4/setup.py	2005-04-23 00:35:44 UTC (rev 30123)
@@ -247,7 +247,7 @@
 doclines = __doc__.split("\n")
 
 setup(name="ZODB3",
-      version="3.4.0a3",
+      version="3.4.0a4",
       maintainer="Zope Corporation",
       maintainer_email="zodb-dev at zope.org",
       url = "http://www.zope.org/Wikis/ZODB",

Modified: ZODB/branches/3.4/src/ZEO/__init__.py
===================================================================
--- ZODB/branches/3.4/src/ZEO/__init__.py	2005-04-22 22:43:19 UTC (rev 30122)
+++ ZODB/branches/3.4/src/ZEO/__init__.py	2005-04-23 00:35:44 UTC (rev 30123)
@@ -22,4 +22,4 @@
 """
 
 # The next line must use double quotes, so release.py recognizes it.
-version = "2.4.0a3"
+version = "3.4.0a4"

Modified: ZODB/branches/3.4/src/ZEO/tests/testZEO.py
===================================================================
--- ZODB/branches/3.4/src/ZEO/tests/testZEO.py	2005-04-22 22:43:19 UTC (rev 30122)
+++ ZODB/branches/3.4/src/ZEO/tests/testZEO.py	2005-04-23 00:35:44 UTC (rev 30123)
@@ -42,7 +42,14 @@
     def invalidate(self, *args):
         pass
 
+class OneTimeTests(unittest.TestCase):
 
+    def checkZEOVersionNumber(self):
+        import ZEO
+        # Starting with ZODB 3.4, the ZODB and ZEO version numbers should
+        # be identical.
+        self.assertEqual(ZODB.__version__, ZEO.version)
+
 class MiscZEOTests:
     """ZEO tests that don't fit in elsewhere."""
 
@@ -183,25 +190,15 @@
         </filestorage>
         """ % filename
 
-class BDBTests(FullGenericTests):
-    """ZEO backed by a Berkeley full storage."""
-    level = 2
-
-    def getConfig(self):
-        self._envdir = tempfile.mktemp()
-        return """\
-        <fullstorage 1>
-        envdir %s
-        </fullstorage>
-        """ % self._envdir
-
 class MappingStorageTests(GenericTests):
     """ZEO backed by a Mapping storage."""
 
     def getConfig(self):
         return """<mappingstorage 1/>"""
 
-test_classes = [FileStorageTests, MappingStorageTests]
+test_classes = [OneTimeTests,
+                FileStorageTests,
+                MappingStorageTests]
 
 def test_suite():
     suite = unittest.TestSuite()

Modified: ZODB/branches/3.4/src/ZEO/version.txt
===================================================================
--- ZODB/branches/3.4/src/ZEO/version.txt	2005-04-22 22:43:19 UTC (rev 30122)
+++ ZODB/branches/3.4/src/ZEO/version.txt	2005-04-23 00:35:44 UTC (rev 30123)
@@ -1 +1 @@
-2.4.0a3
+3.4.0a4

Modified: ZODB/branches/3.4/src/ZODB/__init__.py
===================================================================
--- ZODB/branches/3.4/src/ZODB/__init__.py	2005-04-22 22:43:19 UTC (rev 30122)
+++ ZODB/branches/3.4/src/ZODB/__init__.py	2005-04-23 00:35:44 UTC (rev 30123)
@@ -13,7 +13,7 @@
 ##############################################################################
 
 # The next line must use double quotes, so release.py recognizes it.
-__version__ = "3.4.0a3"
+__version__ = "3.4.0a4"
 
 import sys
 import __builtin__



More information about the Zodb-checkins mailing list