From: Mike Bayer Date: Sat, 27 Jun 2026 20:20:17 +0000 (-0400) Subject: set PYTHONUTF8=1 for attestation step to fix encoding on Windows X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fmain;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git 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 --- 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/*