Home
last modified time | relevance | path

Searched full:rules_python (Results 1 – 25 of 413) sorted by relevance

12345678910>>...17

/external/bazelbuild-rules_python/tests/pip_hub_repository/render_pkg_aliases/
Drender_pkg_aliases_test.bzl78 rules_python = "rules_python",
97 "@@rules_python//python/config_settings:is_python_3.2.3": "@pypi_32_bar_baz//:pkg",
107 "@@rules_python//python/config_settings:is_python_3.2.3": "@pypi_32_bar_baz//:whl",
117 "@@rules_python//python/config_settings:is_python_3.2.3": "@pypi_32_bar_baz//:data",
127 … "@@rules_python//python/config_settings:is_python_3.2.3": "@pypi_32_bar_baz//:dist_info",
142 rules_python = "rules_python",
159 As matched by the `@rules_python//python/config_settings:is_python_<version>`
165 rules_python//python/config_settings:python_version
180 "@@rules_python//python/config_settings:is_python_3.1.3": "@pypi_31_bar_baz//:pkg",
181 "@@rules_python//python/config_settings:is_python_3.2.3": "@pypi_32_bar_baz//:pkg",
[all …]
/external/bazelbuild-rules_python/python/private/
Drender_pkg_aliases.bzl30 As matched by the `@{rules_python}//python/config_settings:is_python_<version>`
36 {rules_python}//python/config_settings:python_version
50 rules_python):
53 If the versions is passed, then the `rules_python` must be passed as well and
72 … condition = "@@{rules_python}//python/config_settings:is_python_{full_python_version}".format(
73 rules_python = rules_python,
104 def _render_common_aliases(repo_name, name, versions = None, default_version = None, rules_python =…
115 rules_python = rules_python,
137 rules_python = rules_python,
145 def render_pkg_aliases(*, repo_name, bzl_packages = None, whl_map = None, rules_python = None, defa…
[all …]
Dtoolchains_repo.bzl44 rules_python):
54 rules_python: rules_python label
60 constraint = "{rules_python}//python/config_settings:is_python_{python_version}".format(
61 rules_python = rules_python,
93 toolchain_type = "@rules_python//python/cc:toolchain_type",
122 rules_python = get_repository_name(rctx.attr._rules_python_workspace)
129 rules_python = rules_python,
158 load("@rules_python//python:versions.bzl", "PLATFORMS", "gen_python_config_settings")
185 load("{rules_python}//python/config_settings:transition.bzl", _py_binary = "py_binary", _py_test = …
186 load("{rules_python}//python:pip.bzl", _compile_pip_requirements = "compile_pip_requirements")
[all …]
/external/bazelbuild-rules_python/
DREADME.md11 Documentation for rules_python lives in the
12 [`docs/`](https://github.com/bazelbuild/rules_python/tree/main/docs)
23 Once migrated to rules_python, they may evolve at a different
37 The following two sections cover using `rules_python` with bzlmod and
44 The first step to using rules_python with bzlmod is to add the dependency to
49 # https://github.com/bazelbuild/rules_python/releases.
50 bazel_dep(name = "rules_python", version = "0.0.0")
56 load("@rules_python//python:py_binary.bzl", "py_binary")
68 `rules_python`. Note, however, the version used tracks the most recent Python
89 python = use_extension("@rules_python//python/extensions:python.bzl", "python")
[all …]
DBZLMOD_SUPPORT.md3 ## `rules_python` `bzlmod` support
12 …umber, and a basic example. The release page is located [here](/bazelbuild/rules_python/releases).
28 …ile_generation) demonstrates the use of `bzlmod` to configure `gazelle` support for `rules_python`.
37 Check ["issues"](/bazelbuild/rules_python/issues) for an up to date list.
56 the toolchains rules_python registers**.
59 [#691](https://github.com/bazelbuild/rules_python/issues/691), `rules_python`
DWORKSPACE15 workspace(name = "rules_python")
17 # Everything below this line is used only for developing rules_python. Users
62 # The rules_python gazelle extension has some third-party go dependencies
66 # See: https://github.com/bazelbuild/rules_python/blob/main/gazelle/README.md
74 # https://github.com/bazelbuild/rules_python/issues/1016.
76 load("@rules_python//python:pip.bzl", "pip_parse")
/external/bazelbuild-rules_python/.github/workflows/
Dcreate_archive_and_notes.sh22 PREFIX="rules_python-${TAG}"
23 ARCHIVE="rules_python-$TAG.tar.gz"
35 bazel_dep(name = "rules_python", version = "${TAG}")
37 pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
55 name = "rules_python",
58 …url = "https://github.com/bazelbuild/rules_python/releases/download/${TAG}/rules_python-${TAG}.tar…
61 load("@rules_python//python:repositories.bzl", "py_repositories")
76 …url = "https://github.com/bazelbuild/rules_python/releases/download/${TAG}/rules_python-${TAG}.tar…
79 # To compile the rules_python gazelle extension from source,
/external/bazelbuild-rules_python/python/pip_install/private/
Dsrcs.bzl1 """A generated file containing all source files used for `@rules_python//python/pip_install:pip_rep…
3 This file is auto-generated from the `@rules_python//python/pip_install/private:srcs_module.update`…
10 "@rules_python//python/pip_install/tools/dependency_resolver:__init__.py",
11 "@rules_python//python/pip_install/tools/dependency_resolver:dependency_resolver.py",
12 "@rules_python//python/pip_install/tools/wheel_installer:arguments.py",
13 "@rules_python//python/pip_install/tools/wheel_installer:namespace_pkgs.py",
14 "@rules_python//python/pip_install/tools/wheel_installer:wheel.py",
15 "@rules_python//python/pip_install/tools/wheel_installer:wheel_installer.py",
/external/bazelbuild-rules_python/python/
Dpip.bzl30 load("@rules_python//python:pip.bzl", "pip_install")
62 load("@rules_python//python:pip.bzl", "pip_parse")
126 See https://github.com/bazelbuild/rules_python/issues/608
135 See the example in rules_python/examples/pip_parse_vendored.
164 rules_python = rctx.attr._rules_python_workspace.workspace_name
199 load("@{rules_python}//python:pip.bzl", "whl_library_alias")
247 rules_python = rules_python,
263 rules_python = rctx.attr._rules_python_workspace.workspace_name
274 rules_python = rules_python,
283 rules_python,
[all …]
/external/bazelbuild-rules_python/tests/pip_repository_entry_points/
DWORKSPACE4 name = "rules_python",
8 load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
12 # This toolchain is explicitly 3.10 while `rules_python` is 3.9 to act as
20 load("@rules_python//python:pip.bzl", "pip_install", "pip_parse")
22 # For a more thorough example of `pip_parse`. See `@rules_python//examples/pip_parse`
34 # For a more thorough example of `pip_install`. See `@rules_python//examples/pip_install`
/external/bazelbuild-rules_python/examples/bzlmod_build_file_generation/
DMODULE.bazel12 # The following stanza defines the dependency rules_python.
15 # https://github.com/bazelbuild/rules_python/releases
16 bazel_dep(name = "rules_python", version = "0.0.0")
18 # The following loads rules_python from the file system.
21 module_name = "rules_python",
28 # https://github.com/bazelbuild/rules_python/releases
45 python = use_extension("@rules_python//python/extensions:python.bzl", "python")
62 pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
/external/bazelbuild-rules_testing/
DWORKSPACE.bazel39 name = "rules_python",
41 strip_prefix = "rules_python-0.20.0",
42 …url = "https://github.com/bazelbuild/rules_python/releases/download/0.20.0/rules_python-0.20.0.tar…
45 load("@rules_python//python:repositories.bzl", "python_register_toolchains")
49 # Available versions are listed in @rules_python//python:versions.bzl.
55 load("@rules_python//python:pip.bzl", "pip_parse")
/external/bazelbuild-rules_python/examples/build_file_generation/
DWORKSPACE58 # Remaining setup is for rules_python.
61 # Our example uses `local_repository` to point to the HEAD version of rules_python.
63 # See https://github.com/bazelbuild/rules_python/releases
65 name = "rules_python",
74 # Next we load the toolchain from rules_python.
75 load("@rules_python//python:repositories.bzl", "python_register_toolchains")
87 load("@rules_python//python:pip.bzl", "pip_parse")
116 # The rules_python gazelle extension has some third-party go dependencies
120 # See: https://github.com/bazelbuild/rules_python/blob/main/gazelle/README.md
/external/bazelbuild-rules_python/examples/pip_repository_annotations/
DWORKSPACE4 name = "rules_python",
8 load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
18 load("@rules_python//python:pip.bzl", "package_annotation", "pip_install", "pip_parse")
22 # docs at @rules_python//docs:pip.md`.
53 # For a more thorough example of `pip_parse`. See `@rules_python//examples/pip_parse`
65 # For a more thorough example of `pip_install`. See `@rules_python//examples/pip_install`
DBUILD.bazel2 load("@rules_python//python:defs.bzl", "py_test")
3 load("@rules_python//python:pip.bzl", "compile_pip_requirements")
27 "@rules_python//python/runfiles",
42 "@rules_python//python/runfiles",
/external/pigweed/pw_toolchain_bazel/
DMODULE.bazel.lock209 "rules_python": "rules_python@0.4.0",
417 "rules_python@0.4.0": {
418 "name": "rules_python",
420 "key": "rules_python@0.4.0",
421 "repoName": "rules_python",
428 "extensionBzlFile": "@rules_python//bzlmod:extensions.bzl",
430 "usingModule": "rules_python@0.4.0",
432 "file": "https://bcr.bazel.build/modules/rules_python/0.4.0/MODULE.bazel",
458 "name": "rules_python~0.4.0",
460 … "https://github.com/bazelbuild/rules_python/releases/download/0.4.0/rules_python-0.4.0.tar.gz"
[all …]
/external/bazelbuild-rules_python/examples/bzlmod/
DMODULE.bazel8 bazel_dep(name = "rules_python", version = "0.0.0")
10 module_name = "rules_python",
16 python = use_extension("@rules_python//python/extensions:python.bzl", "python")
40 # This extension allows a user to create modifications to how rules_python
43 # See @rules_python//python/extensions:whl_mods.bzl attributes for more information
47 pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
118 # yet support entry points; see https://github.com/bazelbuild/rules_python/issues/1262
/external/bazelbuild-rules_python/examples/bzlmod/other_module/
DMODULE.bazel5 # This module is using the same version of rules_python
7 bazel_dep(name = "rules_python", version = "")
19 # module_name = "rules_python",
27 python = use_extension("@rules_python//python/extensions:python.bzl", "python")
47 pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
/external/grpc-grpc/bazel/
Dgrpc_python_deps.bzl22 if "rules_python" not in native.existing_rules():
24 name = "rules_python",
26 strip_prefix = "rules_python-0.26.0",
27 …url = "https://github.com/bazelbuild/rules_python/releases/download/0.26.0/rules_python-0.26.0.tar…
/external/bazelbuild-rules_python/tools/bazel_integration_test/
Dtest_runner.py26 from rules_python.python.runfiles import runfiles
66 "--override_repository=rules_python=%s/rules_python"
76 # the rest of rules_python.
79 "--override_module=rules_python=%s/rules_python"
/external/bazelbuild-rules_python/examples/wheel/
Dwheel_test.py28 "rules_python",
48 "rules_python",
70 "rules_python",
159 "rules_python",
197 "rules_python",
229 "rules_python",
260 "rules_python",
291 "rules_python",
326 "rules_python",
363 "rules_python",
[all …]
/external/bazelbuild-rules_python/tests/compile_pip_requirements_test_from_external_workspace/
DWORKSPACE2 name = "rules_python",
6 load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
10 load("@rules_python//python/pip_install:repositories.bzl", "pip_install_dependencies")
20 load("@rules_python//python:pip.bzl", "pip_parse")
/external/google-benchmark/bazel/
Dbenchmark_deps.bzl29 if "rules_python" not in native.existing_rules():
31 name = "rules_python",
33 strip_prefix = "rules_python-0.27.1",
34 …url = "https://github.com/bazelbuild/rules_python/releases/download/0.27.1/rules_python-0.27.1.tar…
/external/tink/testing/cross_language/
DWORKSPACE26 # newer version of rules_python.
53 name = "rules_python",
54 …url = "https://github.com/bazelbuild/rules_python/releases/download/0.5.0/rules_python-0.5.0.tar.g…
88 load("@rules_python//python:pip.bzl", "pip_install")
/external/tink/python/
Dtink_py_deps.bzl15 if not native.existing_rule("rules_python"):
18 name = "rules_python",
20 strip_prefix = "rules_python-0.10.2",
21 url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.10.2.tar.gz",

12345678910>>...17