-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
31 lines (27 loc) · 1005 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
# Copyright (c) 2024 Graphcore Ltd. All rights reserved.
import setuptools
import pathlib
import pkg_resources
def load_requirements(filename: str):
with pathlib.Path(filename).open() as requirements_txt:
requirements = [
str(requirement)
for requirement
in pkg_resources.parse_requirements(requirements_txt)
]
return requirements
setuptools.setup(
name="tandv",
version="0.1",
install_requires=load_requirements("requirements.txt"),
extras_require={
'torch': load_requirements("requirements-torch.txt"),
'jax': load_requirements("requirements-jax.txt"),
'wandb': ['wandb']
},
packages=["tandv", "tandv.viz", "tandv.track", "tandv.track.common",
"tandv.track.jax", "tandv.track.torch"],
# Disable zip_safe to allow compatibility with mypy.
# See: https://mypy.readthedocs.io/en/stable/installed_packages.html#making-pep-561-compatible-packages
zip_safe=False,
)