import zipfile


def get_parts(fname):
    """Returns a list of the parts in an OPC package.
    """
    with zipfile.ZipFile(fname) as zip_archive:
        parts = [name for name in zip_archive.namelist()]
    return sorted(parts)