Skip to content

Commit 59e4d40

Browse files
committed
Partial revert
1 parent 3be7fa3 commit 59e4d40

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

pyproject.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,25 @@ exclude = [
219219
[tool.ruff]
220220
target-version = "py39"
221221

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+
222241
[build-system]
223242
build-backend = "poetry.core.masonry.api"
224243
requires = ["poetry-core>=1.0.0", "setuptools", "wheel", "setuptools-rust"]

0 commit comments

Comments
 (0)