local_git_commit_id

local_git_commit_id(local_install_basepath: Path, dist_mtime: datetime) VcsInfo | None[source]

Get git commit_id of locally installed package.

Parameters:
  • local_install_basepath (Path) – Basepath of the local installation.

  • dist_mtime (datetime) – Time the packaged distribution was modified. This is only important for none editable installations from source.

Returns:

(vcs_name, commit_id)

Return type:

Optional[VcsInfo]