[Checkins] SVN: zope.exceptions/trunk/ Python 3 support for zope.exceptions. Yup, just a question of running 2to3 on the code.

Lennart Regebro regebro at gmail.com
Thu Apr 15 16:06:00 EDT 2010


Log message for revision 110946:
  Python 3 support for zope.exceptions. Yup, just a question of running 2to3 on the code.
  

Changed:
  U   zope.exceptions/trunk/CHANGES.txt
  A   zope.exceptions/trunk/setup.cfg
  U   zope.exceptions/trunk/setup.py

-=-
Modified: zope.exceptions/trunk/CHANGES.txt
===================================================================
--- zope.exceptions/trunk/CHANGES.txt	2010-04-15 18:14:53 UTC (rev 110945)
+++ zope.exceptions/trunk/CHANGES.txt	2010-04-15 20:06:00 UTC (rev 110946)
@@ -7,7 +7,9 @@
 
 - Added support to bootstrap on Jython.
 
+- Added Python 3 support.
 
+
 3.5.2 (2008-04-30)
 ------------------
 

Copied: zope.exceptions/trunk/setup.cfg (from rev 110945, zope.exceptions/branches/regebro-python3/setup.cfg)
===================================================================
--- zope.exceptions/trunk/setup.cfg	                        (rev 0)
+++ zope.exceptions/trunk/setup.cfg	2010-04-15 20:06:00 UTC (rev 110946)
@@ -0,0 +1,2 @@
+[egg_info]
+tag_svn_revision = true

Modified: zope.exceptions/trunk/setup.py
===================================================================
--- zope.exceptions/trunk/setup.py	2010-04-15 18:14:53 UTC (rev 110945)
+++ zope.exceptions/trunk/setup.py	2010-04-15 20:06:00 UTC (rev 110946)
@@ -22,6 +22,16 @@
 """
 import os
 from setuptools import setup, find_packages
+import sys
+if sys.version_info < (3,):
+    extra = {}
+else:
+    # Python 3 support:
+    extra = dict(
+        use_2to3=True,
+        setup_requires=['zope.fixers'],
+        use_2to3_fixers = ['zope.fixers'],
+    )
 
 def read(*rnames):
     return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
@@ -58,6 +68,8 @@
       install_requires=['setuptools',
                         'zope.interface',
                        ],
+      test_suite = 'zope.exceptions.tests',
       include_package_data = True,
       zip_safe = False,
+      **extra
       )



More information about the checkins mailing list