Commits

Jerónimo Albi committed c983cc8 Draft

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

Comments (0)

Files changed (3)

 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
 )

shrink/__init__.py

 VERSION_INFO = {
     'major': 1,
     'minor': 1,
-    'micro': 0,
+    'micro': 1,
 }
 
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.