Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
174 lines (150 loc) · 5.36 KB
/
Copy pathpyproject.toml
File metadata and controls
174 lines (150 loc) · 5.36 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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
[project]
name = "halide-workspace"
version = "0"
requires-python = ">=3.10"
[tool.uv.workspace]
members = [
"python_bindings/halide-bin",
"python_bindings/halide-runtime",
"python_bindings/halide",
]
[dependency-groups]
dev = ["pybind11>=2.11.1", "scikit-build-core>=1.0.3", "setuptools-scm>=8.3.1"]
apps = [
"imageio>=2",
"numpy>=1.26; platform_machine != 'armv8l' and platform_machine != 'armv7l'",
"numpy>=1.26; (platform_machine == 'armv8l' or platform_machine == 'armv7l') and python_full_version >= '3.11'",
"onnx==1.19.0; platform_machine != 'armv8l' and platform_machine != 'armv7l'",
"pillow; (platform_machine == 'armv8l' or platform_machine == 'armv7l') and python_full_version >= '3.11'",
"protobuf>=7; platform_machine != 'armv8l' and platform_machine != 'armv7l'",
"pytest; platform_machine != 'armv8l' and platform_machine != 'armv7l'",
]
tools = [
"cmake>=3.28",
"ninja>=1.11,!=1.13.0",
"pre-commit>=4",
"ruff>=0.12",
"tbump>=6.11",
]
docs = [
"sphinx>=7.2",
"myst-parser>=3.0",
"breathe>=4.35",
"pydata-sphinx-theme>=0.15",
"sphinxcontrib-video>=0.4",
"sphinx-design>=0.6",
]
ci-base = [
{ include-group = "dev" },
{ include-group = "apps" },
{ include-group = "tools" },
]
ci-llvm-main = [{ include-group = "ci-base" }, "halide-llvm~=23.0.0.dev0"]
ci-llvm-22 = [{ include-group = "ci-base" }, "halide-llvm~=22.1.0"]
ci-llvm-21 = [{ include-group = "ci-base" }, "halide-llvm~=21.1.0"]
[tool.uv.sources]
halide-bin = { workspace = true }
halide-flatbuffers = { index = "halide" }
halide-wabt = { index = "halide" }
halide-runtime = { workspace = true }
halide-llvm = { index = "halide" }
imageio = { index = "piwheels", marker = "platform_machine == 'armv8l' or platform_machine == 'armv7l'" }
numpy = { index = "piwheels", marker = "platform_machine == 'armv8l' or platform_machine == 'armv7l'" }
pillow = { index = "piwheels", marker = "platform_machine == 'armv8l' or platform_machine == 'armv7l'" }
[[tool.uv.index]]
name = "halide"
url = "https://pypi.halide-lang.org/simple"
explicit = true
[[tool.uv.index]]
name = "piwheels"
url = "https://piwheels.org/simple"
explicit = true
[tool.uv]
package = false
conflicts = [
[
{ package = "halide-workspace", group = "ci-llvm-main" },
{ package = "halide-workspace", group = "ci-llvm-22" },
{ package = "halide-workspace", group = "ci-llvm-21" },
],
]
# numpy 2.4.6 and 2.5.2 only have piwheels ARM wheels locked; without this
# constraint uv may pick one of them to satisfy ml-dtypes' build-time numpy
# requirement even on platforms (e.g. linux-32) that need to build numpy from
# sdist, and then fail hash verification against the ARM wheel's hash.
# Excluding just those two lets uv fall back to whichever already
# fully-locked numpy version (2.2.6 or 2.4.2, depending on Python version)
# applies to the current platform.
build-constraint-dependencies = ["numpy!=2.4.6,!=2.5.2"]
# Package builds use build-backend hooks to resolve sibling requirements from
# the SCM-derived version. Supplying the resolution metadata here lets uv resolve
# the workspace without executing those hooks or building halide-bin first.
# uv requires a version for direct/workspace sources; these resolution-only
# base versions are kept in sync with the release version by tbump below.
[[tool.uv.dependency-metadata]]
name = "halide"
version = "22.0.0"
requires-python = ">=3.10"
requires-dist = [
"halide-bin",
"halide-runtime",
"imageio>=2",
"pillow; (platform_machine == 'armv8l' or platform_machine == 'armv7l') and python_full_version >= '3.11'",
]
[[tool.uv.dependency-metadata]]
name = "halide-runtime"
version = "22.0.0"
requires-python = ">=3.10"
requires-dist = [
"numpy>=1.26; platform_machine != 'armv8l' and platform_machine != 'armv7l'",
"numpy>=1.26; (platform_machine == 'armv8l' or platform_machine == 'armv7l') and python_full_version >= '3.11'",
]
[[tool.uv.dependency-metadata]]
name = "halide-bin"
version = "22.0.0"
requires-python = ">=3.10"
[tool.tbump]
github_url = "https://github.com/halide/Halide/"
[tool.tbump.version]
current = "22.0.0"
regex = '(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)'
[tool.tbump.git]
message_template = "Bump version to {new_version}"
tag_template = "v{new_version}.dev0"
[[tool.tbump.file]]
src = "CMakeLists.txt"
search = "VERSION {current_version}"
[[tool.tbump.file]]
src = "python_bindings/CMakeLists.txt"
search = "VERSION {current_version}"
[[tool.tbump.file]]
src = "pyproject.toml"
search = 'version = "{current_version}"'
[[tool.tbump.file]]
src = "vcpkg.json"
[[tool.tbump.file]]
src = "apps/vcpkg.json"
[[tool.tbump.file]]
src = "tools/halidoscope/src-tauri/Cargo.toml"
search = 'version = "{current_version}"'
[[tool.tbump.file]]
src = "tools/halidoscope/src-tauri/tauri.conf.json"
search = '"version": "{current_version}"'
[[tool.tbump.file]]
src = "tools/halidoscope/package.json"
search = '"version": "{current_version}"'
[[tool.tbump.file]]
src = "src/runtime/HalideRuntime.h"
version_template = "{major}"
search = "#define HALIDE_VERSION_MAJOR {current_version}"
[[tool.tbump.file]]
src = "src/runtime/HalideRuntime.h"
version_template = "{minor}"
search = "#define HALIDE_VERSION_MINOR {current_version}"
[[tool.tbump.file]]
src = "src/runtime/HalideRuntime.h"
version_template = "{patch}"
search = "#define HALIDE_VERSION_PATCH {current_version}"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "FURB", "PERF", "RUF", "SIM", "UP"]
ignore = ["UP045", "SIM108"]