Skip to content

v0.17.1 — import works on Python 3.10 again

Choose a tag to compare

@spranab spranab released this 25 Aug 22:58
· 6 commits to main since this release
8a4c870

Patch release for the 0.17 line.

Fixed

  • import yantrikdb failed on Python 3.10src/yantrikdb/organize.py imported datetime.UTC (a 3.11+ name) while the package declares requires-python >= 3.10; the module is imported eagerly, so the whole package was unimportable on 3.10. Present since 0.16.0. Now timezone.utc; behaviour identical. (#201)
  • The same 3.11-only import in benchmarks/amb/build_topic_card_contexts.py; packs/build.py and packs/evaluate.py now guard tomllib with a tomli fallback and a clear message.

Guarded against recurrence

  • CI runs the test suite on the oldest supported Python (3.10) on Linux, alongside the existing platform legs.
  • tests/test_python_floor_compat.py scans every tracked Python file for 3.11+-only names (datetime.UTC, enum.StrEnum, tomllib, typing.Self, ExceptionGroup/except*) and fails on any unguarded use — and tests its own detectors.

No engine behaviour or schema changes vs 0.17.0 (schema stays v50).