Skip to content

update ¤

Logic for updating packages.

Functions:

update_packages ¤

update_packages(
    *,
    conf_path: str | Path = DEFAULT_CONF_PATH,
    repo_dir: str | Path = DEFAULT_REPO_DIR,
    index_url: str = DEFAULT_INDEX_URL,
    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.

  • repos (Iterable[str] | None, default: None ) –

    Repositories to update. By default, all configured repositories are updated.