Problem
Package version metadata is inconsistent.
pyproject.toml:7 declares version 1.1.2, while src/haclient/__init__.py:68 exposes __version__ = "0.2.0".
Suggested Fix
Use one source of truth.
Options:
- Remove
__version__ and tell users to use importlib.metadata.version("haclient").
- Or configure Hatchling to read the version from
src/haclient/__init__.py.
Add a packaging test that asserts the imported version matches package metadata.
Rationale
Mismatched versions confuse users, bug reports, and release automation. This is low effort and should not be left wrong.
Problem
Package version metadata is inconsistent.
pyproject.toml:7declares version1.1.2, whilesrc/haclient/__init__.py:68exposes__version__ = "0.2.0".Suggested Fix
Use one source of truth.
Options:
__version__and tell users to useimportlib.metadata.version("haclient").src/haclient/__init__.py.Add a packaging test that asserts the imported version matches package metadata.
Rationale
Mismatched versions confuse users, bug reports, and release automation. This is low effort and should not be left wrong.