Skip to content

v0.5.3 — PyPI publish fix (twine direct + BOM strip)

Choose a tag to compare

@activeing123 activeing123 released this 22 Aug 07:59
· 246 commits to main since this release

What's Fixed

PyPI Publish Workflow — BOM Corruption Fix

  • Root cause: GitHub Secret PYPI_API_TOKEN gets a BOM character (\ufeff) injected when passed through the pypa/gh-action-pypi-publish Docker container, causing UnicodeEncodeError: 'latin-1' codec can't encode character '\ufeff'.
  • Fix: Replaced the Docker-based pypa/gh-action-pypi-publish action with direct twine upload + Python BOM stripping workaround.
  • The workflow now:
    1. Strips BOM from the token if present
    2. Verifies token starts with pypi-
    3. Uses twine upload directly (no Docker container)

Other Changes

  • Version bumped from 0.5.2 → 0.5.3
  • Removed stale # -*- coding: utf-8 -*- from source files
  • Trailing whitespace cleanup in output.py

Full Changelog: v0.5.2...v0.5.3