python/jsmin/setup.py

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/python/jsmin/setup.py	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +from setuptools import setup
     1.5 +
     1.6 +import os, sys, re
     1.7 +
     1.8 +os.environ['COPYFILE_DISABLE'] = 'true'  # this disables including resource forks in tar files on os x
     1.9 +
    1.10 +
    1.11 +extra = {}
    1.12 +if sys.version_info >= (3,0):
    1.13 +    extra['use_2to3'] = True
    1.14 +
    1.15 +setup(
    1.16 +    name="jsmin",
    1.17 +    version=re.search(r'__version__ = ["\']([^"\']+)', open('jsmin/__init__.py').read()).group(1),
    1.18 +    packages=['jsmin'],
    1.19 +    description='JavaScript minifier.',
    1.20 +    author='Dave St.Germain',
    1.21 +    author_email='dave@st.germa.in',
    1.22 +    test_suite='jsmin.test.JsTests',
    1.23 +    license='MIT License',
    1.24 +    url='https://bitbucket.org/dcs/jsmin/',
    1.25 +    classifiers=[
    1.26 +        'Development Status :: 5 - Production/Stable',
    1.27 +        'Environment :: Web Environment',
    1.28 +        'Intended Audience :: Developers',
    1.29 +        'License :: OSI Approved :: MIT License',
    1.30 +        'Operating System :: OS Independent',
    1.31 +        'Programming Language :: Python :: 2',
    1.32 +        'Programming Language :: Python :: 3',
    1.33 +        'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
    1.34 +        'Topic :: Software Development :: Pre-processors',
    1.35 +        'Topic :: Text Processing :: Filters',
    1.36 +    ],
    1.37 +    **extra
    1.38 +)

mercurial