Simplify Python bindings and package builds

Read each input path through one opened stream, including gzip detection, and
use direct numeric converter lookup while preserving byte-order handling and
caller data. Read the package version from installed metadata and report range
errors consistently as ValueError.

Require the supplied Cargo.lock instead of generating it during builds, use
the standard sdist command, and update package checks and development guides.

Validation: 15 Python tests pass against source and the rebuilt installed
wheel; the source archive and platform wheel build successfully.
This commit is contained in:
Jan Petykiewicz 2026-11-16 20:44:56 -08:00
commit a723ba2265

View file

@ -20,7 +20,7 @@ provides the CLI. Neither installation discovers or depends on the other.
## Validate artifacts
The [package workflow](../.github/workflows/packages.yml) builds one source archive
The [package workflow](https://mpxd.net/code/jan/pheon/src/branch/master/.github/workflows/packages.yml) builds one source archive
and uses cibuildwheel to build and repair wheels for Linux and macOS x86-64/ARM64,
and Windows x86-64. Wheels use `py3-none` interpreter/ABI tags plus a platform tag.
Linux releases need an appropriate manylinux tag; unrepaired local `linux_*`