forked from openai/human-eval
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
31 lines (26 loc) · 878 Bytes
/
setup.py
File metadata and controls
31 lines (26 loc) · 878 Bytes
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
import os
from setuptools import setup, find_packages
def parse_requirements(filename):
"""Parse requirements from a file, ignoring comments and empty lines."""
with open(os.path.join(os.path.dirname(__file__), filename)) as f:
return [
line.strip()
for line in f
if line.strip() and not line.startswith("#")
]
setup(
name="human-eval",
package_dir={"human_eval": ""},
version="1.0",
description="",
author="OpenAI",
packages=["human_eval.human_eval", "human_eval.data"],
install_requires=parse_requirements("requirements.txt"),
entry_points={
"console_scripts": [
"evaluate_functional_correctness = human_eval.human_eval.evaluate_functional_correctness:main",
]
},
package_data={"": ["*.jsonl", "*.jsonl.gz"]},
include_package_data=True,
)