Skip to content

Commit fa99b11

Browse files
committed
Patch azure functions Python 3.13+ gRPC bindings
1 parent 1a85173 commit fa99b11

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/scripts/install_azure_functions_worker.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,29 @@ ${PIP} install pip-tools build invoke
3636
$( cd ${BUILD_DIR}/workers/ && ${PIPCOMPILE} -o ${BUILD_DIR}/requirements.txt )
3737
${PIP} install -r ${BUILD_DIR}/requirements.txt
3838

39+
# Patch proto generation script
40+
cd ${BUILD_DIR}/workers/tests && patch -p1 <<EOF
41+
*** test_setup.py Mon Dec 29 13:33:06 2025
42+
--- test_setup.cp Mon Dec 29 13:32:57 2025
43+
***************
44+
*** 37,43 ****
45+
WEBHOST_GITHUB_API = "https://api.github.com/repos/Azure/azure-functions-host"
46+
WEBHOST_GIT_REPO = "https://github.com/Azure/azure-functions-host/archive"
47+
WEBHOST_TAG_PREFIX = "v4."
48+
! WORKER_DIR = "azure_functions_worker"
49+
50+
51+
def get_webhost_version() -> str:
52+
--- 37,43 ----
53+
WEBHOST_GITHUB_API = "https://api.github.com/repos/Azure/azure-functions-host"
54+
WEBHOST_GIT_REPO = "https://github.com/Azure/azure-functions-host/archive"
55+
WEBHOST_TAG_PREFIX = "v4."
56+
! WORKER_DIR = "azure_functions_worker" if sys.version_info.minor < 13 else "proxy_worker"
57+
58+
59+
def get_webhost_version() -> str:
60+
EOF
61+
3962
# Build proto files into pb2 files (invoke handles fixing include paths for the protos)
4063
cd ${BUILD_DIR}/workers/tests && ${INVOKE} -c test_setup build-protos
4164

0 commit comments

Comments
 (0)