From 8c6a54256e8bd225990c29332ae374b407176ca6 Mon Sep 17 00:00:00 2001 From: Saksham Goyal Date: Wed, 22 Jul 2026 18:44:18 +0530 Subject: [PATCH 1/2] fix: exclude sdk-core gitfile from wheels --- pyproject.toml | 2 +- tests/test_packaging.py | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 tests/test_packaging.py diff --git a/pyproject.toml b/pyproject.toml index 0e47787ef..ba0abfc3d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -261,7 +261,7 @@ manifest-path = "temporalio/bridge/Cargo.toml" module-name = "temporalio.bridge.temporal_sdk_bridge" python-packages = ["temporalio"] include = ["LICENSE"] -exclude = ["temporalio/bridge/target/**/*"] +exclude = ["temporalio/bridge/target/**/*", "temporalio/bridge/sdk-core/.git"] [tool.uv] # Prevent uv commands from building the package by default diff --git a/tests/test_packaging.py b/tests/test_packaging.py new file mode 100644 index 000000000..957d55849 --- /dev/null +++ b/tests/test_packaging.py @@ -0,0 +1,11 @@ +"""Packaging configuration regression tests.""" + +from pathlib import Path +import tomllib + + +def test_maturin_excludes_sdk_core_gitfile() -> None: + """Built wheels must not install the sdk-core submodule's gitfile.""" + project = tomllib.loads(Path("pyproject.toml").read_text()) + + assert "temporalio/bridge/sdk-core/.git" in project["tool"]["maturin"]["exclude"] From 1398d79a8acf69e2b25d65242e7f24336c414139 Mon Sep 17 00:00:00 2001 From: Saksham Goyal Date: Wed, 22 Jul 2026 21:35:17 +0530 Subject: [PATCH 2/2] test: remove ineffective packaging config assertion --- tests/test_packaging.py | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 tests/test_packaging.py diff --git a/tests/test_packaging.py b/tests/test_packaging.py deleted file mode 100644 index 957d55849..000000000 --- a/tests/test_packaging.py +++ /dev/null @@ -1,11 +0,0 @@ -"""Packaging configuration regression tests.""" - -from pathlib import Path -import tomllib - - -def test_maturin_excludes_sdk_core_gitfile() -> None: - """Built wheels must not install the sdk-core submodule's gitfile.""" - project = tomllib.loads(Path("pyproject.toml").read_text()) - - assert "temporalio/bridge/sdk-core/.git" in project["tool"]["maturin"]["exclude"]