Public repository rule API re-exports
load("@rules_pycross//pycross:workspace.bzl", "lock_repo_model_pdm") lock_repo_model_pdm(project_file, lock_file, default, optional_groups, all_optional_groups, development_groups, all_development_groups, require_static_urls)
PARAMETERS
load("@rules_pycross//pycross:workspace.bzl", "lock_repo_model_poetry") lock_repo_model_poetry(project_file, lock_file, default, optional_groups, all_optional_groups)
PARAMETERS
Name | Description | Default Value |
---|---|---|
project_file | - |
none |
lock_file | - |
none |
default | - |
True |
optional_groups | - |
[] |
all_optional_groups | - |
False |
load("@rules_pycross//pycross:workspace.bzl", "lock_repo_model_uv") lock_repo_model_uv(project_file, lock_file, default, optional_groups, all_optional_groups, development_groups, all_development_groups, require_static_urls)
PARAMETERS
load("@rules_pycross//pycross:workspace.bzl", "pycross_lock_repo") pycross_lock_repo(name, lock_model, kwargs)
Create a repo containing packages described by an imported lock.
PARAMETERS
load("@rules_pycross//pycross:workspace.bzl", "pycross_register_for_python_toolchains") pycross_register_for_python_toolchains(name, python_toolchains_repo, platforms, glibc_version, musl_verison, macos_version)
Register target environments and toolchains for a given list of Python versions.
PARAMETERS
load("@rules_pycross//pycross:workspace.bzl", "pycross_lock_file_repo") pycross_lock_file_repo(name, lock_file, repo_mapping)
ATTRIBUTES
Name | Description | Type | Mandatory | Default |
---|---|---|---|---|
name | A unique name for this repository. | Name | required | |
lock_file | The generated bzl lock file. | Label | required | |
repo_mapping | In WORKSPACE context only: a dictionary from local repository name to global repository name. This allows controls over workspace dependency resolution for dependencies of this repository.For example, an entry "@foo": "@bar" declares that, for any time this repository depends on @foo (such as a dependency on @foo//some:target , it should actually resolve that dependency within globally-declared @bar (@bar//some:target ).This attribute is not supported in MODULE.bazel context (when invoking a repository rule inside a module extension's implementation function). |
Dictionary: String -> String | optional |