httk.core.docs.release¶
Release-tag checks, lock validation, and deterministic documentation URLs.
When docs/versioning.toml is present, release checks assume each internal
repository’s Sphinx project name equals its configured documentation slug and
validate the corresponding committed docs/_inventories/<slug>.inv header.
Exceptions¶
Raised when a release tag, project version, or documentation lock is invalid. |
Classes¶
Summarize a successful release preflight. |
Functions¶
|
Validate a release tag against |
|
Derive exact release or |
Module Contents¶
- exception httk.core.docs.release.ReleaseError[source]¶
Bases:
RuntimeErrorRaised when a release tag, project version, or documentation lock is invalid.
- class httk.core.docs.release.ReleaseCheck[source]¶
Summarize a successful release preflight.
- Parameters:
tag – Release tag validated by the preflight.
version – Parsed release version.
lock_path – Documentation lock checked by the preflight.
- lock_path: pathlib.Path[source]¶
- httk.core.docs.release.check_release(project_dir, tag)[source]¶
Validate a release tag against
pyproject.tomland its docs lock.- Parameters:
project_dir (str | pathlib.Path) – Project directory containing release metadata.
tag (str) – Release tag to validate.
- Returns:
Summary of the successful release preflight.
- Raises:
ReleaseError – If project metadata, the release tag, lock, or inventories are invalid.
- Return type:
- httk.core.docs.release.dependency_doc_targets(config, pins, base_url, channel)[source]¶
Derive exact release or
dev/maininventory URLs for internal dependencies.- Parameters:
config (httk.core.docs.config.VersioningConfig) – Documentation-site configuration declaring the dependencies.
pins (collections.abc.Mapping[str, str]) – Locked distribution versions used for release URLs.
base_url (str) – Base URL containing the dependency documentation sites.
channel (str) – Documentation channel, either
releaseordev.
- Returns:
Mapping of dependency distributions to inventory base URLs.
- Raises:
ReleaseError – If a release dependency has no valid locked version.
ValueError – If channel or a locked dependency version is invalid.
- Return type: