-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathsetup.py
52 lines (44 loc) · 1.35 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import os
import sys
from setuptools import setup, find_packages
vcs = __import__('vcs')
readme_file = os.path.abspath(os.path.join(os.path.dirname(__file__),
'README.rst'))
try:
long_description = open(readme_file).read()
except IOError, err:
sys.stderr.write("[ERROR] Cannot find file specified as "
"long_description (%s)\n" % readme_file)
sys.exit(1)
install_requires = ['Pygments']
if sys.version_info < (2, 7):
install_requires.append('unittest2')
tests_require = install_requires + ['dulwich==0.10.0', 'mercurial==2.6.2', 'mock']
setup(
name='vcs',
version=vcs.get_version(),
url='https://github.com/codeinn/vcs',
author='Marcin Kuzminski, Lukasz Balcerzak',
author_email='[email protected]',
description=vcs.__doc__,
long_description=long_description,
zip_safe=False,
packages=find_packages(),
scripts=[],
install_requires=install_requires,
tests_require=tests_require,
test_suite='vcs.tests.collector',
include_package_data=True,
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
'Programming Language :: Python',
'Operating System :: OS Independent',
],
entry_points={
'console_scripts': [
'vcs = vcs:main',
],
},
)