Skip to content

Commit 19a2905

Browse files
committed
cli: Import project info from config in setup.py, fix debug msgs
Signed-off-by: Rohit Yadav <bhaisaab@apache.org> lsdfjk Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent 4421f2b commit 19a2905

3 files changed

Lines changed: 19 additions & 21 deletions

File tree

tools/cli/cloudmonkey/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
# under the License.
1717

1818
try:
19-
from config import __version__
19+
from config import __version__, __description__
20+
from config import __maintainer__, __maintaineremail__
21+
from config import __project__, __projecturl__, __projectemail__
2022
except ImportError, e:
2123
print e

tools/cli/cloudmonkey/cloudmonkey.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,6 @@ def main():
484484
help="prints cloudmonkey version information")
485485

486486
(options, args) = parser.parse_args()
487-
print 'args', args
488-
print 'options', options
489487
if options.version:
490488
print "cloudmonkey", __version__
491489
print __description__, "(%s)" % __projecturl__

tools/cli/setup.py

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,34 +22,32 @@
2222
use_setuptools()
2323
from setuptools import setup, find_packages
2424

25-
from cloudmonkey import __version__
26-
27-
name = 'cloudmonkey'
28-
version = __version__
29-
requires = ['Pygments>=1.5',
30-
'prettytable>=0.6',
31-
]
25+
from cloudmonkey import __version__, __description__
26+
from cloudmonkey import __maintainer__, __maintaineremail__
27+
from cloudmonkey import __project__, __projecturl__, __projectemail__
3228

3329
try:
3430
import readline
3531
except ImportError:
3632
requires.append('readline')
3733

3834
setup(
39-
name = name,
40-
version = version,
41-
author = "The Apache CloudStack Team",
42-
author_email = "cloudstack-dev@incubator.apache.org",
43-
maintainer = "Rohit Yadav",
44-
maintainer_email = "bhaisaab@apache.org",
45-
url = "http://incubator.apache.org/cloudstack",
46-
description = "Command Line Interface for Apache CloudStack",
47-
long_description = "cloudmonkey is a command line interface for Apache "
48-
"CloudStack powered by CloudStack Marvin",
35+
name = 'cloudmonkey',
36+
version = __version__,
37+
author = __project__,
38+
author_email = __projectemail__,
39+
maintainer = __maintainer__,
40+
maintainer_email = __maintaineremail__,
41+
url = __projecturl__,
42+
description = __description__,
43+
long_description = "cloudmonkey is a CLI for Apache CloudStack",
4944
platforms = ("Any",),
5045
license = 'ASL 2.0',
5146
packages = find_packages(),
52-
install_requires = requires,
47+
install_requires = [
48+
'Pygments>=1.5',
49+
'prettytable>=0.6',
50+
],
5351
include_package_data = True,
5452
zip_safe = False,
5553
classifiers = [

0 commit comments

Comments
 (0)