From d55352c82d5e81b1c588f477eb898b2cc1250ef3 Mon Sep 17 00:00:00 2001 From: Andy Staples Date: Wed, 8 Jul 2026 17:33:18 -0600 Subject: [PATCH] Fix ESRP rejection by upgrading setuptools for PEP 625 sdist naming The build agents use the setuptools bundled with the Python 3.10 venv (65.5.0), which emits legacy hyphenated sdist filenames (azure-functions-durable-*.tar.gz). ESRP requires the PEP 625 normalized underscore form (azure_functions_durable-*.tar.gz), which setuptools >= 69.3.0 produces. Pin setuptools>=69.3.0 before building in both pipelines. --- azure-pipelines.yml | 6 +++++- eng/templates/build.yml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 95cb2ad..6fb919d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -37,7 +37,11 @@ stages: - script: | python -m pip install --upgrade pip pip install -r requirements.txt - pip install wheel + # Ensure setuptools >= 69.3.0 so the sdist filename follows the + # PEP 625 normalized form (azure_functions_durable-*.tar.gz). + # Older setuptools emits the legacy hyphenated name, which ESRP + # rejects. + pip install "setuptools>=69.3.0" wheel # Pin an older azure-functions (< 1.26.0) that predates the # centralized df_dumps / df_loads serializers so this job exercises # the legacy serialization fallback in df_serialization. The diff --git a/eng/templates/build.yml b/eng/templates/build.yml index 22ebd74..49ca57c 100644 --- a/eng/templates/build.yml +++ b/eng/templates/build.yml @@ -16,7 +16,11 @@ jobs: - script: | python -m pip install --upgrade pip pip install -r requirements.txt - pip install wheel + # Ensure setuptools >= 69.3.0 so the sdist filename follows the + # PEP 625 normalized form (azure_functions_durable-*.tar.gz). + # Older setuptools emits the legacy hyphenated name, which ESRP + # rejects. + pip install "setuptools>=69.3.0" wheel # Pin an older azure-functions (< 1.26.0) that predates the # centralized df_dumps / df_loads serializers so this job # exercises the legacy serialization fallback in df_serialization.