File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,25 @@ exclude = [
219
219
[tool .ruff ]
220
220
target-version = " py39"
221
221
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
+
222
241
[build-system ]
223
242
build-backend = " poetry.core.masonry.api"
224
243
requires = [" poetry-core>=1.0.0" , " setuptools" , " wheel" , " setuptools-rust" ]
You can’t perform that action at this time.
0 commit comments