From 87bb5ff20a1dcf259342723bec009348e1caa7b6 Mon Sep 17 00:00:00 2001 From: "chen, suyue" Date: Thu, 21 Nov 2024 14:25:18 +0800 Subject: [PATCH] bump release version into v1.1 (#204) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- evals/version.py | 6 ++++++ setup.py | 11 ++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 evals/version.py diff --git a/evals/version.py b/evals/version.py new file mode 100644 index 00000000..48889783 --- /dev/null +++ b/evals/version.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +__version__ = "1.1" diff --git a/setup.py b/setup.py index 7c2ab91b..0b565187 100644 --- a/setup.py +++ b/setup.py @@ -3,11 +3,20 @@ # Copyright (C) 2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 +import re + from setuptools import find_packages, setup +try: + filepath = "./evals/version.py" + with open(filepath) as version_file: + (__version__,) = re.findall('__version__ = "(.*)"', version_file.read()) +except Exception as error: + assert False, "Error: Could not open '%s' due %s\n" % (filepath, error) + setup( name="opea-eval", - version="1.0", + version=__version__, author="Intel AISE AIPC Team", author_email="haihao.shen@intel.com, feng.tian@intel.com, chang1.wang@intel.com, kaokao.lv@intel.com", description="Evaluation and benchmark for Generative AI",