@@ -45,28 +45,12 @@ dev = [
45
45
" pytest-asyncio>=0.21,<0.22" ,
46
46
" pytest-timeout~=2.2" ,
47
47
" ruff>=0.5.0,<0.6" ,
48
- " setuptools>=65.0.0" ,
49
- " setuptools-rust>=1.3.0" ,
50
48
" toml>=0.10.2,<0.11" ,
51
49
" twine>=4.0.1,<5" ,
52
50
" wheel>=0.42.0,<0.43" ,
53
51
" ruff>=0.5.0,<0.6" ,
54
52
]
55
53
56
- [tool .hatch .build .targets .sdist ]
57
- include = [
58
- " temporalio/api/**/*" ,
59
- " temporalio/bridge/proto/**/*" ,
60
- ]
61
- exclude = [" temporalio/bridge/**/target" ]
62
-
63
- [tool .hatch .build .targets .wheel ]
64
- include = [
65
- " temporalio/api/**/*" ,
66
- " temporalio/bridge/proto/**/*" ,
67
- ]
68
- exclude = [" temporalio/bridge/**/target" ]
69
-
70
54
[tool .poe .tasks ]
71
55
build-develop = " python scripts/setup_bridge.py develop"
72
56
build-develop-with-release = { cmd = " python scripts/setup_bridge.py develop" , env = { TEMPORAL_BUILD_RELEASE = " 1" }}
@@ -219,28 +203,12 @@ exclude = [
219
203
[tool .ruff ]
220
204
target-version = " py39"
221
205
222
-
223
- # We need to include proto source that is otherwise excluded via .gitignore.
224
- # We have chosen to keep all source including Rust source in precompiled wheels
225
- # for easy viewing. It is also complicated to exclude certain pieces for wheels
226
- # with Poetry (see https://github.com/python-poetry/poetry/issues/3380).
227
- include = [" temporalio/api/**/*" , " temporalio/bridge/proto/**/*" ]
228
- exclude = [" temporalio/bridge/**/target" ]
229
-
230
- # Known undocumented API for hooking into setup. Unfortunately Poetry does not
231
- # support this script in a subdirectory like scripts/.
232
- [tool .poetry .build ]
233
- script = " build.py"
234
- # In https://github.com/python-poetry/poetry-core/pull/318, Poetry stopped using
235
- # a setup file, but we are using setuptools Rust manually in our build.py which
236
- # needs a setup file.
237
- # TODO(cretz): Find a way to not require a setup file since that is going away
238
- # at some point in Poetry. Revisit Maturin or find some other approach.
239
- generate-setup-file = true
240
-
241
206
[build-system ]
242
- build-backend = " poetry.core.masonry.api"
243
- requires = [" poetry-core>=1.0.0" , " setuptools" , " wheel" , " setuptools-rust" ]
207
+ requires = [" maturin>=1.0,<2.0" ]
208
+ build-backend = " maturin"
209
+
210
+ [tool .maturin ]
211
+ manifest-path = " temporalio/bridge/Cargo.toml"
244
212
245
213
[tool .uv ]
246
214
# Prevent uv commands from building the package by default
0 commit comments