123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #!/usr/bin/env python
-
- from __future__ import with_statement
- from distutils.core import setup
- import os
-
- # Create symlink so that to use 'scripts' w/o '.py'
- link_name = 'cdiff'
- if os.path.exists(link_name):
- os.unlink(link_name)
- os.symlink('src/cdiff.py', link_name)
-
- with open('CHANGES') as changes:
- for change in changes:
- if change.startswith('Version '):
- version = change.split()[1]
- break
- changes.seek(0)
- with open('README.rst') as doc:
- long_description = doc.read() + changes.read()
-
- setup(
- name = 'cdiff',
- version = version,
- author = 'Matthew Wang',
- author_email = 'mattwyl@gmail.com',
- license = 'BSD-3',
- description = ('Term based tool to view colored, incremental diff in '
- 'unified format or side ' 'by side with auto pager'),
- long_description = long_description,
- keywords = 'colored incremental side-by-side diff',
- url = 'https://github.com/ymattw/cdiff',
- classifiers = [
- 'Development Status :: 4 - Beta',
- 'Topic :: Utilities',
- 'License :: OSI Approved :: BSD License',
- 'Environment :: Console',
- 'Intended Audience :: Developers',
- 'Operating System :: MacOS :: MacOS X',
- 'Operating System :: POSIX',
- 'Operating System :: Unix',
- 'Programming Language :: Python',
- ],
- package_dir = {'': 'src'},
- packages = [''],
- py_modules = ['cdiff'],
- scripts = [link_name],
- )
|