123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/usr/bin/env python
  2. from __future__ import with_statement
  3. from distutils.core import setup
  4. import os
  5. # Create symlink so that to use 'scripts' w/o '.py'
  6. link_name = 'cdiff'
  7. if os.path.exists(link_name):
  8. os.unlink(link_name)
  9. os.symlink('src/cdiff.py', link_name)
  10. with open('README.rst') as doc:
  11. long_description = doc.read()
  12. setup(
  13. name = 'cdiff',
  14. version = '0.0.3',
  15. author = 'Matthew Wang',
  16. author_email = 'mattwyl@gmail.com',
  17. license = 'BSD-3',
  18. description = ('View colored, incremental diff in unified format or side '
  19. 'by side with auto pager'),
  20. long_description = long_description,
  21. keywords = 'colored incremental side-by-side diff',
  22. url = 'https://github.com/ymattw/cdiff',
  23. classifiers = [
  24. 'Development Status :: 3 - Alpha',
  25. 'Topic :: Utilities',
  26. 'License :: OSI Approved :: BSD License',
  27. 'Environment :: Console',
  28. 'Intended Audience :: Developers',
  29. 'Operating System :: MacOS :: MacOS X',
  30. 'Operating System :: POSIX',
  31. 'Operating System :: Unix',
  32. 'Programming Language :: Python',
  33. ],
  34. package_dir = {'': 'src'},
  35. packages = [''],
  36. py_modules = ['cdiff'],
  37. scripts = [link_name],
  38. )