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",