-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0f675c
commit 082c257
Showing
11 changed files
with
743 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
licenses(["notice"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
load("@rules_python//python:pip.bzl", "compile_pip_requirements") | ||
|
||
licenses(["notice"]) | ||
|
||
compile_pip_requirements( | ||
# Defines targets which use pip-compile to keep the Python locked | ||
# requirements up-to-date: | ||
# | ||
# :python_requirements.update bazel run this target to update | ||
# ./python_requirements.txt by recursively following | ||
# and locking the dependencies seeded by | ||
# ./python_requirements.in | ||
# | ||
# :python_requirements_test bazel test target which fails if | ||
# ./python_requirements.txt does not match | ||
# that generated from ./python_requirements.in | ||
name = "python_requirements", | ||
extra_args = [ | ||
"--allow-unsafe", | ||
# ^ lets pip-compile include setuptools, recommended by | ||
# `pip-compile -h` as future default behavior | ||
], | ||
requirements_in = "python_requirements.in", | ||
requirements_txt = "python_requirements.txt", | ||
tags = [ | ||
"manual", | ||
# ^ exclude .update and _test targets from wildcards in, | ||
# e.g., `bazel test ...` | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Specify the Python packages available as dependencies to targets in Bazel. | ||
# | ||
# When modifying this list, always run | ||
# the //oss_scripts/requirements:python_requirements.update target: | ||
# | ||
# bazel run //oss_scripts/requirements:python_requirements.update | ||
# | ||
# to compile (using pip-compile) this list of direct dependencies into a pinned | ||
# requirements file---a complete list of direct and transitive dependencies, | ||
# pinned by version and cryptographic hash. The pinned requirements file is | ||
# used in @rules_python's pip_parse() in the WORKSPACE file to create the | ||
# external repositories available as dependencies to py_binary() and | ||
# py_library() targets. | ||
# | ||
# To upgrade dependencies to their latest version, run the update target with | ||
# the option --upgrade: | ||
# | ||
# bazel run //oss_scripts/requirements:python_requirements.update -- --upgrade | ||
# | ||
# Without the --upgrade option, the underlying pip-compile only adds or removes | ||
# dependencies without upgrading them to the latest versions available in PyPI. | ||
# | ||
# Both this input file and the pinned requirements file should be committed to | ||
# git. Avoid committing changes that break other developers by using an | ||
# environment that meets the project's recommendations. Dependency resolution | ||
# is sensitive to the Python environment (interpreter version, etc.) in which | ||
# it is run. | ||
|
||
tf-nightly |
Oops, something went wrong.