[Checkins] SVN: zope.testing/branches/regebro-python3/setup.py add 2to3 stanza to setup.py (the doctest part is still pending)
Wolfgang Schnerring
wosc at wosc.de
Mon Sep 14 01:42:01 EDT 2009
Log message for revision 103905:
add 2to3 stanza to setup.py (the doctest part is still pending)
Changed:
U zope.testing/branches/regebro-python3/setup.py
-=-
Modified: zope.testing/branches/regebro-python3/setup.py
===================================================================
--- zope.testing/branches/regebro-python3/setup.py 2009-09-14 05:41:21 UTC (rev 103904)
+++ zope.testing/branches/regebro-python3/setup.py 2009-09-14 05:42:01 UTC (rev 103905)
@@ -30,6 +30,7 @@
install_requires = ['setuptools',
'zope.exceptions',
'zope.interface'],
+ setup_requires = ['zope.interface'],
entry_points = {'console_scripts': ['zope-testrunner = zope.testing.testrunner:run',]},
include_package_data = True,
zip_safe = False,
@@ -38,6 +39,17 @@
from distutils.core import setup
extra = {}
+try:
+ import setuptools
+ from setuptools import lib2to3_fixer_packages
+ setuptools.run_2to3 = True
+ lib2to3_fixer_packages.append('zope.interface.fixers')
+ #extra['convert_doctest_2to3'] = XXX
+except ImportError:
+ # either no setuptools or this setuptools is not distribute,
+ # 2to3 support will not be enabled
+ pass
+
chapters = '\n'.join([
open(os.path.join('src', 'zope', 'testing', 'testrunner', name)).read()
for name in (
More information about the checkins
mailing list