-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
43 lines (36 loc) · 1.5 KB
/
pyproject.toml
File metadata and controls
43 lines (36 loc) · 1.5 KB
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
[project]
name = "py-lib-template" # The pip install <name>.
version = "0.1.0"
description = "Template for repos that are intended to be packaged libraries."
readme = "README.md"
requires-python = "~=3.12"
authors = [
{ name = "Eric Apgar" }
]
urls = {"Homepage" = "https://github.com/EricApgar/how-to-python"}
dependencies = [
"numpy==2.3.2", # Specifically this version. numpy requires no depenedencies.
"pandas~=2.3", # Any micro version in 2.3 branch (>2.3, <2.4). Pandas has 4 dependencies.
"PyYAML>5.1.1", # Any version greater than 5.1.1.
"Pygments", # Latest version.
'python-certifi-win32; platform_system == "Windows"', # Only if on Windows.
"torch", # See below for special pytorch considerations.
"torchvision" # See below for special pytorch considerations.
]
# Handling specifically if using uv to install.
[[tool.uv.index]]
name = "pytorch-cu130"
url = "https://download.pytorch.org/whl/cu130"
explicit = true # Only used for torch packages explicitly mapped below.
# Route just these packages to the PyTorch index.
[tool.uv.sources]
torch = { index = "pytorch-cu130" }
torchvision = { index = "pytorch-cu130" }
[build-system]
requires = ["uv_build>=0.9.7,<0.10.0"]
build-backend = "uv_build"
[tool.setuptools]
package-dir = {"" = "src"} # Important that this folder is the name of the folder where all the files sit under.
[tool.setuptools.packages.find]
where = ["src"]
include = ["lib_template*"] # The import <name>. Defined by the name of the folder under src.