parameters: (filename, versions)
docstring: Write the given version number to the given _version.py file.
docstring_summary: Write the given version number to the given _version.py file.
docstring_tokens: Write the given version number to the given _version . py file .
function: def write_to_version_file(filename, versions):
      """Write the given version number to the given _version.py file."""
      os.unlink(filename)
      contents = json.dumps(
          versions, sort_keys=True, indent=1, separators=(",", ": ")
      )
      with open(filename, "w") as f:
          f.write(SHORT_VERSION_PY % contents)
  
      print("set %s to '%s'" % (filename, versions["version"]))
function_tokens: def write_to_version_file ( filename , versions ) : os . unlink ( filename ) contents = json . dumps ( versions , sort_keys = True , indent = 1 , separators = ( "," , ": " ) ) with open ( filename , "w" ) as f : f . write ( SHORT_VERSION_PY % contents ) print ( "set %s to '%s'" % ( filename , versions [ "version" ] ) )