fix(sdk): single-source every package version; patch-bump the two changed pkgs

Same drift as the CLI, in all three packages: a hardcoded __version__ that no
longer matched pyproject.

  hanzo_iam/__init__.py  1.1.1  vs pyproject 1.30.0   (29 minor versions apart)
  hanzo_cli/__init__.py  0.1.0  vs pyproject 0.2.2

The hanzo_cli one was load-bearing: click's version_option reads it, so it is
the reason `hanzo --version` answered "0.1.0" — a release that never existed.
All three now resolve from the installed distribution, so there is one answer.

Patch bumps for the two packages changed in 205f1c03 (never a lazy major):
  hanzo-cli  0.2.2 -> 0.2.3   entry point removed, __main__ added, PKCE, token path
  hanzo-iam  1.30.0 -> 1.30.1 endpoint properties on the exported IAMConfig

Verified on a clean venv: __version__ == importlib.metadata.version for all
three, `hanzo --version` 0.4.4, `python -m hanzo_cli --version` 0.2.3, 58
commands. hanzo-iam 19/19; hanzo-cli's failures are unchanged live-service auth.

Co-authored-by: Hanzo Dev <dev@hanzo.ai>
This commit is contained in:
Zach Kelling
2026-07-26 14:54:28 -07:00
co-authored by hanzo-dev
parent 205f1c0347
commit 4a713aebc4
4 changed files with 19 additions and 4 deletions
+9 -1
View File
@@ -1,3 +1,11 @@
"""Hanzo CLI — unified command-line interface for the Hanzo platform."""
__version__ = "0.1.0"
from importlib.metadata import PackageNotFoundError, version as _version
try:
# Single-sourced from the installed distribution. This said "0.1.0" while
# pyproject said 0.2.2, and click's version_option read THIS — which is why
# `hanzo --version` reported a release that never existed.
__version__ = _version("hanzo-cli")
except PackageNotFoundError: # source tree, not installed
__version__ = "0.0.0+dev"
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "hanzo-cli"
version = "0.2.2"
version = "0.2.3"
description = "Hanzo unified CLI — IAM, KMS, PaaS, S3, Deploy"
readme = "README.md"
license = { text = "MIT" }
+8 -1
View File
@@ -12,7 +12,14 @@ from hanzo_iam.models import (
UserInfo,
)
__version__ = "1.1.1"
from importlib.metadata import PackageNotFoundError, version as _version
try:
# Single-sourced from the installed distribution. This said "1.1.1" while
# pyproject said 1.30.0 — 29 minor versions of drift.
__version__ = _version("hanzo-iam")
except PackageNotFoundError: # source tree, not installed
__version__ = "0.0.0+dev"
__all__ = [
# Clients
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "hanzo-iam"
version = "1.30.0"
version = "1.30.1"
description = "Hanzo IAM SDK - Identity and Access Management for Python"
readme = "README.md"
license = { text = "MIT" }