Skip to content

0.1.9

Choose a tag to compare

@astral-releases-bot astral-releases-bot released this 28 Oct 17:46
Immutable release. Only release title and notes can be modified.
e98b14f

Release Notes

Released on 2026-10-28.

Serc 0.1.9 expands source-encoding support and improves byte-for-byte
compatibility with CPython.

Enhancements

  • Compile source files encoded with Big5 or Windows-1252 using
    CPython-compatible codec aliases and strict decoding behavior
    (#2266; #2266)

Bug fixes

  • Produce CPython-compatible bytecode for additional real-world package sources
    (#2266; #2266)
  • Preserve CPython-compatible source positions and exception-table coverage when
    optimization copies, threads, or fuses bytecode (#1718;
    #1718)
  • Restore byte-for-byte compatibility with CPython 3.14.5 across the pinned
    compatibility corpus at all optimization levels (#1365;
    #1365)
  • Reject identifiers whose Unicode normalization produces True, False, or
    None, matching CPython 3.13–3.15 while preserving Python 3.12 behavior
    (#1371; #1371)
  • Reject oversized starred assignment targets and named sequence captures with
    CPython-compatible diagnostics (#1370;
    #1370)
  • Match CPython bytecode for sequence patterns that combine captures with
    trailing wildcards (#1372;
    #1372)
  • Parse bare raise statements and uses of the match soft keyword after
    semicolons consistently with CPython (#2266;
    #2266)
  • Preserve exception-table coverage when yield from appears in an
    exception-handler type expression (#1376;
    #1376)
  • Emit CPython-compatible RESUME exception depth for explicit yield
    expressions in exception-handler type expressions and except* bodies
    (#1375; #1375)

Install serc 0.1.9

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://releases.astral.sh/github/serc/releases/download/0.1.9/serc-installer.sh | sh

Install prebuilt binaries via powershell script

powershell -ExecutionPolicy Bypass -c "irm https://releases.astral.sh/github/serc/releases/download/0.1.9/serc-installer.ps1 | iex"

Download serc 0.1.9

File Platform Checksum
serc-aarch64-apple-darwin.tar.gz Apple Silicon macOS checksum
serc-x86_64-apple-darwin.tar.gz Intel macOS checksum
serc-aarch64-pc-windows-msvc.zip ARM64 Windows checksum
serc-i686-pc-windows-msvc.zip x86 Windows checksum
serc-x86_64-pc-windows-msvc.zip x64 Windows checksum
serc-aarch64-unknown-linux-gnu.tar.gz ARM64 Linux checksum
serc-i686-unknown-linux-gnu.tar.gz x86 Linux checksum
serc-powerpc64le-unknown-linux-gnu.tar.gz PPC64LE Linux checksum
serc-riscv64gc-unknown-linux-gnu.tar.gz RISCV Linux checksum
serc-s390x-unknown-linux-gnu.tar.gz S390x Linux checksum
serc-x86_64-unknown-linux-gnu.tar.gz x64 Linux checksum
serc-armv7-unknown-linux-gnueabihf.tar.gz ARMv7 Linux checksum
serc-aarch64-unknown-linux-musl.tar.gz ARM64 MUSL Linux checksum
serc-i686-unknown-linux-musl.tar.gz x86 MUSL Linux checksum
serc-riscv64gc-unknown-linux-musl.tar.gz RISCV MUSL Linux checksum
serc-x86_64-unknown-linux-musl.tar.gz x64 MUSL Linux checksum
serc-arm-unknown-linux-musleabihf.tar.gz ARMv6 MUSL Linux (Hardfloat) checksum
serc-armv7-unknown-linux-musleabihf.tar.gz ARMv7 MUSL Linux checksum

Verifying GitHub Artifact Attestations

The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the GitHub CLI:

gh attestation verify <file-path of downloaded artifact> --repo astral-sh/serc

You can also download the attestation from GitHub and verify against that directly:

gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation>