From d59159ca08cdf661f97d19d2966071a1b1d3df80 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 27 Jun 2026 16:20:17 -0400 Subject: [PATCH] set PYTHONUTF8=1 for attestation step to fix encoding on Windows pypi_attestations sign writes attestation JSON files using the Windows default encoding (CP1252) rather than UTF-8, causing twine to fail with a UnicodeDecodeError when reading them back. PYTHONUTF8=1 forces UTF-8 for all file I/O on Windows. Change-Id: I0eb7c4fae80eee52a81ed7106c1af699ebf79e21 --- .github/workflows/create-wheels.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/create-wheels.yaml b/.github/workflows/create-wheels.yaml index 87783b0409..28050411b3 100644 --- a/.github/workflows/create-wheels.yaml +++ b/.github/workflows/create-wheels.yaml @@ -132,6 +132,8 @@ jobs: id: attestations continue-on-error: true shell: bash + env: + PYTHONUTF8: "1" run: | python -m pip install pypi-attestations python -m pypi_attestations sign ./wheelhouse/* -- 2.47.3