From 567d3040466a235d908cdaa710c47966034785d1 Mon Sep 17 00:00:00 2001 From: chensuyue Date: Wed, 20 Nov 2024 16:43:13 +0800 Subject: [PATCH 1/2] bump version --- evals/version.py | 6 ++++++ setup.py | 10 +++++++++- 2 files changed, 15 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..651ba8d2 --- /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" \ No newline at end of file diff --git a/setup.py b/setup.py index 7c2ab91b..7a527b8d 100644 --- a/setup.py +++ b/setup.py @@ -4,10 +4,18 @@ # SPDX-License-Identifier: Apache-2.0 from setuptools import find_packages, setup +import re + +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", From 15708c174a1c4ea979e67a318ea50729cacddd2f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 21 Nov 2024 06:10:07 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- evals/version.py | 2 +- setup.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/evals/version.py b/evals/version.py index 651ba8d2..48889783 100644 --- a/evals/version.py +++ b/evals/version.py @@ -3,4 +3,4 @@ # Copyright (C) 2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -__version__ = "1.1" \ No newline at end of file +__version__ = "1.1" diff --git a/setup.py b/setup.py index 7a527b8d..0b565187 100644 --- a/setup.py +++ b/setup.py @@ -3,9 +3,10 @@ # Copyright (C) 2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from setuptools import find_packages, setup import re +from setuptools import find_packages, setup + try: filepath = "./evals/version.py" with open(filepath) as version_file: