Exemplo n.º 1
0
 def install(cls):
     cls.clean()
     auto_create_version("cloudmesh_base", version)
     commands = """
         python setup.py install
         """
     os_execute(commands)    
Exemplo n.º 2
0
 def doc(cls):
     cls.install()
     commands = """
         sphinx-apidoc -o docs/source cloudmesh_base
         cd docs; make -f Makefile html
         """
     os_execute(commands)    
Exemplo n.º 3
0
 def clean(cls):
     commands = """
         rm -rf docs/build
         rm -rf build
         rm -rf cloudmesh_base.egg-info
         rm -rf dist
         """
     os_execute(commands)
Exemplo n.º 4
0
 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)    
Exemplo n.º 5
0
 def pypi(cls):
     cls.clean()
     cls.install()
     commands = """
         python setup.py bdist_wheel
         python setup.py sdist --format=bztar,zip upload
         """
     os_execute(commands)    
Exemplo n.º 6
0
 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)    
Exemplo n.º 7
0
 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)
Exemplo n.º 8
0
 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)    
Exemplo n.º 9
0
 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)
Exemplo n.º 10
0
    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)
Exemplo n.º 11
0
    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)
Exemplo n.º 12
0
 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)
Exemplo n.º 13
0
 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)
Exemplo n.º 14
0
    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)
Exemplo n.º 15
0
    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 ""
Exemplo n.º 16
0
 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)
Exemplo n.º 17
0
 def github(cls):
     commands = """
         git commit -a
         git push
         """
     os_execute(commands)