pkg_info#
Package information.
|
Get short form of commit hash. |
pkg_commit_hash#
- fury.pkg_info.pkg_commit_hash(pkg_path: str | None = None) tuple[str, str][source]#
Get short form of commit hash.
In this file is a variable called COMMIT_HASH. This contains a substitution pattern that may have been filled by the execution of
git archive.We get the commit hash from (in order of preference):
A substituted value in
archive_subst_hashA truncated commit hash value that is part of the local portion of the version
git’s output, if we are in a git repository
If all these fail, we return a not-found placeholder tuple
- Parameters:
pkg_path (str) – Directory containing package.
- Returns:
str – Where we got the hash from - description.
str – Short form of hash.