[Checkins] SVN: zope.proxy/trunk/ Drop support for Python 2.4 and 2.5.
Tres Seaver
cvs-admin at zope.org
Fri May 18 15:36:03 UTC 2012
Log message for revision 126139:
Drop support for Python 2.4 and 2.5.
Replace deprecated 'zope.interface.implements' usage with equivalent
'zope.interface.implementer' decorator.
Changed:
U zope.proxy/trunk/CHANGES.txt
U zope.proxy/trunk/setup.py
U zope.proxy/trunk/src/zope/proxy/decorator.py
-=-
Modified: zope.proxy/trunk/CHANGES.txt
===================================================================
--- zope.proxy/trunk/CHANGES.txt 2012-05-18 15:29:22 UTC (rev 126138)
+++ zope.proxy/trunk/CHANGES.txt 2012-05-18 15:35:59 UTC (rev 126139)
@@ -2,11 +2,16 @@
CHANGES
=======
-3.6.2 (unreleased)
+4.0.0 (unreleased)
------------------
-- Python 3 support.
+- Replaced deprecated ``zope.interface.implements`` usage with equivalent
+ ``zope.interface.implementer`` decorator.
+- Dropped support for Python 2.4 and 2.5.
+
+- Added Python 3.2 support.
+
3.6.1 (2010-07-06)
------------------
Modified: zope.proxy/trunk/setup.py
===================================================================
--- zope.proxy/trunk/setup.py 2012-05-18 15:29:22 UTC (rev 126138)
+++ zope.proxy/trunk/setup.py 2012-05-18 15:35:59 UTC (rev 126139)
@@ -34,7 +34,7 @@
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
setup(name='zope.proxy',
- version = '3.6.2dev',
+ version = '4.0.0dev',
author='Zope Foundation and Contributors',
author_email='zope-dev at zope.org',
description='Generic Transparent Proxies',
@@ -50,12 +50,10 @@
'Intended Audience :: Developers',
'License :: OSI Approved :: Zope Public License',
'Programming Language :: Python',
- 'Programming Language :: Python :: 2.4',
- 'Programming Language :: Python :: 2.5',
+ 'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.1',
'Programming Language :: Python :: 3.2',
'Natural Language :: English',
'Operating System :: OS Independent'],
Modified: zope.proxy/trunk/src/zope/proxy/decorator.py
===================================================================
--- zope.proxy/trunk/src/zope/proxy/decorator.py 2012-05-18 15:29:22 UTC (rev 126138)
+++ zope.proxy/trunk/src/zope/proxy/decorator.py 2012-05-18 15:35:59 UTC (rev 126139)
@@ -27,7 +27,9 @@
class DecoratorSpecificationDescriptor(ObjectSpecificationDescriptor):
"""Support for interface declarations on decorators
- >>> from zope.interface import *
+ >>> from zope.interface import Interface
+ >>> from zope.interface import directlyProvides
+ >>> from zope.interface import implementer
>>> class I1(Interface):
... pass
>>> class I2(Interface):
@@ -37,15 +39,18 @@
>>> class I4(Interface):
... pass
- >>> class D1(SpecificationDecoratorBase):
- ... implements(I1)
+ >>> @implementer(I1)
+ ... class D1(SpecificationDecoratorBase):
+ ... pass
- >>> class D2(SpecificationDecoratorBase):
- ... implements(I2)
+ >>> @implementer(I2)
+ ... class D2(SpecificationDecoratorBase):
+ ... pass
- >>> class X(object):
- ... implements(I3)
+ >>> @implementer(I3)
+ ... class X(object):
+ ... pass
>>> x = X()
>>> directlyProvides(x, I4)
@@ -67,8 +72,9 @@
SpecificationDecorators also work with old-style classes:
- >>> class X:
- ... implements(I3)
+ >>> @implementer(I3)
+ ... class X:
+ ... pass
>>> x = X()
>>> directlyProvides(x, I4)
More information about the checkins
mailing list