def METHOD_NAME(setup_py_location, new_version):
    version_py_location = get_version_py(setup_py_location)
    version_contents = ""
    with open(version_py_location, "r") as version_py_file:
        version_contents = version_py_file.read()
    with open(version_py_location, "w") as version_py_file:
        replaced_version_contents = re.sub(
            VERSION_REGEX,
            VERSION_STRING % new_version,
            version_contents,
            flags=re.MULTILINE,
        )
        version_py_file.write(replaced_version_contents)