setup.py 1.5 KB

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