From f9bda3a5ce2725ca2e2b5a89fbd8a1b1e7642a90 Mon Sep 17 00:00:00 2001 From: Chris Jerdonek Date: Sun, 8 Apr 2012 19:16:21 -0700 Subject: More Python 3 unit test fixes; README doctests also now working. --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 461e43f..796654e 100644 --- a/setup.py +++ b/setup.py @@ -84,6 +84,7 @@ else: # troubleshoot it while using Python 2.7 instead of Python 3. extra = { 'use_2to3': True, + 'convert_2to3_doctests': ['README.rst'], } setup(name='pystache', @@ -97,6 +98,9 @@ setup(name='pystache', url='http://github.com/defunkt/pystache', packages=find_packages(), package_data = { + # Include the README so doctests can be run. + # TODO: is there a better way to include the README? + 'pystache': ['../README.rst'], # Include template files so tests can be run. 'examples': template_files, 'pystache.tests.data': template_files, -- cgit v1.2.1