예제 #1
0
파일: setup.py 프로젝트: rajpushkar83/base
 def install(cls):
     cls.clean()
     auto_create_version("cloudmesh_base", version)
     commands = """
         python setup.py install
         """
     os_execute(commands)    
예제 #2
0
파일: setup.py 프로젝트: rajpushkar83/base
 def doc(cls):
     cls.install()
     commands = """
         sphinx-apidoc -o docs/source cloudmesh_base
         cd docs; make -f Makefile html
         """
     os_execute(commands)    
예제 #3
0
파일: setup.py 프로젝트: rajpushkar83/base
 def clean(cls):
     commands = """
         rm -rf docs/build
         rm -rf build
         rm -rf cloudmesh_base.egg-info
         rm -rf dist
         """
     os_execute(commands)
예제 #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)    
예제 #5
0
파일: setup.py 프로젝트: rajpushkar83/base
 def pypi(cls):
     cls.clean()
     cls.install()
     commands = """
         python setup.py bdist_wheel
         python setup.py sdist --format=bztar,zip upload
         """
     os_execute(commands)    
예제 #6
0
파일: setup.py 프로젝트: rajpushkar83/base
 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)    
예제 #7
0
파일: setup.py 프로젝트: zaber-paul/cmd3
 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)
예제 #8
0
파일: setup.py 프로젝트: cloudmesh/cmd3
 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)    
예제 #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)
예제 #10
0
파일: setup.py 프로젝트: zaber-paul/cmd3
    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)
예제 #11
0
파일: setup.py 프로젝트: cloudmesh/cmd3
    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)
예제 #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)
예제 #13
0
파일: setup.py 프로젝트: atavism/client
 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)
예제 #14
0
파일: setup.py 프로젝트: sdsc/nucleus-cli
    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)
예제 #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 ""
예제 #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)
예제 #17
0
파일: setup.py 프로젝트: rajpushkar83/base
 def github(cls):
     commands = """
         git commit -a
         git push
         """
     os_execute(commands)