-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
59 lines (51 loc) · 1.72 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
59
import setuptools
VERSION = "1.3.56"
long_description = open("Readme.md", mode="r", encoding="utf-8").read()
# Module dependencies
dependency_links = []
requirements = [
"numpy>=1.21.0",
"requests>=2.27.1",
"tqdm>=4.62.3",
]
cv_requirements = ["opencv-python>=4.5.5.58"]
tf_requirements = ["tensorflow>=2.6.0"] + cv_requirements
torch_requirements = [
"torch>=1.8.0,<1.12.0",
"torchvision>=0.10.0",
"torchaudio>=1.10.0",
]
torchvision_requirements = [
"torch>=1.8.0,<1.12.0",
"torchvision>=0.10.0",
] + cv_requirements
torch_transformers_requirements = torch_requirements + ["transformers>=4.18.0"]
setuptools.setup(
name="deep_utils",
version=VERSION,
author="Pooya Mohammadi Kazaj",
author_email="[email protected]",
download_url=f"https://github.com/pooya-mohammadi/deep_utils/archive/refs/tags/{VERSION}.tar.gz",
description="Deep Utils",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/pooya-mohammadi/deep_utils",
packages=setuptools.find_packages(),
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
extras_require={
"cv": cv_requirements,
"tf": tf_requirements,
"torch": torch_requirements,
"torchvision": torchvision_requirements,
"torch_transformers": torch_transformers_requirements,
},
install_requires=requirements,
dependency_links=dependency_links,
python_requires=">=3.6",
license_files=('LICENSE',),
)