Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #5 from ArmstrongJ/python3

Added 2to3 support to setup for compatability with Python 3.x
  • Loading branch information...
commit 4efbf11c2ed02a59788755f0de9e40b0967f9dce 2 parents f35994b + eb83137
Sebastian authored
Showing with 33 additions and 27 deletions.
  1. +33 −27 setup.py
View
60 setup.py
@@ -1,27 +1,33 @@
-from setuptools import setup, find_packages
-
-version = '2.1.5'
-
-setup(
- name='textile',
- version=version,
- description='Textile processing for python.',
- author='Chris Drackett',
- author_email='chris@chrisdrackett.com',
- url='http://github.com/chrisdrackett/python-textile',
- packages=find_packages(),
- classifiers=[
- 'Development Status :: 3 - Alpha',
- 'Environment :: Web Environment',
- 'Intended Audience :: Developers',
- 'License :: OSI Approved :: BSD License',
- 'Operating System :: OS Independent',
- 'Programming Language :: Python',
- 'Topic :: Software Development :: Libraries :: Python Modules',
- ],
- keywords='textile,text',
- test_suite = 'nose.collector',
- tests_require = ['nose'],
- include_package_data=True,
- zip_safe=False,
-)
+from setuptools import setup, find_packages
+import sys
+
+version = '2.1.5'
+
+extra = {}
+if sys.version_info >= (3,):
+ extra['use_2to3'] = True
+
+setup(
+ name='textile',
+ version=version,
+ description='Textile processing for python.',
+ author='Chris Drackett',
+ author_email='chris@chrisdrackett.com',
+ url='http://github.com/chrisdrackett/python-textile',
+ packages=find_packages(),
+ classifiers=[
+ 'Development Status :: 3 - Alpha',
+ 'Environment :: Web Environment',
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: BSD License',
+ 'Operating System :: OS Independent',
+ 'Programming Language :: Python',
+ 'Topic :: Software Development :: Libraries :: Python Modules',
+ ],
+ keywords='textile,text',
+ test_suite = 'nose.collector',
+ tests_require = ['nose'],
+ include_package_data=True,
+ zip_safe=False,
+ **extra
+)
Please sign in to comment.
Something went wrong with that request. Please try again.