]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
set PYTHONUTF8=1 for attestation step to fix encoding on Windows main
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 27 Jun 2026 20:20:17 +0000 (16:20 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 27 Jun 2026 22:32:39 +0000 (18:32 -0400)
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

index 87783b04097cd8a7d0ccaa5a63f58f7d5fe550c2..28050411b3a58980daec26446eee495c6cdcae9e 100644 (file)
@@ -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/*