Skip to content

Update Python support, typing, and package publishing - #18

Merged
rhymiz merged 3 commits into
masterfrom
codex/update-python-tooling
Nov 14, 2026
Merged

rhymiz merged 3 commits into
masterfrom
codex/update-python-tooling

Conversation

@rhymiz

@rhymiz rhymiz commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

The package still used Pipenv, Black, mypy and legacy setup.py publishing, with CI and release jobs targeting older Python versions. Version 0.3.0 supports Python 3.11+ and uses Python 3.15.2 for development, with uv-managed dependencies and builds, Ruff linting/formatting, and ty checks.

Request JSON and response models now validate data at the boundary. Typed metadata, currency/status contracts and a py.typed marker preserve useful types for downstream consumers. Shop resources depend on an independent transport protocol, so annotations resolve at runtime without TYPE_CHECKING imports.

CI builds distributions once, tests the installed wheel and its exported types on Python 3.11–3.15, and makes the publishing workflow wait for those checks. Releases verify that the tag matches the package version and publish the same tested artifacts through uv and PyPI trusted publishing. The dynamic version file is included in uv's cache keys so version changes refresh installed metadata.

Validation:

  • All 66 tests passed against the installed wheel on Python 3.11.18, 3.12.16, 3.13.18, 3.14.10 and 3.15.2.
  • All 66 tests also passed after installing the source distribution on Python 3.11 and in the Linux development container on Python 3.15.2.
  • Ruff lint/format, ty, downstream type assertions and invalid-call checks, runtime annotation resolution, package builds, actionlint, and release-tag checks passed.
  • After the version bump, verified the 0.3.0 wheel/source metadata and py.typed marker, reran all 66 tests and downstream type checks on the installed wheel with Python 3.11, and verified that a version-file-only change refreshes cached metadata.

GitHub Actions passed the build and all five Python-version test jobs on the final commit e9e3df6 (run).

@rhymiz
rhymiz merged commit 9b91d08 into master Nov 14, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant