def parse_archive_filename(filename):
    """
    Read the filename of the requested archive and return
    both the chart name and the release version.
    """
    chunks = filename[:-4].split('-')
    chart_name = '-'.join(chunks[:-1])
    version = chunks[-1]

    return chart_name, version