-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
executable file
·83 lines (69 loc) · 2 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import os
import sys
from setuptools import setup, find_packages
from conductr_cli import __version__
from setuptools.command.test import test
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
install_requires = [
'requests>=2.6.0',
'requests-toolbelt>=0.7.0',
'argcomplete>=0.8.1',
'psutil>=5.0.1, <6.0',
'pyhocon==0.3.35',
'arrow>=0.6.0',
'colorama>=0.3.7',
'pyreadline>=2.1',
'www-authenticate==0.9.2',
'certifi>=2017.4.17',
'boto3>=1.4.4',
'semver>=2.7.7',
'dcos==0.5.5'
]
if sys.version_info[:2] == (3, 2):
install_requires.extend([
'pathlib==1.0.1',
'mock==1.0.1'
])
class Tox(test):
user_options = [('tox-args=', 'a', 'Arguments to pass to tox')]
def __init__(self, dist, **kw):
self.test_suite = True
self.test_args = []
self.tox_args = None
super().__init__(dist, **kw)
def initialize_options(self):
test.initialize_options(self)
def finalize_options(self):
test.finalize_options(self)
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import tox
import shlex
args = self.tox_args
if args:
args = shlex.split(self.tox_args)
else:
args = []
errno = tox.cmdline(args=args)
sys.exit(errno)
setup(
name='conductr-cli',
version=__version__,
packages=find_packages(),
entry_points={
'console_scripts': [
'conduct = conductr_cli.conduct:run',
'sandbox = conductr_cli.sandbox:run',
'shazar = conductr_cli.shazar:run',
'bndl = conductr_cli.bndl:run',
],
},
install_requires=install_requires,
tests_require=['tox'],
test_suite='conductr_cli.test',
cmdclass={'test': Tox},
license='Apache 2',
description='A CLI client for Lightbend ConductR',
url='https://github.com/typesafehub/conductr-cli',
)