29 lines
983 B
Python
29 lines
983 B
Python
from __future__ import annotations
|
|||
|
|
|
||
|
|
from dataclasses import dataclass
|
||
|
|
|
||
|
|
|
||
|
|
@dataclass(frozen=True)
|
||
|
|
class ReleaseOptions:
|
||
|
|
"""
|
||
|
|
Args:
|
||
|
|
expect_tree: full tree sha HEAD must match after the pull, or None.
|
||
|
|
pyproject_path: pyproject.toml of the repository to release.
|
||
|
|
changelog_path: Markdown changelog to extend.
|
||
|
|
release_type: semver part to bump (major, minor, patch).
|
||
|
|
message: release message for the changelogs and the tag.
|
||
|
|
preview: only print what would change.
|
||
|
|
force: skip the interactive preview and the branch deletion prompt.
|
||
|
|
close: delete the current branch after the release.
|
||
|
|
retry: re-deploy the existing HEAD release instead of bumping.
|
||
|
|
"""
|
||
|
|
|
||
|
|
expect_tree: str | None
|
||
|
|
pyproject_path: str = "pyproject.toml"
|
||
|
|
changelog_path: str = "CHANGELOG.md"
|
||
|
|
release_type: str = "patch"
|
||
|
|
message: str | None = None
|
||
|
|
preview: bool = False
|
||
|
|
force: bool = False
|
||
|
|
close: bool = False
|
||
|
|
retry: bool = False
|