class_docstr: Support setup.py upload.
class_docstr_tok: ["Support","setup.py","upload","."]
code: def run(self):
      try:
          self.status("Removing previous builds…")
          rmtree(os.path.join(here, "dist"))
      except OSError:
          pass
  
      self.status("Building Source and Wheel (universal) distribution…")
      os.system(
          "{0} setup.py sdist bdist_wheel --universal".format(
              sys.executable
          )
      )
  
      self.status("Uploading the package to PyPi via Twine…")
      os.system("twine upload dist/*")
  
      self.status("Pushing git tags…")
      os.system("git tag v{0}".format(about["__version__"]))
      os.system("git push --tags")
  
      sys.exit()
  
file_path: nx_altair/setup.py
imports: import io
  import os
  import sys
  from shutil import rmtree
  from setuptools import find_packages, setup, Command
label_desc: Use image node_id 4 for calling the UploadCommand obj's underlying member method code with example usage: obj.run() without return types