def install(cls): cls.clean() auto_create_version("cloudmesh_base", version) commands = """ python setup.py install """ os_execute(commands)
def doc(cls): cls.install() commands = """ sphinx-apidoc -o docs/source cloudmesh_base cd docs; make -f Makefile html """ os_execute(commands)
def clean(cls): commands = """ rm -rf docs/build rm -rf build rm -rf cloudmesh_base.egg-info rm -rf dist """ os_execute(commands)
def run(self): os.system("make clean") commands = """ python setup.py install python setup.py bdist_wheel upload python setup.py sdist --format=bztar,zip upload """ os_execute(commands)
def pypi(cls): cls.clean() cls.install() commands = """ python setup.py bdist_wheel python setup.py sdist --format=bztar,zip upload """ os_execute(commands)
def pypitest(cls): cls.clean() cls.install() commands = """ python setup.py bdist_wheel python setup.py sdist --format=bztar,zip upload -r https://testpypi.python.org/pypi """ os_execute(commands)
def run(self): auto_create_version("cmd3", version, filename="version.py") os.system("make clean") commands = """ python setup.py install python setup.py bdist_wheel python setup.py sdist --format=bztar,zip upload """ os_execute(commands)
def run(self): os.system("make clean") commands = """ python setup.py install python setup.py bdist_wheel python setup.py sdist --format=bztar,zip upload python setup.py bdist_wheel upload """ os_execute(commands)
def run(self): if sys.platform.lower() not in ['cygwin', 'windows']: banner("Install readline") commands = """ easy_install readline """ os_execute(commands) import cmd3 banner("Install Cmd3 {:}".format(version)) install.run(self)
def run(self): if sys.platform.lower() not in ['cygwin','windows']: banner("Install readline") commands = """ easy_install readline """ os_execute(commands) import cmd3 banner("Install Cmd3 {:}".format(version)) install.run(self)
def run(self): banner("Install readline") commands = None this_platform = platform.system().lower() if this_platform in ['darwin']: commands = """ easy_install readline """ elif this_platform in ['windows']: commands = """ pip install pyreadline """ if commands: os_execute(commands) banner("Install Cloudmesh_portal {:}".format(__version__)) install.run(self)
def run(self): banner("Install readline") commands = None this_platform = platform.system().lower() if this_platform in ['darwin']: commands = """ easy_install readline """ elif this_platform in ['windows']: commands = """ pip install pyreadline """ if commands: os_execute(commands) banner("Install Cloudmesh_client {:}".format(__version__)) install.run(self)
def run(self): banner("Install readline") commands = None this_platform = platform.system().lower() if this_platform in ["darwin"]: commands = """ easy_install readline """ elif this_platform in ["windows"]: commands = """ pip install pyreadline """ if commands: os_execute(commands) import nucleus_cli banner("Install nucleus_cli {:}".format(version)) install.run(self)
def do_portal(self, args, arguments): """ :: Usage: portal start portal stop Examples: portal start starts the portal and opens the default web page portal stop stops the portal """ if arguments["start"]: ValueError("Not yet implemented") data = self.get_conf() commands = """ cd {location}; make run & cd {location}; make view & """.format(**data) print(data) os_execute(commands) if arguments["start"]: ValueError("Not yet implemented") data = self.get_conf() commands = """ cd {location}; make run """.format(**data) print(data) os_execute(commands) elif arguments["stop"]: ValueError("Not yet implemented") return ""
def run(self): commands = "sphinx-apidoc -f -o docs/source/api/cloudmesh_client cloudmesh_client\n" os_execute(commands) commands = "sphinx-apidoc -f -o docs/source/api/cloudmesh_base ../base/cloudmesh_base\n" os_execute(commands)
def github(cls): commands = """ git commit -a git push """ os_execute(commands)