def get_version_details(path):
    """Parses version file

    :param path: path to version file
    :return: version details
    """

    with open(path, "r") as reader:
        lines = reader.readlines()
        data = {
            line.split(" = ")[0].replace("__", ""):
                line.split(" = ")[1].strip().replace("'", "")
            for line in lines
        }
        return data