-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
137 lines (106 loc) · 3.26 KB
/
Copy pathsetup.py
File metadata and controls
137 lines (106 loc) · 3.26 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
"""Cloud Mesh: managing multiple virtual machines in Clouds
This project allows you to manage multiple virtual machines.
In future you will be able ta add multipl eclouds.
"""
from setuptools import setup, find_packages
import sys
import os
version = "0.8"
######################################################################
# REQUIREMENTS
######################################################################
requires=[
# 'setuptools',
'pip',
'docopt',
'pyyaml',
'Flask',
'Flask-FlatPages',
'Flask-WTF',
'paramiko',
'blessings',
'fabric',
'progress',
'sh',
"console",
"pymongo",
"sphinxcontrib-blockdiag",
"python-novaclient",
# "python-keystoneclient",
"python-ldap",
"apache-libcloud"
],
install_requires = []
for package in requires:
try:
import package
except ImportError:
install_requires.append(package)
def fpath(name):
return os.path.join(os.path.dirname(__file__), name)
def read(fname):
return open(fpath(fname)).read()
def desc():
info = read('README.md')
try:
return info + '\n\n' + read('CHANGES.txt')
except IOError:
return info
######################################################################
# CLASSIFIER
######################################################################
classifiers = """\
Intended Audience :: Developers
Intended Audience :: Education
Intended Audience :: Science/Research
Development Status :: 4 - Beta
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Programming Language :: Python
Topic :: Database
Topic :: Software Development :: Libraries :: Python Modules
Operating System :: POSIX :: Linux
Programming Language :: Python :: 2.7
Operating System :: MacOS :: MacOS X
Topic :: Scientific/Engineering
Topic :: System :: Clustering
Topic :: System :: Distributed Computing
"""
if sys.version_info < (2, 7):
_setup = setup
def setup(**kwargs):
if "classifiers" in kwargs:
del kwargs["classifiers"]
_setup(**kwargs)
######################################################################
# SETUP
######################################################################
doclines = __doc__.split("\n")
setup(
name='flask_cm',
version=version,
description=doclines[0],
classifiers=filter(None, classifiers.split("\n")),
long_description=desc(),
keywords='Cloud FutureGrid Flask farmework',
maintainer='Gregor von Laszewski',
maintainer_email="laszewski@gmail.com",
author='Gregor von Laszewski',
author_email='laszewski@gmail.com',
url='https://github.com/futuregrid/flask_cm',
license='Apache 2.0',
package_dir={'': '.'},
packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
data_files=[('cloudmesh', ['cloudmesh/cloudmesh_template.yaml', 'cloudmesh/cloudmesh_clouds.yaml'])],
# include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'cm-manage = cloudmesh.cm_rc:main',
# 'fg-csh = fgvirtualcluster.FGShell:main',
]},
install_requires=install_requires
# scripts=['bin/cm', 'bin/cm']
)
#pip install -e git+https://github.com/openstack/python-novaclient.git#egg=python-novaclient
# pycrypto