-
Notifications
You must be signed in to change notification settings - Fork 80
/
setup.py
53 lines (45 loc) · 1.14 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
53
from setuptools import setup, find_packages
import sys
import os
wd = os.path.dirname(os.path.abspath(__file__))
os.chdir(wd)
sys.path.insert(1, wd)
name = 'python-coveralls'
pkg = __import__('coveralls')
author, email = pkg.__author__.rsplit(' ', 1)
email = email.strip('<>')
version = pkg.__version__
classifiers = pkg.__classifiers__
readme = open(os.path.join(wd, 'README.rst'), 'r').readlines()
description = readme[1]
long_description = ''.join(readme)
reqs = [
'PyYAML',
'requests',
'coverage',
'six',
]
if sys.version_info < (2, 7):
reqs.append('argparse')
reqs.append('subprocess32')
setup(
name=name,
version=version,
author=author,
author_email=email,
url='http://github.com/z4r/python-coveralls',
maintainer=author,
maintainer_email=email,
description=description,
long_description=long_description,
classifiers=classifiers,
install_requires=reqs,
packages=find_packages(),
license='Apache License 2.0',
keywords='coveralls.io',
entry_points={
'console_scripts': [
'coveralls = coveralls:wear',
],
},
)