-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
54 lines (47 loc) · 1.22 KB
/
setup.py
File metadata and controls
54 lines (47 loc) · 1.22 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
# -*- coding: utf-8 -*-
from setuptools import setup
import os
def is_package(path):
return (
os.path.isdir(path) and
os.path.isfile(os.path.join(path, '__init__.py')))
def find_packages(path, base="" ):
""" Find all packages in path """
packages = {}
for item in os.listdir(path):
dir = os.path.join(path, item)
if is_package(dir):
if base:
module_name = "%(base)s.%(item)s" % vars()
else:
module_name = item
packages[module_name] = dir
packages.update(find_packages(dir, module_name))
return packages
packages = find_packages(".")
requires = [
'toml==0.7.0',
'boto==2.23.0',
'envoy==0.0.2',
'pexpect==2.4',
'docopt==0.6.1',
'Jinja2==2.7',
'prettytable==0.7.2',
'clint==0.3.1',
]
setup(
name='ny',
version='0.0.2',
packages=packages,
license='MIT',
entry_points={
'console_scripts': [
'ny = ny.cli:ny',
'ny-deploy = ny.cli:ny_deploy',
'ny-vm = ny.cli:ny_vm',
'ny-_spinner = ny.cli:__spinner',
],
},
long_description=open('README.md').read(),
install_requires=requires
)