-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
74 lines (63 loc) · 2.12 KB
/
pyproject.toml
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
# example https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
[project]
name = "torch_practice"
version = "0.0.1"
description = "Practice Pytorch, Ray, and packaging."
authors = [{ name = " Santiago Miranda", email = "[email protected]" }]
readme = "README.md"
license = { text = "MIT License" }
requires-python = ">=3.10"
keywords = ["sample project", "pytorch", "ray"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: Unix",
]
dependencies = [
"matplotlib>=3.9.2",
"ray[train,tune]>=2.39.0",
"tensorboard>=2.18.0",
"torch>=2.5.1",
"torchinfo>=1.8.0",
"torchvision>=0.20.1",
]
[project.urls]
Homepage = "https://github.com/ghsanti/learn_python"
Repository = "https://github.com/ghsanti/learn_python"
Issues = "https://github.com/ghsanti/learn_python/issues"
Documentation = "https://readthedocs.org"
Changelog = "https://github.com/ghsanti/learn_python/blob/main/CHANGELOG.md"
[project.optional-dependencies]
dev = [
"pre-commit>=4.0.1",
"pyright>=1.1.389",
"pytest-cov>=6.0.0",
"pytest>=8.3.3",
"ruff>=0.8.1",
]
[build-system]
# other builds backends are setuptools etc
# normally setuptools uses setup.cfg, setup.py etc.
# the build frontend (pip etc.) calls the backend.
# and they make the wheels / `.whl` files.
# those files are the ones distributed.
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/torch_practice"]
# only current working solution, other than CPU install manually, same version.
[tool.uv.sources]
torch = [{ index = "pytorch-cpu", marker = "platform_system != 'Darwin'" }]
torchvision = [
{ index = "pytorch-cpu", marker = "platform_system != 'Darwin'" },
]
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true