@@ -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 = " uv run python scripts/setup_bridge.py develop"
72
56
build-develop-with-release = { cmd = " uv run python scripts/setup_bridge.py develop" , env = { TEMPORAL_BUILD_RELEASE = " 1" }}
@@ -203,28 +187,12 @@ exclude = [
203
187
[tool .ruff ]
204
188
target-version = " py39"
205
189
206
-
207
- # We need to include proto source that is otherwise excluded via .gitignore.
208
- # We have chosen to keep all source including Rust source in precompiled wheels
209
- # for easy viewing. It is also complicated to exclude certain pieces for wheels
210
- # with Poetry (see https://github.com/python-poetry/poetry/issues/3380).
211
- include = [" temporalio/api/**/*" , " temporalio/bridge/proto/**/*" ]
212
- exclude = [" temporalio/bridge/**/target" ]
213
-
214
- # Known undocumented API for hooking into setup. Unfortunately Poetry does not
215
- # support this script in a subdirectory like scripts/.
216
- [tool .poetry .build ]
217
- script = " build.py"
218
- # In https://github.com/python-poetry/poetry-core/pull/318, Poetry stopped using
219
- # a setup file, but we are using setuptools Rust manually in our build.py which
220
- # needs a setup file.
221
- # TODO(cretz): Find a way to not require a setup file since that is going away
222
- # at some point in Poetry. Revisit Maturin or find some other approach.
223
- generate-setup-file = true
224
-
225
190
[build-system ]
226
- build-backend = " poetry.core.masonry.api"
227
- requires = [" poetry-core>=1.0.0" , " setuptools" , " wheel" , " setuptools-rust" ]
191
+ requires = [" maturin>=1.0,<2.0" ]
192
+ build-backend = " maturin"
193
+
194
+ [tool .maturin ]
195
+ manifest-path = " temporalio/bridge/Cargo.toml"
228
196
229
197
[tool .uv ]
230
198
# Prevent uv commands from building the package by default
0 commit comments