parameters: ()
docstring: Publish this package to PyPI (aka "the Cheeseshop").
docstring_summary: Publish this package to PyPI (aka "the Cheeseshop").
docstring_tokens: Publish this package to PyPI ( aka the Cheeseshop ) .
function: def publish():
      """
      Publish this package to PyPI (aka "the Cheeseshop").
  
      """
      temp_path = make_temp_path(DESCRIPTION_PATH)
      make_description_file(temp_path)
  
      if read(temp_path) != read(DESCRIPTION_PATH):
          print("""\
  Description file not up-to-date: %s
  Run the following command and commit the changes--
  
      python setup.py %s
  """ % (DESCRIPTION_PATH, PREP_COMMAND))
          sys.exit()
  
      print("Description up-to-date: %s" % DESCRIPTION_PATH)
  
      answer = raw_input("Are you sure you want to publish to PyPI (yes/no)?")
  
      if answer != "yes":
          exit("Aborted: nothing published")
  
      os.system('python setup.py sdist upload')
function_tokens: def publish ( ) : temp_path = make_temp_path ( DESCRIPTION_PATH ) make_description_file ( temp_path ) if read ( temp_path ) != read ( DESCRIPTION_PATH ) : print ( """\
  Description file not up-to-date: %s
  Run the following command and commit the changes--
  
      python setup.py %s
  """ % ( DESCRIPTION_PATH , PREP_COMMAND ) ) sys . exit ( ) print ( "Description up-to-date: %s" % DESCRIPTION_PATH ) answer = raw_input ( "Are you sure you want to publish to PyPI (yes/no)?" ) if answer != "yes" : exit ( "Aborted: nothing published" ) os . system ( 'python setup.py sdist upload' )