-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
77 lines (65 loc) · 1.8 KB
/
pyproject.toml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[build-system]
requires = ["setuptools>=61.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "simple-evals"
version = "0.1.0"
description = "A lightweight library for evaluating language models"
readme = "simple-evals/README.md"
authors = [
{name = "Graphcore Research", email = "[email protected]"}
]
license = {text = "MIT"}
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"pandas",
"numpy",
"tqdm",
"requests",
"jinja2",
"scipy",
"fire", # Required for human-eval
"openai>=1.0.0",
"anthropic>=0.5.0",
]
[project.optional-dependencies]
dev = [
"pre-commit>=4.0.1",
"pytest>=7.0.0",
"pytest-cov>=6",
]
[tool.uv]
dev-dependencies = [
"pre-commit>=4.0.1",
"pytest>=7.0.0",
"pytest-cov>=6",
]
[project.scripts]
simple_evals = "simple_evals:main"
[tool.setuptools]
# Need to install human-eval as well as simple_evals
packages = ["simple_evals", "simple_evals.sampler", "human_eval", "data"]
include-package-data = true
# Package directory mapping - specifies where to find each package
[tool.setuptools.package-dir]
"human_eval" = "human-eval/human_eval"
"data" = "human-eval/data" # Map the data directory
[tool.setuptools.dynamic]
version = {attr = "simple_evals.__version__"}
[tool.setuptools.package-data]
"simple_evals" = ["**/*.json", "**/*.jsonl", "**/*.csv", "**/*.txt"]
"human_eval" = ["**/*.json", "**/*.txt", "**/*.py"]
"data" = ["**/*.jsonl.gz", "**/*.json"] # Include data files
# Custom build and install steps
[tool.setuptools.cmdclass]
build_py = "build.BuildCommand"
# install = "build.InstallCommand"
# Pytest configuration
[tool.pytest]
testpaths = ["tests"]
python_files = "test_*.py"