fontlab_instamix.vcs
vcs
Work out a checkout's version the way hatch-vcs and the legacy installer did.
Order: static [project].version; for dynamic versions the hatch-vcs
version file, then PKG-INFO, then git describe, then the configured
fallback version, then 0.0.0. Never runs sys.executable.
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
DEFAULT |
attribute | ||
GIT_TIMEOUT |
attribute | ||
fallback |
function | (pyproject: dict) -> str | None |
The configured hatch-vcs fallback version, if any. |
git_describe |
function | (root: Path, runner: Callable=subprocess.run) -> str | None |
Version from the newest <code>vX.Y.Z</code> tag, as the legacy installer computed it. |
pkg_info |
function | (root: Path) -> str | None |
Version in an sdist's PKG-INFO, if present. |
project_version |
function | (root: Path, pyproject: dict, runner: Callable=subprocess.run) -> str |
Return the version to record for the checkout at root. |
version_file |
function | (root: Path, pyproject: dict) -> str | None |
Version written by the hatch-vcs build hook, if the file exists. |