Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | from setuptools import setup |
michael@0 | 2 | |
michael@0 | 3 | import os, sys, re |
michael@0 | 4 | |
michael@0 | 5 | os.environ['COPYFILE_DISABLE'] = 'true' # this disables including resource forks in tar files on os x |
michael@0 | 6 | |
michael@0 | 7 | |
michael@0 | 8 | extra = {} |
michael@0 | 9 | if sys.version_info >= (3,0): |
michael@0 | 10 | extra['use_2to3'] = True |
michael@0 | 11 | |
michael@0 | 12 | setup( |
michael@0 | 13 | name="jsmin", |
michael@0 | 14 | version=re.search(r'__version__ = ["\']([^"\']+)', open('jsmin/__init__.py').read()).group(1), |
michael@0 | 15 | packages=['jsmin'], |
michael@0 | 16 | description='JavaScript minifier.', |
michael@0 | 17 | author='Dave St.Germain', |
michael@0 | 18 | author_email='dave@st.germa.in', |
michael@0 | 19 | test_suite='jsmin.test.JsTests', |
michael@0 | 20 | license='MIT License', |
michael@0 | 21 | url='https://bitbucket.org/dcs/jsmin/', |
michael@0 | 22 | classifiers=[ |
michael@0 | 23 | 'Development Status :: 5 - Production/Stable', |
michael@0 | 24 | 'Environment :: Web Environment', |
michael@0 | 25 | 'Intended Audience :: Developers', |
michael@0 | 26 | 'License :: OSI Approved :: MIT License', |
michael@0 | 27 | 'Operating System :: OS Independent', |
michael@0 | 28 | 'Programming Language :: Python :: 2', |
michael@0 | 29 | 'Programming Language :: Python :: 3', |
michael@0 | 30 | 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', |
michael@0 | 31 | 'Topic :: Software Development :: Pre-processors', |
michael@0 | 32 | 'Topic :: Text Processing :: Filters', |
michael@0 | 33 | ], |
michael@0 | 34 | **extra |
michael@0 | 35 | ) |