Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 58 lines (49 sloc) 1.615 kB
4679aa2 @liftoff Added Python 3 support. This required renaming unicode.py to unicode…
liftoff authored
1 import os, sys
3987445 @rspivak Added missing import
authored
2
cd616ed @rspivak first commit
authored
3 from setuptools import setup, find_packages
4679aa2 @liftoff Added Python 3 support. This required renaming unicode.py to unicode…
liftoff authored
4 try:
5 from distutils.command.build_py import build_py_2to3 as build_py
6 except ImportError:
7 from distutils.command.build_py import build_py
cd616ed @rspivak first commit
authored
8
3987445 @rspivak Added missing import
authored
9
cd616ed @rspivak first commit
authored
10 classifiers = """\
11 Intended Audience :: Developers
12 License :: OSI Approved :: MIT License
13 Programming Language :: Python
14 Topic :: Software Development :: Compilers
15 Operating System :: Unix
16 """
17
4679aa2 @liftoff Added Python 3 support. This required renaming unicode.py to unicode…
liftoff authored
18 requirements = ['ply>=3.4']
19 major, minor = sys.version_info[:2] # Python version
20 if major == 2 and minor <=6:
21 # OrderedDict was added to the collections module in Python 2.7 and it is
22 # there in all versions of Python 3.
23 requirements.append('odict')
24 if major == 3:
25 PYTHON3 = True
26 try:
27 import lib2to3 # Just a check--the module is not actually used
28 except ImportError:
29 print("Python 3.X support requires the 2to3 tool.")
30 sys.exit(1)
31
5aa71d9 @rspivak Include README.rst
authored
32 def read(*rel_names):
33 return open(os.path.join(os.path.dirname(__file__), *rel_names)).read()
34
35
cd616ed @rspivak first commit
authored
36 setup(
b2a5cd8 @rspivak Renaming
authored
37 name='slimit',
2255c59 @rspivak Bump up version to 0.8.1
authored
38 version='0.8.1',
f8c3b44 @rspivak Bump up the version to 0.8.0
authored
39 url='http://slimit.readthedocs.org',
4679aa2 @liftoff Added Python 3 support. This required renaming unicode.py to unicode…
liftoff authored
40 cmdclass = {'build_py': build_py},
cd616ed @rspivak first commit
authored
41 license='MIT',
b2a5cd8 @rspivak Renaming
authored
42 description='SlimIt - JavaScript minifier',
cd616ed @rspivak first commit
authored
43 author='Ruslan Spivak',
44 author_email='ruslan.spivak@gmail.com',
45 packages=find_packages('src'),
46 package_dir={'': 'src'},
4679aa2 @liftoff Added Python 3 support. This required renaming unicode.py to unicode…
liftoff authored
47 install_requires=requirements,
cd616ed @rspivak first commit
authored
48 zip_safe=False,
49 entry_points="""\
50 [console_scripts]
9d14ddd @rspivak Added minifier command line tool
authored
51 slimit = slimit.minifier:main
cd616ed @rspivak first commit
authored
52 """,
53 classifiers=filter(None, classifiers.split('\n')),
97ce416 @rspivak Updated README and CHANGES
authored
54 long_description=read('README.rst') + '\n\n' + read('CHANGES'),
cd616ed @rspivak first commit
authored
55 extras_require={'test': []}
56 )
4679aa2 @liftoff Added Python 3 support. This required renaming unicode.py to unicode…
liftoff authored
57
Something went wrong with that request. Please try again.