[Checkins] SVN: zope.annotation/tags/3.5.0/ Tag 3.5.0
Dan Korostelev
nadako at gmail.com
Mon Sep 7 12:06:08 EDT 2009
Log message for revision 103612:
Tag 3.5.0
Changed:
A zope.annotation/tags/3.5.0/
D zope.annotation/tags/3.5.0/CHANGES.txt
A zope.annotation/tags/3.5.0/CHANGES.txt
D zope.annotation/tags/3.5.0/buildout.cfg
A zope.annotation/tags/3.5.0/buildout.cfg
U zope.annotation/tags/3.5.0/setup.py
D zope.annotation/tags/3.5.0/src/zope/annotation/tests/annotations.py
A zope.annotation/tags/3.5.0/src/zope/annotation/tests/annotations.py
-=-
Deleted: zope.annotation/tags/3.5.0/CHANGES.txt
===================================================================
--- zope.annotation/trunk/CHANGES.txt 2009-09-07 13:48:47 UTC (rev 103610)
+++ zope.annotation/tags/3.5.0/CHANGES.txt 2009-09-07 16:06:08 UTC (rev 103612)
@@ -1,33 +0,0 @@
-=======
-CHANGES
-=======
-
-3.5.0 (unreleased)
-------------------
-
-- ZODB3 is a true requirement of this package, not just a testing
- requirement, as BTrees are in use.
-
-3.4.2 (2009-03-09)
-------------------
-
-- Clean up package description and documentation a bit.
-
-- Change mailing list address to zope-dev at zope.org, as
- zope3-dev at zope.org is now retired.
-
-- Remove old zpkg-related files.
-
-3.4.1 (2008-08-26)
-------------------
-
-- Annotation factories take care not to store proxies in the database,
- so adapting an object wrapped in a ``LocationProxy`` works correctly.
- Fixes https://bugs.launchpad.net/zope3/+bug/261620
-
-3.4.0 (2007-08-29)
-------------------
-
-- Annotation factories are no longer containing the factored object.
- Instead the objects are located using ``zope.location``. This removes
- a dependency to ``zope.app.container``.
Copied: zope.annotation/tags/3.5.0/CHANGES.txt (from rev 103611, zope.annotation/trunk/CHANGES.txt)
===================================================================
--- zope.annotation/tags/3.5.0/CHANGES.txt (rev 0)
+++ zope.annotation/tags/3.5.0/CHANGES.txt 2009-09-07 16:06:08 UTC (rev 103612)
@@ -0,0 +1,36 @@
+=======
+CHANGES
+=======
+
+3.5.0 (2009-09-07)
+------------------
+
+- Add ZODB3 to install_requires, because it's a true requirement of this
+ package, not just a testing requirement, as BTrees are in use.
+
+- Fix one test that was inactive because it's function was overriden by
+ a mistake.
+
+3.4.2 (2009-03-09)
+------------------
+
+- Clean up package description and documentation a bit.
+
+- Change mailing list address to zope-dev at zope.org, as
+ zope3-dev at zope.org is now retired.
+
+- Remove old zpkg-related files.
+
+3.4.1 (2008-08-26)
+------------------
+
+- Annotation factories take care not to store proxies in the database,
+ so adapting an object wrapped in a ``LocationProxy`` works correctly.
+ Fixes https://bugs.launchpad.net/zope3/+bug/261620
+
+3.4.0 (2007-08-29)
+------------------
+
+- Annotation factories are no longer containing the factored object.
+ Instead the objects are located using ``zope.location``. This removes
+ a dependency to ``zope.app.container``.
Deleted: zope.annotation/tags/3.5.0/buildout.cfg
===================================================================
--- zope.annotation/trunk/buildout.cfg 2009-09-07 13:48:47 UTC (rev 103610)
+++ zope.annotation/tags/3.5.0/buildout.cfg 2009-09-07 16:06:08 UTC (rev 103612)
@@ -1,11 +0,0 @@
-[buildout]
-develop = .
-parts = test
-
-[test]
-recipe = zc.recipe.testrunner
-eggs = zope.annotation [test]
-
-[ctags]
-recipe = z3c.recipe.tag:tags
-eggs = zope.annotation
Copied: zope.annotation/tags/3.5.0/buildout.cfg (from rev 103611, zope.annotation/trunk/buildout.cfg)
===================================================================
--- zope.annotation/tags/3.5.0/buildout.cfg (rev 0)
+++ zope.annotation/tags/3.5.0/buildout.cfg 2009-09-07 16:06:08 UTC (rev 103612)
@@ -0,0 +1,15 @@
+[buildout]
+develop = .
+parts = test pydev
+
+[test]
+recipe = zc.recipe.testrunner
+eggs = zope.annotation [test]
+
+[ctags]
+recipe = z3c.recipe.tag:tags
+eggs = zope.annotation
+
+[pydev]
+recipe = pb.recipes.pydev
+eggs = zope.annotation
Modified: zope.annotation/tags/3.5.0/setup.py
===================================================================
--- zope.annotation/trunk/setup.py 2009-09-07 13:48:47 UTC (rev 103610)
+++ zope.annotation/tags/3.5.0/setup.py 2009-09-07 16:06:08 UTC (rev 103612)
@@ -24,7 +24,7 @@
setup(
name='zope.annotation',
- version='3.5.0dev',
+ version='3.5.0',
url='http://pypi.python.org/pypi/zope.annotation',
license='ZPL 2.1',
description='Object annotation mechanism',
Deleted: zope.annotation/tags/3.5.0/src/zope/annotation/tests/annotations.py
===================================================================
--- zope.annotation/trunk/src/zope/annotation/tests/annotations.py 2009-09-07 13:48:47 UTC (rev 103610)
+++ zope.annotation/tags/3.5.0/src/zope/annotation/tests/annotations.py 2009-09-07 16:06:08 UTC (rev 103612)
@@ -1,77 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2001, 2002 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.
-#
-##############################################################################
-"""General Annotations Tests
-
-All objects implementing 'IAnnotations' should pass these tests. They might be
-used as base tests for real implementations.
-
-$Id$
-"""
-import unittest
-from zope.interface.verify import verifyObject
-from zope.annotation.interfaces import IAnnotations
-
-class AnnotationsTest(unittest.TestCase):
- """Test the IAnnotations interface.
-
- The test case class expects the 'IAnnotations' implementer to be in
- 'self.annotations'.
- """
-
- def setUp(self):
- self.obj = {1:2, 3:4}
-
- def test_nonzero(self):
- self.failIf(self.annotations)
- self.annotations['unittest'] = self.obj
- self.failUnless(self.annotations)
- del self.annotations['unittest']
- self.failIf(self.annotations)
-
- def testInterfaceVerifies(self):
- verifyObject(IAnnotations, self.annotations)
-
- def testStorage(self):
- # test __getitem__
- self.annotations['unittest'] = self.obj
- res = self.annotations['unittest']
- self.failUnlessEqual(self.obj, res)
-
- def testGetitemException(self):
- # test __getitem__ raises exception on unknown key
- self.assertRaises(KeyError, self.annotations.__getitem__,'randomkey')
-
- def testGet(self):
- # test get
- self.annotations['unittest'] = obj
- res = self.annotations.get('unittest')
- self.failUnlessEqual(obj, res)
-
- def testGet(self):
- # test get with no set
- res = self.annotations.get('randomkey')
- self.failUnlessEqual(None, res)
-
- def testGetDefault(self):
- # test get returns default
- res = self.annotations.get('randomkey', 'default')
- self.failUnlessEqual('default', res)
-
- def testDel(self):
- self.annotations['unittest'] = self.obj
- del self.annotations['unittest']
- self.failUnlessEqual(None, self.annotations.get('unittest'))
-
- def testDelRaisesKeyError(self):
- self.assertRaises(KeyError, self.annotations.__delitem__, 'unittest')
Copied: zope.annotation/tags/3.5.0/src/zope/annotation/tests/annotations.py (from rev 103611, zope.annotation/trunk/src/zope/annotation/tests/annotations.py)
===================================================================
--- zope.annotation/tags/3.5.0/src/zope/annotation/tests/annotations.py (rev 0)
+++ zope.annotation/tags/3.5.0/src/zope/annotation/tests/annotations.py 2009-09-07 16:06:08 UTC (rev 103612)
@@ -0,0 +1,77 @@
+##############################################################################
+#
+# Copyright (c) 2001, 2002 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.
+#
+##############################################################################
+"""General Annotations Tests
+
+All objects implementing 'IAnnotations' should pass these tests. They might be
+used as base tests for real implementations.
+
+$Id$
+"""
+import unittest
+from zope.interface.verify import verifyObject
+from zope.annotation.interfaces import IAnnotations
+
+class AnnotationsTest(unittest.TestCase):
+ """Test the IAnnotations interface.
+
+ The test case class expects the 'IAnnotations' implementer to be in
+ 'self.annotations'.
+ """
+
+ def setUp(self):
+ self.obj = {1:2, 3:4}
+
+ def test_nonzero(self):
+ self.failIf(self.annotations)
+ self.annotations['unittest'] = self.obj
+ self.failUnless(self.annotations)
+ del self.annotations['unittest']
+ self.failIf(self.annotations)
+
+ def testInterfaceVerifies(self):
+ verifyObject(IAnnotations, self.annotations)
+
+ def testStorage(self):
+ # test __getitem__
+ self.annotations['unittest'] = self.obj
+ res = self.annotations['unittest']
+ self.failUnlessEqual(self.obj, res)
+
+ def testGetitemException(self):
+ # test __getitem__ raises exception on unknown key
+ self.assertRaises(KeyError, self.annotations.__getitem__,'randomkey')
+
+ def testGet(self):
+ # test get
+ self.annotations['unittest'] = self.obj
+ res = self.annotations.get('unittest')
+ self.failUnlessEqual(self.obj, res)
+
+ def testGetNoSet(self):
+ # test get with no set
+ res = self.annotations.get('randomkey')
+ self.failUnlessEqual(None, res)
+
+ def testGetDefault(self):
+ # test get returns default
+ res = self.annotations.get('randomkey', 'default')
+ self.failUnlessEqual('default', res)
+
+ def testDel(self):
+ self.annotations['unittest'] = self.obj
+ del self.annotations['unittest']
+ self.failUnlessEqual(None, self.annotations.get('unittest'))
+
+ def testDelRaisesKeyError(self):
+ self.assertRaises(KeyError, self.annotations.__delitem__, 'unittest')
More information about the checkins
mailing list