From 9d2f1a4d41d1a392c8a90b64bb939d66ad908081 Mon Sep 17 00:00:00 2001 From: Tim Conley Date: Wed, 18 Feb 2026 12:01:21 -0800 Subject: [PATCH 1/5] Add linting to python run --- sdkbuild/python.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdkbuild/python.go b/sdkbuild/python.go index 7dc03296..136c35da 100644 --- a/sdkbuild/python.go +++ b/sdkbuild/python.go @@ -115,6 +115,10 @@ requires-python = "~=3.10" return nil, fmt.Errorf("failed installing: %w", err) } + if err := executeCommand("poe", "lint"); err != nil { + return nil, fmt.Errorf("failed linting: %w", err) + } + success = true return &PythonProgram{dir}, nil } From 0eadd03a0b7e96dce8c90768bc18111e008ce37f Mon Sep 17 00:00:00 2001 From: Tim Conley Date: Thu, 19 Feb 2026 10:12:20 -0800 Subject: [PATCH 2/5] Add mypy install first --- sdkbuild/python.go | 9 ++++++--- uv.lock | 16 ++++++++-------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/sdkbuild/python.go b/sdkbuild/python.go index 136c35da..587d72e2 100644 --- a/sdkbuild/python.go +++ b/sdkbuild/python.go @@ -114,9 +114,12 @@ requires-python = "~=3.10" if err := executeCommand("uv", "sync"); err != nil { return nil, fmt.Errorf("failed installing: %w", err) } - - if err := executeCommand("poe", "lint"); err != nil { - return nil, fmt.Errorf("failed linting: %w", err) + // Install mypy for type checking + if err := executeCommand("uv", "add", "--dev", "mypy"); err != nil { + return nil, fmt.Errorf("failed installing mypy: %w", err) + } + if err := executeCommand("uv", "run", "mypy", "--explicit-package-bases", "--namespace-packages", "."); err != nil { + return nil, fmt.Errorf("failed type checking: %w", err) } success = true diff --git a/uv.lock b/uv.lock index d3ff5069..d2724b5b 100644 --- a/uv.lock +++ b/uv.lock @@ -17,7 +17,7 @@ dev = [ ] [package.metadata] -requires-dist = [{ name = "temporalio", specifier = ">=1.21.0,<2" }] +requires-dist = [{ name = "temporalio", specifier = ">=1.22.0,<2" }] [package.metadata.requires-dev] dev = [ @@ -128,7 +128,7 @@ wheels = [ [[package]] name = "temporalio" -version = "1.21.0" +version = "1.23.0" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "nexus-rpc" }, @@ -137,13 +137,13 @@ dependencies = [ { name = "types-protobuf" }, { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/61/b7/62d06b55f5ef628112e3c62423aa571d7fe3b6d625e7b495c94782eaaf98/temporalio-1.21.0.tar.gz", hash = "sha256:0c36891a29ebbdc437dd273df1784f37912ec7bbf9b4aeb0ec387940e34065a3", size = 1854373, upload-time = "2025-12-18T21:25:36.928Z" } +sdist = { url = "https://files.pythonhosted.org/packages/67/48/ba7413e2fab8dcd277b9df00bafa572da24e9ca32de2f38d428dc3a2825c/temporalio-1.23.0.tar.gz", hash = "sha256:72750494b00eb73ded9db76195e3a9b53ff548780f73d878ec3f807ee3191410", size = 1933051, upload-time = "2026-02-18T17:48:22.353Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/68/c4/fd713d238d0e1ee4168345217c4290ea245bcd657717088ddce2907313ec/temporalio-1.21.0-cp310-abi3-macosx_10_12_x86_64.whl", hash = "sha256:787e31f1cecd9adb76643bc43782876963ca601c793f032d17e7015b518cc5ed", size = 12032507, upload-time = "2025-12-18T21:25:21.189Z" }, - { url = "https://files.pythonhosted.org/packages/24/58/68f3ca32d7eb2484981ef9f275ed050667cf08ef4261fba69cae8b3d5727/temporalio-1.21.0-cp310-abi3-macosx_11_0_arm64.whl", hash = "sha256:32d1d6e91d0c545122052086fe03cc4f87f27c685585d43c9f7e9a4ee6f7d41c", size = 11558973, upload-time = "2025-12-18T21:25:24.685Z" }, - { url = "https://files.pythonhosted.org/packages/93/c6/c3dcf0bef4c7993e96297ac48fc2436aa313cdd1cbac61defb2475f0e19f/temporalio-1.21.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:464e3ad200cfc9ffcf40aa0ac30faf40d67205ab4bf81625e973ec796102991f", size = 11810058, upload-time = "2025-12-18T21:25:28.205Z" }, - { url = "https://files.pythonhosted.org/packages/96/89/0437b47e6901c2c6b0d03feb4d738afdab1a0d333b9ec934c0fed2c6cf37/temporalio-1.21.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b3478fbce8d5a9c39178057dad115fdfed817afd5e6cea26919ac47afed05b88", size = 12144682, upload-time = "2025-12-18T21:25:32.087Z" }, - { url = "https://files.pythonhosted.org/packages/95/6d/a87ddf1ed31a0df752748defe96d992ce85b11b80f5a56acb8d4509be209/temporalio-1.21.0-cp310-abi3-win_amd64.whl", hash = "sha256:f053d3b7991588b46c28bc90ca25b0d74b4aaf5e27927320c03962f72738553b", size = 12692318, upload-time = "2025-12-18T21:25:34.99Z" }, + { url = "https://files.pythonhosted.org/packages/6f/71/26c8f21dca9092201b3b9cb7aff42460b4864b5999aa4c6a4343ac66f1fd/temporalio-1.23.0-cp310-abi3-macosx_10_12_x86_64.whl", hash = "sha256:6b69ac8d75f2d90e66f4edce4316f6a33badc4a30b22efc50e9eddaa9acdc216", size = 12311037, upload-time = "2026-02-18T17:47:47.628Z" }, + { url = "https://files.pythonhosted.org/packages/ec/47/43102816139f2d346680cb7cc1e53da5f6968355ac65b4d35d4edbfca896/temporalio-1.23.0-cp310-abi3-macosx_11_0_arm64.whl", hash = "sha256:1bbbb2f9c3cdd09451565163f6d741e51f109694c49435d475fdfa42b597219d", size = 11821906, upload-time = "2026-02-18T17:47:55.314Z" }, + { url = "https://files.pythonhosted.org/packages/00/b0/899ff28464a0e17adf17476bdfac8faf4ea41870358ff2d14737e43f9e66/temporalio-1.23.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cf6570e0ee696f99a38d855da4441a890c7187357c16505ed458ac9ef274ed70", size = 12063601, upload-time = "2026-02-18T17:48:03.994Z" }, + { url = "https://files.pythonhosted.org/packages/ed/17/b8c6d2ec3e113c6a788322513a5ff635bdd54b3791d092ed0e273467748a/temporalio-1.23.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b82d6cca54c9f376b50e941dd10d12f7fe5b692a314fb087be72cd2898646a79", size = 12394579, upload-time = "2026-02-18T17:48:11.65Z" }, + { url = "https://files.pythonhosted.org/packages/b4/b7/f9ef7fd5ee65aef7d59ab1e95cb1b45df2fe49c17e3aa4d650ae3322f015/temporalio-1.23.0-cp310-abi3-win_amd64.whl", hash = "sha256:43c3b99a46dd329761a256f3855710c4a5b322afc879785e468bdd0b94faace6", size = 12834494, upload-time = "2026-02-18T17:48:19.071Z" }, ] [[package]] From 89e49377498d8deef78f226ec2d90f8b6edd6d8d Mon Sep 17 00:00:00 2001 From: Tim Conley Date: Thu, 19 Feb 2026 10:17:54 -0800 Subject: [PATCH 3/5] Change directory --- sdkbuild/python.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdkbuild/python.go b/sdkbuild/python.go index 587d72e2..3c888c42 100644 --- a/sdkbuild/python.go +++ b/sdkbuild/python.go @@ -118,7 +118,7 @@ requires-python = "~=3.10" if err := executeCommand("uv", "add", "--dev", "mypy"); err != nil { return nil, fmt.Errorf("failed installing mypy: %w", err) } - if err := executeCommand("uv", "run", "mypy", "--explicit-package-bases", "--namespace-packages", "."); err != nil { + if err := executeCommand("uv", "run", "mypy", "--explicit-package-bases", "--namespace-packages", dir); err != nil { return nil, fmt.Errorf("failed type checking: %w", err) } From f13188946f756ecbd90580bb18f477efbea6df29 Mon Sep 17 00:00:00 2001 From: Tim Conley Date: Thu, 19 Feb 2026 10:25:09 -0800 Subject: [PATCH 4/5] Change directory --- sdkbuild/python.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdkbuild/python.go b/sdkbuild/python.go index 3c888c42..877cfa3b 100644 --- a/sdkbuild/python.go +++ b/sdkbuild/python.go @@ -118,7 +118,7 @@ requires-python = "~=3.10" if err := executeCommand("uv", "add", "--dev", "mypy"); err != nil { return nil, fmt.Errorf("failed installing mypy: %w", err) } - if err := executeCommand("uv", "run", "mypy", "--explicit-package-bases", "--namespace-packages", dir); err != nil { + if err := executeCommand("uv", "run", "mypy", "--explicit-package-bases", "--namespace-packages", "../"); err != nil { return nil, fmt.Errorf("failed type checking: %w", err) } From 5d0f428d0b976822f6b5ea5187fc3b65312f5eac Mon Sep 17 00:00:00 2001 From: Tim Conley Date: Thu, 19 Feb 2026 10:33:36 -0800 Subject: [PATCH 5/5] Remove namespace option --- sdkbuild/python.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdkbuild/python.go b/sdkbuild/python.go index 877cfa3b..12496834 100644 --- a/sdkbuild/python.go +++ b/sdkbuild/python.go @@ -118,7 +118,7 @@ requires-python = "~=3.10" if err := executeCommand("uv", "add", "--dev", "mypy"); err != nil { return nil, fmt.Errorf("failed installing mypy: %w", err) } - if err := executeCommand("uv", "run", "mypy", "--explicit-package-bases", "--namespace-packages", "../"); err != nil { + if err := executeCommand("uv", "run", "mypy", "--explicit-package-bases", "../"); err != nil { return nil, fmt.Errorf("failed type checking: %w", err) }