update ¤
Logic for updating packages.
Functions:
-
update_packages–Update PyPI packages.
update_packages ¤
update_packages(
*,
conf_path: str | Path = DEFAULT_CONF_PATH,
repo_dir: str | Path = DEFAULT_REPO_DIR,
index_url: str = DEFAULT_INDEX_URL,
index_user: str = DEFAULT_INDEX_USER,
index_password: str = DEFAULT_INDEX_PASSWORD,
repos: Iterable[str] | None = None
) -> None
Update PyPI packages.
For each configured repository, pull latest contents, checkout latest tag, and if the corresponding version is not present on the index, build and upload distributions.
Parameters:
-
conf_path(str | Path, default:DEFAULT_CONF_PATH) –The path to the configuration file.
-
repo_dir(str | Path, default:DEFAULT_REPO_DIR) –The directory containing the repository clones.
-
index_url(str, default:DEFAULT_INDEX_URL) –The URL of the PyPI index to upload to.
-
index_user(str, default:DEFAULT_INDEX_USER) –The username for the index if required.
-
index_password(str, default:DEFAULT_INDEX_PASSWORD) –The password for the index if required.
-
repos(Iterable[str] | None, default:None) –Repositories to update. By default, all configured repositories are updated.