idiap_devtools.update_pins#

Functions

filter_python_packages(resolved_packages, ...)

Filters the list of packages to return only Python packages available on PyPI.

load_packages_from_conda_build_config(...[, ...])

rtype:

tuple[list[str], dict[str, str]]

update_pip_constraints_only(...)

rtype:

None

idiap_devtools.update_pins.load_packages_from_conda_build_config(conda_build_config, condarc_options, with_pins=False)[source]#
Return type:

tuple[list[str], dict[str, str]]

idiap_devtools.update_pins.filter_python_packages(resolved_packages, conda_to_python)[source]#

Filters the list of packages to return only Python packages available on PyPI.

This function will also perform name translation and de-duplication of package names when possible.

Parameters:

resolved_packages – list of tuples (package, version), returned by the mamba create --dry-run subprocess, for the packages we care about.

Returns:

List of of packages and versions available on PyPI

idiap_devtools.update_pins.update_pip_constraints_only(conda_config_path, pip_constraints_path, conda_to_python)[source]#
Return type:

None