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