Skip to content

Stability and versioning

From 1.0.0, microbook follows Semantic Versioning: a patch release fixes bugs, a minor release adds features, and only a major release removes or changes public API. Until 1.0.0, a minor release may break the API, and every break is listed in the changelog with what to use instead.

The public API is every name in __all__ of microbook, microbook.sim, microbook.stylized, microbook.replay and microbook.rl, together with the documented parameters, attributes and return values of those names. Nothing else is public:

  • Import from the packages above, not from submodules such as microbook.sim.agents. The submodule layout can change in any release.
  • Names starting with an underscore are internal.
  • The text formatting of reports and tables (format_table, the examples' output) can change in any release.

tests/test_public_api.py pins the public names, so an accidental change fails CI.

Deprecation. A public name that is renamed or replaced keeps working, with a DeprecationWarning that names its replacement, for at least one minor release, and is removed only in the next major release. The changelog lists every deprecation.

Reproducibility. A given version, seed and configuration produces identical fills on every supported Python, with or without the compiled build. Golden digests in tests/test_sim_determinism.py check this in CI. A release that changes seeded output (a recalibration or a bug fix) says so in the changelog. Simulated numbers from different minor versions are therefore not guaranteed to match.

Python versions. The supported CPython versions are the ones tested in CI and listed in the package classifiers. Support for a version is dropped only in a minor release, with a changelog note.