From b9afcbb3a7d3a2d833597111c3e1699081372d55 Mon Sep 17 00:00:00 2001 From: chensuyue Date: Sat, 1 Jun 2024 00:05:58 +0800 Subject: [PATCH 1/3] update install bkc --- README.md | 3 +++ setup.py | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b880ab10..6c9caa5d 100644 --- a/README.md +++ b/README.md @@ -6,14 +6,17 @@ Evaluation, benchmark, and scorecard, targeting for performance on throughput an - Install from Pypi ```bash +pip install -r requirements.txt pip install opea-eval ``` +> notes: We have to install requirements.txt at first, cause Pypi can't have direct dependency with specific commit. - Build from Source ```bash git clone https://github.com/opea-project/GenAIEval cd GenAIEval +pip install -r requirements.txt pip install -e . ``` diff --git a/setup.py b/setup.py index 3b813f4b..344f5020 100644 --- a/setup.py +++ b/setup.py @@ -10,11 +10,6 @@ from setuptools import find_packages, setup -def parse_requirements(filename): - with open(filename, "r") as file: - return [line.strip() for line in file if line.strip() and not line.startswith("#")] - - setup( name="opea-eval", version="0.6", @@ -25,6 +20,5 @@ def parse_requirements(filename): long_description_content_type="text/markdown", url="https://github.com/opea-project/GenAIEval", packages=find_packages(), - install_requires=parse_requirements("requirements.txt"), python_requires=">=3.10", ) From fb980221bfec9b7e5284ceee0f8e1d260e462583 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 31 May 2024 16:11:02 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.py b/setup.py index 344f5020..a3ed0927 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,6 @@ from setuptools import find_packages, setup - setup( name="opea-eval", version="0.6", From af367f77a6894ce229e3b21490bb0919322c7407 Mon Sep 17 00:00:00 2001 From: chensuyue Date: Sat, 1 Jun 2024 16:49:45 +0800 Subject: [PATCH 3/3] fix format --- setup.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/setup.py b/setup.py index a3ed0927..1a6a3b33 100644 --- a/setup.py +++ b/setup.py @@ -3,10 +3,6 @@ # Copyright (C) 2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -# - -import subprocess - from setuptools import find_packages, setup setup(