-
Notifications
You must be signed in to change notification settings - Fork 22
/
setup.py
58 lines (50 loc) · 1.6 KB
/
setup.py
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
import os
import setuptools
dir_name = os.path.abspath(os.path.dirname(__file__))
version_contents = {}
with open(os.path.join(dir_name, "py", "autoevals", "version.py"), encoding="utf-8") as f:
exec(f.read(), version_contents)
with open(os.path.join(dir_name, "README.md"), "r", encoding="utf-8") as f:
long_description = f.read()
install_requires = ["chevron", "levenshtein", "pyyaml", "braintrust_core", "jsonschema"]
extras_require = {
"dev": [
"black",
"build",
"flake8",
"flake8-isort",
"IPython",
"isort==5.12.0",
"pre-commit",
"pytest",
"respx",
"twine",
],
"doc": ["pydoc-markdown"],
"scipy": ["numpy", "scipy"],
}
extras_require["all"] = sorted({package for packages in extras_require.values() for package in packages})
setuptools.setup(
name="autoevals",
version=version_contents["VERSION"],
author="BrainTrust",
author_email="[email protected]",
description="Universal library for evaluating AI models",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://www.braintrustdata.com",
project_urls={
"Bug Tracker": "https://github.com/braintrustdata/autoevals",
},
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
],
package_dir={"": "py"},
include_package_data=True,
packages=setuptools.find_packages(where="py"),
python_requires=">=3.8.0",
entry_points={},
install_requires=install_requires,
extras_require=extras_require,
)