Files
ortools-clone/bazel/BUILD.bazel
Guillaume Chatelet 551ad10d94 Update Python dependencies and remove black. (#4979)
- Updated jupyter-server to 2.17.0 in notebook_requirements.in.
- Updated virtualenv to 20.35.4 in ortools_requirements.in.
- Removed black from both ortools_requirements.in and notebook_requirements.in.
- Updated filelock>=3.20.1 to mitigate CVE-2025-68146.
- Regenerated notebook_requirements.txt and ortools_requirements.txt with updated hashes and versions for various packages including debugpy, jupyter-client, platformdirs, tzdata, and urllib3.
- Added comments in bazel/BUILD regarding the compile_pip_requirements rules and instructions for updating the requirements files.
2026-01-09 13:10:50 +01:00

46 lines
1.7 KiB
Python

# Copyright 2010-2025 Google LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
extra_args = [
"--no-emit-index-url", # Prevent emitting url in .txt file when using a proxy.
"--reuse-hashes", # Improve the speed of --generate-hashes by reusing the hashes from an existing output file.
"--verbose",
]
compile_pip_requirements(
name = "ortools_requirements",
src = "ortools_requirements.in",
extra_args = extra_args,
generate_hashes = True,
requirements_txt = "ortools_requirements.txt",
)
compile_pip_requirements(
name = "notebook_requirements",
src = "notebook_requirements.in",
data = ["ortools_requirements.in"],
extra_args = extra_args,
generate_hashes = True,
requirements_txt = "notebook_requirements.txt",
)
# To fully update `requirements.txt` files run the following commands:
# cat /dev/null > bazel/ortools_requirements.txt
# cat /dev/null > bazel/notebook_requirements.txt
# bazelisk-linux-amd64 run --config=ci //bazel:ortools_requirements.update
# bazelisk-linux-amd64 run --config=ci //bazel:notebook_requirements.update
package(default_visibility = ["//visibility:public"])