-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·75 lines (64 loc) · 2.56 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
from setuptools import setup, find_packages
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
with open("requirements.txt", "r", encoding="utf-8") as fh:
requirements = [line.strip() for line in fh if line.strip() and not line.startswith("#")]
# Core requirements (excluding PyTorch and logging dependencies)
core_requirements = []
for req in requirements:
if not any(req.startswith(pkg) for pkg in ["torch", "torchvision", "tensorboard", "mlflow", "wandb"]):
core_requirements.append(req)
# Define logger dependencies
logger_requirements = [
"tensorboard>=2.15.0",
"mlflow>=2.9.0",
"wandb>=0.16.0"
]
setup(
name="deeplib",
version="1.1.0",
author="Jon Leiñena",
author_email="[email protected]",
description="A deep learning library for computer vision tasks (CUDA ≥11.8 compatible)",
long_description=long_description + "\n\n" + """
## Installation Options
### Full Installation (Recommended)
```bash
pip install deeplib
```
### Core Installation (without logging backends)
```bash
pip install deeplib[core]
```
## CUDA Requirements
This package requires PyTorch with CUDA 11.8 or newer. To install PyTorch dependencies:
```bash
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118
```
For other CUDA versions or CPU-only installation, see https://pytorch.org/get-started/locally/
""",
long_description_content_type="text/markdown",
url="https://github.com/jonleinena/deeplib",
packages=find_packages(),
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Environment :: GPU :: NVIDIA CUDA",
],
python_requires=">=3.10",
install_requires=core_requirements + logger_requirements, # Full installation by default
extras_require={
"core": core_requirements, # Core installation without loggers
"all": core_requirements + logger_requirements, # Same as default
# Individual logger installations
"tensorboard": core_requirements + ["tensorboard>=2.15.0"],
"mlflow": core_requirements + ["mlflow>=2.9.0"],
"wandb": core_requirements + ["wandb>=0.16.0"]
}
)