-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (34 loc) · 1.08 KB
/
setup.py
File metadata and controls
39 lines (34 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: CC-BY-NC-4.0
from os.path import abspath, join, dirname
from setuptools import find_packages, setup
this_dir = abspath(dirname(__file__))
with open(join(this_dir, "README.md"), encoding="utf-8") as file:
long_description = file.read()
METRICS = [
"rouge_score",
"sacrebleu",
"alignscore @ git+https://github.com/yuh-zha/AlignScore.git",
"evaluate",
]
setup(
name="CriSPO",
version="0.0.0",
description="CriSPO: Multi-Aspect Critique-Suggestion-guided Automatic Prompt Optimization for Text Generation",
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages(exclude=["docs", "tests*", "experiments"]),
include_package_data=True,
install_requires=[
"pandas",
"tabulate",
"tqdm",
"termcolor",
"datasets",
"matplotlib",
"boto3",
],
extras_require={"experiments": METRICS},
tests_require=["pytest", "black"],
python_requires=">=3.10",
)