Commits

Jerónimo Albi committed c983cc8

Updated setup.py to use use_2to3 only for python 3 series

  • Participants
  • Parent commits 5b0ae57

Comments (0)

Files changed (3)

File CHANGELOG.rst

 Changelog
 =========
 
+1.1.1 - unreleased
+==================
+
+ * Setup argument use_2to3 is now enabled only for python 3 series
+
 1.1.0 - 2012-07-31
 ==================
 
 import os
+import sys
 
 from setuptools import find_packages
 from setuptools import setup
 )
 
 
+# special setup parameters
+kwargs = {}
+if sys.version_info >= (3, 0):
+    kwargs['use_2to3'] = True
+
 setup(
     name="shrink",
     version=__version__,
     keywords="minify javascript css yuicompressor",
     license="BSD License",
     platforms=["OS Independent"],
-    use_2to3=True,
     zip_safe=False,
     packages=find_packages(exclude=["tests"]),
     include_package_data=True,
             "shrink = shrink.command:run",
         ],
     },
+    **kwargs
 )

File shrink/__init__.py

 VERSION_INFO = {
     'major': 1,
     'minor': 1,
-    'micro': 0,
+    'micro': 1,
 }