//python/private/pypi:whl_config_setting.bzl

A small function to create an alias for a whl distribution

whl_config_setting(version=None, target_platforms=None)

The bzl_packages value used by by the render_pkg_aliases function.

This contains the minimum amount of information required to generate correct aliases in a hub repository.

Args:
  • version(str | None) (default None)

    the version of the python toolchain that this whl alias is for. If not set, then non-version aware aliases will be constructed. This is mainly used for better error messages when there is no match found during a select.

  • target_platforms(list[str] | None) (default None)

    the list of target_platforms for this distribution.

Returns:

a struct with the validated and parsed values.