File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616# under the License.
1717
1818try :
19- from cloudmonkey import *
19+ from cloudmonkey import __version__
2020except ImportError , e :
2121 print e
Original file line number Diff line number Diff line change 4343 import sys
4444 sys .exit ()
4545
46+ # Use following rules for versioning:
47+ # <cli major version>.<cloudstack minor version>.<cloudstack major version>
48+ # Example: For CloudStack 4.1.x, CLI version should be 0.1.4
49+ __version__ = "0.0.4"
50+
4651log_fmt = '%(asctime)s - %(filename)s:%(lineno)s - [%(levelname)s] %(message)s'
4752logger = logging .getLogger (__name__ )
4853completions = cloudstackAPI .__all__
4954
5055
5156class CloudStackShell (cmd .Cmd ):
52- intro = "☁ Apache CloudStack CLI. Type help or ? to list commands.\n "
57+ intro = ("☁ Apache CloudStack cloudmonkey " + __version__ +
58+ ". Type help or ? to list commands.\n " )
5359 ruler = "-"
5460 config_file = os .path .expanduser ('~/.cloudmonkey_config' )
5561 grammar = []
@@ -386,6 +392,9 @@ def do_quit(self, args):
386392 return self .do_EOF (args )
387393
388394 def do_EOF (self , args ):
395+ """
396+ Quit on Ctrl+d or EOF
397+ """
389398 return True
390399
391400
Original file line number Diff line number Diff line change 2222 use_setuptools ()
2323 from setuptools import setup , find_packages
2424
25- # Use following rules for versioning:
26- # <cli major version>.<cloudstack minor version>.<cloudstack major version>
27- # Example: For CloudStack 4.1.x, CLI version should be 0.1.4
28- version = "0.0.4"
29- name = "cloudmonkey"
25+ from cloudmonkey import __version__
26+
27+ name = 'cloudmonkey'
28+ version = __version__
3029
3130setup (
3231 name = name ,
3736 maintainer_email = "bhaisaab@apache.org" ,
3837 url = "http://incubator.apache.org/cloudstack" ,
3938 description = "Command Line Interface for Apache CloudStack" ,
40- long_description = "cloudmonkey is a command line interface for Apache "
39+ long_description = "cloudmonkey is a command line interface for Apache "
4140 "CloudStack powered by CloudStack Marvin testclient" ,
42- platforms = ("Any" ,),
41+ platforms = ("Any" ,),
4342 license = 'ASL 2.0' ,
44- packages = find_packages (),
45- install_requires = ['clint>=0.3.0' ],
43+ packages = find_packages (),
44+ install_requires = [
45+ 'clint>=0.3.0' ,
46+ 'readline' ,
47+ ],
4648 include_package_data = True ,
4749 zip_safe = False ,
4850 classifiers = [
5860 ],
5961 entry_points = """
6062 [console_scripts]
61- cloudmonkey = cloudmonkey:main
63+ cloudmonkey = cloudmonkey.cloudmonkey :main
6264 """ ,
6365)
You can’t perform that action at this time.
0 commit comments