def run(self):
        """Run command."""
        os.system("pip install -U setuptools twine wheel")
        os.system("rm -rf build/ dist/ Flask_PluginKit.egg-info/")
        os.system("python setup.py sdist bdist_wheel")
        if self.test:
            os.system("twine upload --repository-url https://test.pypi.org/legacy/ dist/*")
        elif self.release:
            os.system("twine upload dist/*")
        os.system("rm -rf build/ dist/ Flask_PluginKit.egg-info/")
        if self.test:
            print("V%s publish to the test.pypi.org successfully" % version)
        elif self.release:
            print("V%s publish to the pypi.org successfully" % version)
        exit()
def run ( self ) : os . system ( "pip install -U setuptools twine wheel" ) os . system ( "rm -rf build/ dist/ Flask_PluginKit.egg-info/" ) os . system ( "python setup.py sdist bdist_wheel" ) if self . test : os . system ( "twine upload --repository-url https://test.pypi.org/legacy/ dist/*" ) elif self . release : os . system ( "twine upload dist/*" ) os . system ( "rm -rf build/ dist/ Flask_PluginKit.egg-info/" ) if self . test : print ( "V%s publish to the test.pypi.org successfully" % version ) elif self . release : print ( "V%s publish to the pypi.org successfully" % version ) exit ( )
Run command.