Skip to content

Commit 31dcf66

Browse files
committed
feat(deps): Add core dependencies for PyTorch and Matplotlib
1 parent a89c7e5 commit 31dcf66

4 files changed

Lines changed: 36 additions & 8 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ Install from PyPI:
1414
pip install deep-solutions
1515
```
1616

17+
### Core Dependencies
18+
19+
This package requires the following core dependencies:
20+
- **NumPy** (>=1.17.0): Numerical computing
21+
- **SciPy** (>=1.5.0): Scientific computing
22+
- **PyTorch** (>=1.7.0): Deep learning framework
23+
- **Matplotlib** (>=3.3.0): Visualization and plotting
24+
25+
These dependencies are automatically installed with the package.
26+
1727
Install from source (for development):
1828

1929
```bash

docs/en-US/devs/en-US_project_structure.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,21 @@ deep-solutions/
164164
165165
| Category | Section | Purpose |
166166
|----------|---------|---------|
167-
| Core | `[project] dependencies` | Runtime requirements (numpy, scipy, etc.) |
167+
| Core | `[project] dependencies` | Runtime requirements (numpy, scipy, torch, matplotlib) |
168168
| Dev | `[project.optional-dependencies] dev` | Testing, linting, formatting, building tools |
169169
| Docs | `[project.optional-dependencies] docs` | Sphinx documentation building |
170170
171+
### Core Dependencies
172+
173+
The following dependencies are required for all users and are automatically installed:
174+
175+
- **NumPy** (>=1.17.0): Numerical computing foundation
176+
- **SciPy** (>=1.5.0): Scientific computing algorithms
177+
- **PyTorch** (>=1.7.0): Deep learning framework (required for parameter search tools)
178+
- **Matplotlib** (>=3.3.0): Visualization and plotting (required for chart generation)
179+
180+
These are defined in `pyproject.toml` under `[project] dependencies`.
181+
171182
### Installation
172183
173184
```bash

docs/zh-CN/devs/zh-CN_project_structure.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,21 @@ deep-solutions/
119119

120120
| 类别 | 配置节 | 用途 |
121121
|------|--------|------|
122-
| 核心 | `[project] dependencies` | 运行时需求(numpy、scipy|
122+
| 核心 | `[project] dependencies` | 运行时需求(numpy、scipy、torch、matplotlib|
123123
| 开发 | `[project.optional-dependencies] dev` | 测试、检查、格式化、构建工具 |
124124
| 文档 | `[project.optional-dependencies] docs` | Sphinx 文档构建 |
125125

126+
### 核心依赖
127+
128+
以下依赖对所有用户都是必需的,会自动安装:
129+
130+
- **NumPy** (>=1.17.0): 数值计算基础
131+
- **SciPy** (>=1.5.0): 科学计算算法
132+
- **PyTorch** (>=1.7.0): 深度学习框架(参数搜索工具所需)
133+
- **Matplotlib** (>=3.3.0): 可视化和绘图(图表生成所需)
134+
135+
这些在 `pyproject.toml``[project] dependencies` 中定义。
136+
126137
### 安装方式
127138

128139
```bash

pyproject.toml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ classifiers = [
2929
dependencies = [
3030
"numpy>=1.17.0",
3131
"scipy>=1.5.0",
32+
"matplotlib>=3.3.0",
33+
"torch>=1.7.0",
3234
]
3335

3436
[project.optional-dependencies]
@@ -48,12 +50,6 @@ docs = [
4850
"sphinx>=6.0.0",
4951
"sphinx-rtd-theme>=1.2.0",
5052
]
51-
viz = [
52-
"matplotlib>=3.3.0",
53-
]
54-
pytorch = [
55-
"torch>=1.7.0",
56-
]
5753

5854
[project.urls]
5955
Homepage = "https://github.com/FrostyHec/deep-solutions"

0 commit comments

Comments
 (0)