setup.py 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/usr/bin/env python
  2. from __future__ import with_statement
  3. from distutils.core import setup
  4. import os
  5. from cdiff import META_INFO as _meta
  6. # Create symlink so that to use 'scripts' w/o '.py'
  7. link_name = 'cdiff'
  8. if os.path.exists(link_name):
  9. os.unlink(link_name)
  10. os.symlink('cdiff.py', link_name)
  11. with open('README.rst') as doc:
  12. long_description = doc.read()
  13. with open('CHANGES') as changes:
  14. long_description += changes.read()
  15. setup(
  16. name = 'cdiff',
  17. version = _meta['version'],
  18. author = _meta['author'],
  19. author_email = _meta['email'],
  20. license = _meta['license'],
  21. description = _meta['description'],
  22. long_description = long_description,
  23. keywords = _meta['keywords'],
  24. url = _meta['url'],
  25. classifiers = [
  26. 'Development Status :: 4 - Beta',
  27. 'Topic :: Utilities',
  28. 'License :: OSI Approved :: BSD License',
  29. 'Environment :: Console',
  30. 'Intended Audience :: Developers',
  31. 'Operating System :: MacOS :: MacOS X',
  32. 'Operating System :: POSIX',
  33. 'Operating System :: Unix',
  34. 'Programming Language :: Python',
  35. ],
  36. packages = [],
  37. py_modules = ['cdiff'],
  38. scripts = [link_name],
  39. )