forked from isaaccorley/torchrs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
32 lines (29 loc) · 928 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
from setuptools import setup, find_packages
from setuptools.config import read_configuration
extras = {
"train": ["pytorch-lightning>=1.4.0", "torchmetrics>=0.4.1"],
}
install_requires = [
"torch>=1.9.0",
"torchvision>=0.10.0",
"torchaudio>=0.9.0",
"einops>=0.3.0",
"numpy>=1.21.0",
"pillow>=8.3.1",
"tifffile>=2021.7.2",
"h5py>=3.3.0",
"imagecodecs>=2021.7.30"
]
setup_requires = ["pytest-runner"]
tests_require = ["pytest", "pytest-cov", "mock", "mypy", "black", "pylint"]
cfg = read_configuration("setup.cfg")
setup(
download_url='{}/archive/{}.tar.gz'.format(cfg["metadata"]["url"], cfg["metadata"]["version"]),
project_urls={"Bug Tracker": cfg["metadata"]["url"] + "/issues"},
install_requires=install_requires,
extras_require=extras,
setup_requires=setup_requires,
tests_require=tests_require,
packages=find_packages(),
python_requires=">=3.7",
)