Permalink
Browse files

Enabled the "use_2to3" keyword argument to setup().

Running `python setup.py test` with Python 2.7 runs all tests except
for the spec tests and the doctests in the README file.
  • Loading branch information...
1 parent d88f315 commit 235157084c9a6edf06f3d6be05dac129a502799b @cjerdonek cjerdonek committed Apr 7, 2012
Showing with 11 additions and 3 deletions.
  1. 0 pystache/tests/data/locator/__init__.py
  2. +11 −3 setup.py
No changes.
View
@@ -40,7 +40,7 @@
try:
- from setuptools import setup
+ from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
@@ -68,18 +68,26 @@ def make_long_description():
sys.exit()
long_description = make_long_description()
+template_files = ['*.mustache', '*.txt']
setup(name='pystache',
version='0.5.0-rc',
+ license='MIT',
description='Mustache for Python',
long_description=long_description,
author='Chris Wanstrath',
author_email='chris@ozmm.org',
maintainer='Chris Jerdonek',
url='http://github.com/defunkt/pystache',
- packages=['pystache'],
- license='MIT',
+ packages=find_packages(),
+ package_data = {
+ # Include template files so tests can be run.
+ 'examples': template_files,
+ 'pystache.tests.data': template_files,
+ 'pystache.tests.data.locator': template_files,
+ },
test_suite='pystache.tests',
+ use_2to3=True,
entry_points = {
'console_scripts': ['pystache=pystache.commands:main'],
},

0 comments on commit 2351570

Please sign in to comment.