repos ¤
Manage repositories.
Classes:
-
RepositoryCache
–A cache for local clones of configured repositories.
-
RepositoryConfig
–Repositories configuration.
RepositoryCache ¤
A cache for local clones of configured repositories.
Parameters:
-
cache_dir
(str | Path
, default:DEFAULT_REPO_DIR
) –The directory in which to clone the repositories.
Methods:
-
build
–Build distributions.
-
checkout
–Checkout a ref.
-
checkout_origin_head
–Checkout origin's HEAD again.
-
clone
–Clone a repository.
-
exists
–Check if a repository already exists.
-
latest_tag
–Get the latest Git tag.
-
pull
–Pull latest changes.
-
remove
–Remove a repository from the cache.
-
remove_dist
–Remove the
dist
folder of a repository.
RepositoryConfig ¤
Repositories configuration.
Parameters:
Methods:
-
add_repositories
–Add the given repositories to the configuration file.
-
get_repositories
–Get configured repositories.
-
remove_repositories
–Remove the given repositories from the configuration file.
-
save_repositories
–Save the given repositories into the configuration file.