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