-
Notifications
You must be signed in to change notification settings - Fork 27
/
setup.py
46 lines (40 loc) · 942 Bytes
/
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
from setuptools import setup
_REQUIRED = [
"numpy",
"einops",
"tqdm",
# TODO: remove this upper bound
# currently, when using ray we get:
# "AttributeError: module 'pydantic._internal' has no attribute '_model_construction'"
"pydantic>=2.0.0,<2.5.0",
"wandb",
]
_OPTIONAL = {
"analysis": [
"pandas",
"seaborn",
"matplotlib",
],
"extra":[
"rich",
"ray",
"PyYAML",
]
}
# ensure that torch is installed, and send to torch website if not
try:
import torch
except ModuleNotFoundError:
raise ValueError("Please install torch first: https://pytorch.org/get-started/locally/")
setup(
name="zoology",
version="0.0.1",
description="",
author="simran sabri",
packages=["zoology"],
install_requires=_REQUIRED,
extras_require=_OPTIONAL,
entry_points={
'console_scripts': ['zg=zoology.cli:cli'],
},
)