Skip to content

v0.5.3: Python runtime fixes and Go 1.25

Choose a tag to compare

@DABH DABH released this 03 Oct 05:31
· 14 commits to main since this release
5bdb58b

Runtime fixes from the post-launch review. English output is unchanged; catalogs need no migration.

Python runtime

  • Fails open when the terminal or pipe can't encode a translation (a cp1252 stdout on Windows, for one): output stays English instead of raising UnicodeEncodeError; LOCALIZER_DEBUG=1 says why, and PYTHONUTF8=1 allows it.
  • localize() no longer imports Rich and Typer's rendering helpers up front: hooks attach the moment the framework imports those modules, so startup drops from about 55 ms to about 5 ms on the example app.
  • rich-click commands and groups are localized like Click's.
  • py.typed ships in the wheel; the dump file is created exclusively and skipped for root or setuid processes; the macOS preferences file is read only when it is a regular file, in binary mode on every platform.

Go runtime

  • The module now requires Go 1.25 and takes cobra 1.10.2, pflag 1.0.10, x/text 0.41.0 and x/sys 0.47.0.

Repository

  • Dependabot keeps the Go, Python, site and Actions dependencies current; CI tests the minimum Go version; releases need the maintainer's approval before publishing to PyPI.