tasks/release.py
def finish(ctx, major_versions="6,7"):
    """
    Updates the release entry in the release.json file for the new version.

    Updates internal module dependencies with the new version.
    """

    if sys.version_info[0] < 3:
        return Exit(message="Must use Python 3 for this task", code=1)

    list_major_versions = parse_major_versions(major_versions)
    print(f"Finishing release for major version(s) {list_major_versions}")

    github_token = get_github_token()

    for major_version in list_major_versions:
        # NOTE: the release process assumes that at least one RC
        # was built before release.finish is used. It doesn't support
        # doing final version -> final version updates (eg. 7.32.0 -> 7.32.1
        # without doing at least 7.32.1-rc.1), as next_final_version won't
        # find the correct new version.
        # To support this, we'd have to support a --patch-version param in
        # release.finish
        new_version = next_final_version(ctx, major_version, False)
        update_release_json(github_token, new_version, new_version)

    # Update internal module dependencies
    update_modules(ctx, str(new_version))

    Updates the release entry in the release.json file for the new version.

    Updates internal module dependencies with the new version.
    
Updates the release entry in the release.json file for the new version.
Updates internal module dependencies with the new version.
Updates the release entry in the release . json file for the new version . Updates internal module dependencies with the new version .
def finish(ctx, major_versions="6,7"):
    if sys.version_info[0] < 3:
        return Exit(message="Must use Python 3 for this task", code=1)
    list_major_versions = parse_major_versions(major_versions)
    print(f"Finishing release for major version(s) {list_major_versions}")
    github_token = get_github_token()
    for major_version in list_major_versions:
        new_version = next_final_version(ctx, major_version, False)
        update_release_json(github_token, new_version, new_version)
    update_modules(ctx, str(new_version))
def finish ( ctx , major_versions = "6,7" ) : if sys . version_info [ 0 ] < 3 : return Exit ( message = "Must use Python 3 for this task" , code = 1 ) list_major_versions = parse_major_versions ( major_versions ) print ( f"Finishing release for major version(s) {list_major_versions}" ) github_token = get_github_token ( ) for major_version in list_major_versions : new_version = next_final_version ( ctx , major_version , False ) update_release_json ( github_token , new_version , new_version ) update_modules ( ctx , str ( new_version ) )
Updates the release entry in the release.json file for the new version.
Updates the release entry in the release . json file for the new version .
"""
    Updates the release entry in the release.json file for the new version.

    Updates internal module dependencies with the new version.
    """ # NOTE: the release process assumes that at least one RC # was built before release.finish is used. It doesn't support # doing final version -> final version updates (eg. 7.32.0 -> 7.32.1 # without doing at least 7.32.1-rc.1), as next_final_version won't # find the correct new version. # To support this, we'd have to support a --patch-version param in # release.finish # Update internal module dependencies
ctx
major_versions