-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·60 lines (51 loc) · 1.98 KB
/
setup.py
File metadata and controls
executable file
·60 lines (51 loc) · 1.98 KB
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
# Copyright 2014 MadeiraCloud LTD.
import re
from setuptools import setup, find_packages
try:
import multiprocessing # noqa
except ImportError:
pass
file_text = open('visualops/__init__.py').read()
def grep(attrname):
pattern = r"{0}\W*=\W*'([^']+)'".format(attrname)
strval, = re.findall(pattern, file_text)
return strval
setup(
name='visualops',
version=grep('__version__'),
author='Thibault Bronchain',
author_email='thibault@visualops.io',
license='LICENSE.txt',
url='https://github.com/MadeiraCloud/cli',
description='VisualOps CLI',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
scripts=[],
install_requires=['cliff','requests>=2.2.1','six>=1.7.0','pyyaml','docker-py'],
entry_points={
'console_scripts': [
'visualops = visualops.main:main'
],
'visualops.cli': [
'login = visualops.cmd.session:Login',
'logout = visualops.cmd.session:Logout',
'project list = visualops.cmd.project.list:List',
'project select = visualops.cmd.project.select:Select',
'stack list = visualops.cmd.stack.list:List',
'stack info = visualops.cmd.stack.info:Info',
'stack pull = visualops.cmd.stack.pull:Pull',
'stack push = visualops.cmd.stack.push:Push',
'stack run = visualops.cmd.stack.run:Run',
'stack delete = visualops.cmd.stack.delete:Delete',
'app list = visualops.cmd.app.list:List',
'app info = visualops.cmd.app.info:Info',
'app stop = visualops.cmd.app.stop:Stop',
'app start = visualops.cmd.app.start:Start',
'app restart = visualops.cmd.app.restart:Restart',
'app clone = visualops.cmd.app.clone:Clone',
'app terminate = visualops.cmd.app.terminate:Terminate',
'db reset = visualops.cmd.db.reset:Reset',
],
},
)