Skip to content

Git dependency

git_dependency

An ExternalDependency subclass able to clone from git.

GitDependency

An ExternalDependency subclass able to clone from git.

Attributes:

Name Type Description
source str

url for git clone

version str

commit from git repo

url_creds_var str

shell_var name for credential updating. Optional

Tip

The attributes are what must be described in the ext_dep yaml file!

__init__

__init__(descriptor: dict) -> None

Inits a git dependency based off the provided descriptor.

__str__

__str__() -> str

Return a string representation.

fetch

fetch() -> None

Fetches the dependency using internal state from the init.

clean

clean() -> None

Removes the local clone of the repo.

verify

verify() -> bool

Verifies the clone was successful.

compute_published_path

compute_published_path() -> str

Override to include the repository name in the published path.