Home
last modified time | relevance | path

Searched +full:pip +full:- +full:requirements +full:- +full:file (Results 1 – 25 of 327) sorted by relevance

12345678910>>...14

/external/bazelbuild-rules_python/docs/
Dpypi-dependencies.md1 :::{default-domain} bzl
6 Using PyPI packages (aka "pip install") involves two main steps.
8 1. [Installing third party packages](#installing-third-party-packages)
9 2. [Using third party packages as dependencies](#using-third-party-packages)
11 {#installing-third-party-packages}
16 To add pip dependencies to your `MODULE.bazel` file, use the `pip.parse`
22 pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
23 pip.parse(
28 use_repo(pip, "my_deps")
30 For more documentation, including how the rules can update/create a requirements
[all …]
Dgetting-started.md7 It assumes you have a `requirements.txt` file with your PyPI dependencies.
11 * [Configuring third party dependencies (pip/pypi)](pypi-dependencies)
17 your MODULE.bazel file:
24 pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
25 pip.parse(
28 requirements_lock = "//:requirements.txt",
30 use_repo(pip, "pypi")
33 ## Using a WORKSPACE file
47 strip_prefix = "rules_python-0.36.0",
48 …url = "https://github.com/bazelbuild/rules_python/releases/download/0.36.0/rules_python-0.36.0.tar…
[all …]
/external/mbedtls/scripts/
Dmin_requirements.py6 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
21 ) -> None:
25 class Requirements: class
26 """Collect and massage Python requirements."""
28 def __init__(self) -> None:
29 self.requirements = [] #type: List[str]
31 def adjust_requirement(self, req: str) -> str:
33 # allow inheritance #pylint: disable=no-self-use
39 def add_file(self, filename: str) -> None:
40 """Add requirements from the specified file.
[all …]
/external/openthread/third_party/mbedtls/repo/scripts/
Dmin_requirements.py6 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
21 ) -> None:
25 class Requirements: class
26 """Collect and massage Python requirements."""
28 def __init__(self) -> None:
29 self.requirements = [] #type: List[str]
31 def adjust_requirement(self, req: str) -> str:
33 # allow inheritance #pylint: disable=no-self-use
39 def add_file(self, filename: str) -> None:
40 """Add requirements from the specified file.
[all …]
/external/pigweed/pw_build/
Dpython_venv.gni4 # use this file except in compliance with the License. You may obtain a copy of
7 # https://www.apache.org/licenses/LICENSE-2.0
28 # path = "test-venv"
30 # requirements = [ "//tools/requirements.txt" ]
43 # constraints: A list of constraint files used when performing pip install
46 # requirements: A list of requirements files to install into this virtualenv
49 # pip_generate_hashes: (Default: false) Use --generate-hashes When
50 # running pip-compile to compute the final requirements.txt
52 # source_packages: A list of in-tree pw_python_package targets that will be
53 # checked for external third_party pip dependencies to install into this
[all …]
/external/bazelbuild-rules_python/examples/bzlmod_build_file_generation/
DMODULE.bazel1 # This file replaces the WORKSPACE file when using bzlmod.
18 # The following loads rules_python from the file system.
31 # The following starlark loads the gazelle plugin from the file system.
39 # See here https://github.com/bazelbuild/bazel-gazelle/releases/ for the
55 # Use the extension, pip.parse, to call the `pip_repository` rule that invokes
56 # `pip`, with `incremental` set. The pip call accepts a locked/compiled
57 # requirements file and installs the dependencies listed within.
58 # Those dependencies become available in a generated `requirements.bzl` file.
59 # You can instead check this `requirements.bzl` file into your repo.
60 # Because this project has different requirements for windows vs other
[all …]
DBUILD.bazel6 # The following code loads the base python requirements and gazelle
7 # requirements.
9 load("@pip//:requirements.bzl", "all_whl_requirements")
11 load("@rules_python//python:pip.bzl", "compile_pip_requirements")
15 # This stanza calls a rule that generates targets for managing pip dependencies
16 # with pip-compile.
18 name = "requirements",
19 src = "requirements.in",
26 # rule to update our manifest file.
38 # Gazelle python extension needs a manifest file mapping from
[all …]
/external/python/jinja/requirements/
Ddev.txt2 # This file is autogenerated by pip-compile
5 # pip-compile requirements/dev.in
9 cfgv==3.1.0 # via pre-commit
10 click==7.1.2 # via pip-tools
13 identify==1.4.15 # via pre-commit
14 more-itertools==8.3.0 # via pytest
15 nodeenv==1.3.5 # via pre-commit
17 pip-tools==5.2.1 # via -r requirements/dev.in
19 pre-commit==2.5.1 # via -r requirements/dev.in
22 pytest==5.4.3 # via -r requirements/tests.in
[all …]
/external/python/markupsafe/requirements/
Ddev.txt2 # This file is autogenerated by pip-compile
5 # pip-compile requirements/dev.in
9 cfgv==3.1.0 # via pre-commit
10 click==7.1.2 # via pip-tools
13 identify==1.4.16 # via pre-commit
15 more-itertools==8.3.0 # via pytest
16 nodeenv==1.3.5 # via pre-commit
18 pip-tools==5.3.1 # via -r requirements/dev.in
20 pre-commit==2.6.0 # via -r requirements/dev.in
23 pytest==6.0.1 # via -r requirements/tests.in
[all …]
/external/arm-trusted-firmware/docs/
Drequirements.txt2 # This file is autogenerated by pip-compile with python 3.8
5 # pip-compile
10 # via markdown-it-py
15 charset-normalizer==2.0.4
18 # via pip-tools
21 # myst-parser
23 # sphinx-rtd-theme
30 # myst-parser
32 markdown-it-py==1.1.0
34 # mdit-py-plugins
[all …]
/external/python/cpython3/Doc/tutorial/
Dvenv.rst2 .. _tut-venv:
18 the requirements of every application. If application A needs version
20 the requirements are in conflict and installing either version 1.0 or 2.0
24 self-contained directory tree that contains a Python installation for a
28 To resolve the earlier example of conflicting requirements,
40 the command was run (as reported by the :option:`--version` option).
47 python -m venv tutorial-env
49 This will create the ``tutorial-env`` directory if it doesn't exist,
63 tutorial-env\Scripts\activate
67 source tutorial-env/bin/activate
[all …]
/external/pigweed/docs/
Dpython_build.rst1 .. _docs-python-build:
8 - :bdg-ref-primary-line:`module-pw_build-python` for detailed template usage.
9 - :bdg-ref-primary-line:`module-pw_build` for other GN templates available
11 - :bdg-ref-primary-line:`docs-build-system` for a high level guide and
14 Pigweed uses a custom GN-based build system to manage its Python code. The
18 with :ref:`module-pw_watch`) or in continuous integration.
20 Pigweed's Python code is exclusively managed by GN, but the GN-based build may
23 build system. As needed, non-GN projects can declare just their Python packages
31 :ref:`module-pw_build-pw_python_action` GN template which will ultimately run
40 :ref:`pw_python_actions <module-pw_build-pw_python_action>` throughout the build
[all …]
/external/rust/android-crates-io/crates/grpcio-sys/grpc/third_party/upb/bazel/
Dsystem_python.bzl1 # Copyright (c) 2009-2021, Google LLC
28 # Mock out rules_python's pip.bzl for cases where no system python is found.
31 repository_ctx.file("BUILD.bazel", '''
37 repository_ctx.file("requirements.bzl", '''
39 print("WARNING: could not install pip dependencies")
47 "requirements": attr.string(),
55 # Alias rules_python's pip.bzl for cases where a system python is found.
57 load("@rules_python//python:pip.bzl", _pip_install = "pip_install", _pip_parse = "pip_parse")
59 def _get_requirements(requirements, requirements_overrides):
62 requirements = override
[all …]
/external/bazelbuild-rules_python/python/private/pypi/
Dpip_repository.bzl4 # you may not use this file except in compliance with the License.
7 # http://www.apache.org/licenses/LICENSE-2.0
45 """Determine whether or not to pass the pip `--isolated` flag to the pip invocation.
52 True if --isolated should be passed
69 # Ensure the `requirements.bzl` source can be accessed by stardoc, since users load() from it
70 exports_files(["requirements.bzl"])
85 evaluate_markers = lambda rctx, requirements: evaluate_markers(
87 requirements = requirements,
96 for name, requirements in requirements_by_platform.items():
98 requirements,
[all …]
Dpip_compile.bzl4 # you may not use this file except in compliance with the License.
7 # http://www.apache.org/licenses/LICENSE-2.0
16 Rules to verify and update pip-compile locked requirements.txt.
18 NOTE @aignas 2024-06-23: We are using the implementation specific name here to
41 """Generates targets for managing pip dependencies with pip-compile.
44 of some other compile_pip_requirements rule that references these requirements
45 (e.g. with `-r ../other/requirements.txt`).
47 It also generates two targets for running pip-compile:
49 - validate with `bazel test [name]_test`
50 - update with `bazel run [name].update`
[all …]
Dparse_requirements_txt.bzl4 # you may not use this file except in compliance with the License.
7 # http://www.apache.org/licenses/LICENSE-2.0
15 """Pip requirements parser for Starlark."""
22 # Parse the name of a pip package
26 # Parse a pip option
33 """A simplistic (and incomplete) pip requirements lockfile parser.
35 Parses package names and their full requirement lines, as well pip
42 Struct with fields `requirements` and `options`.
44 requirements: List of requirements, where each requirement is a 2-element
46 E.g., [(certifi', 'certifi==2021.10.8 --hash=sha256:7888...'), ...]
[all …]
Dextension.bzl4 # you may not use this file except in compliance with the License.
7 # http://www.apache.org/licenses/LICENSE-2.0
15 "pip module extension for use with bzlmod"
41 """Implementation of the pip.whl_mods tag class.
78 pip_attr: {type}`struct` - the struct that comes from the tag class iteration.
79 whl_overrides: {type}`dict[str, struct]` - per-wheel overrides.
80 … simpleapi_cache: {type}`dict` - an opaque dictionary used for caching the results from calling
81 SimpleAPI evaluating all of the tag class invocations {bzl:obj}`pip.parse`.
100 internet to evaluate the requirements files.
124 "Unable to find interpreter for pip hub '{hub_name}' for " +
[all …]
/external/executorch/
Dinstall_requirements.py4 # This source code is licensed under the BSD-style license found in the
5 # LICENSE file in the root directory of this source tree.
23 with open("pyproject.toml", "r") as file:
24 for line in file:
25 if line.startswith("requires-python"):
34 file=sys.stderr,
43 [sys.executable, "-m", "pip", "install", "packaging"], check=True
57 file=sys.stderr,
61 print(f"WARNING: Skipping python version check: {e}", file=sys.stderr)
75 if arg == "--pybind":
[all …]
/external/tink/python/tools/distribution/
Drequirements.txt2 # This file is autogenerated by pip-compile with python 3.10
5 # pip-compile --allow-unsafe --generate-hashes requirements.in
8 --hash=sha256:965f5259b566725405b05e7cf774052044b1ed30119b5d586b2703aafe8719ac \
9 --hash=sha256:b60533f3f5d530e971d6737ca6d58681ee434818fab630c83a734bb10c083ce8
10 # via -r requirements.in
12 # The following packages are considered to be unsafe in a requirements file:
13 pip==23.0 \
14 --hash=sha256:aee438284e82c8def684b0bcc50b1f6ed5e941af97fa940e83e2e8ef1a59da9b \
15 --hash=sha256:b5f88adff801f5ef052bcdef3daa31b55eb67b0fccd6d0106c206fa248e0463c
16 # via -r requirements.in
[all …]
/external/python/python-api-core/.kokoro/docker/docs/
DDockerfile4 # you may not use this file except in compliance with the License.
7 # http://www.apache.org/licenses/LICENSE-2.0
23 RUN apt-get update \
24 && apt-get install -y --no-install-recommends \
25 apt-transport-https \
26 build-essential \
27 ca-certificates \
31 gpg-agent \
33 libbz2-dev \
34 libdb5.3-dev \
[all …]
/external/pigweed/pw_env_setup/py/pw_env_setup/virtualenv_setup/
Dinstall.py4 # use this file except in compliance with the License. You may obtain a copy of
7 # https://www.apache.org/licenses/LICENSE-2.0
30 _DATETIME_STRING = datetime.datetime.now().strftime('%Y%m%d-%H%M%S')
33 def _is_windows() -> bool:
40 self.name = '-'.join(
53 return git_stdout('-C', path, 'rev-parse', '--show-toplevel')
63 cmd = (venv_python, '-m', 'pip', '--disable-pip-version-check', 'list')
68 def _required_packages(requirements): argument
71 for req in requirements:
89 print(args, kwargs, file=temp)
[all …]
/external/bazelbuild-rules_python/python/private/pypi/dependency_resolver/
Ddependency_resolver.py4 # you may not use this file except in compliance with the License.
7 # http://www.apache.org/licenses/LICENSE-2.0
15 "Set defaults for the pip-compile command to run it under Bazel"
35 # backslashes in the paths with forward slashes. This is so that we can have the same requirements
36 # file on Windows and Unix-like.
41 def annotation_style_split(required_by) -> str:
46 def annotation_style_line(required_by) -> str:
58 """Switch the golden requirements file, used to validate if updates are needed,
73 def _locate(bazel_runfiles, file): argument
74 """Look up the file via Rlocation"""
[all …]
/external/bazelbuild-rules_python/examples/build_file_generation/
DBUILD.bazel6 load("@pip//:requirements.bzl", "all_whl_requirements")
8 load("@rules_python//python:pip.bzl", "compile_pip_requirements")
13 name = "requirements",
14 src = "requirements.in",
21 # rule to update our manifest file.
32 # Gazelle python extension needs a manifest file mapping from
35 # - //:gazelle_python_manifest.update can be used with `bazel run`
37 # - //:gazelle_python_manifest.test is a test target ensuring that
42 pip_repository_name = "pip",
45 requirements = "//:requirements_lock.txt",
[all …]
/external/bazelbuild-rules_python/
DCHANGELOG.md1 :::{default-domain} bzl
6 This is a human-friendly changelog in a keepachangelog.com style format.
7 Because this changelog is for end-user consumption of meaningful changes,only
20 * Particular sub-systems are identified using parentheses, e.g. `(bzlmod)` or
23 <!--
26 {#v0-0-0}
31 {#v0-0-0-changed}
35 {#v0-0-0-fixed}
39 {#v0-0-0-added}
43 {#v0-0-0-removed}
[all …]
/external/bazelbuild-rules_python/examples/bzlmod/other_module/
DMODULE.bazel10 # This override is necessary to generate/update the requirements file
12 # module doesn't work -- the `requirements.update` target can't find
13 # the correct file to update.
47 pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
48 pip.parse(
52 # This is testing that a sub-module can use pip.parse() and only specify
53 # Python versions that DON'T include whatever the root-module's default
58 use_repo(pip, "other_module_pip")

12345678910>>...14