Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,13 @@
],
"minimumReleaseAge": null
},
"packageRules": [
{
"description": "Bundle all updates that affect .kokoro/requirements.txt",
"matchFileNames": [
".kokoro/requirements.txt"
],
"groupName": "Release job dependencies"
}
]
}
5 changes: 4 additions & 1 deletion .kokoro/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --generate-hashes --no-emit-index-url --no-emit-trusted-host --output-file=.kokoro/requirements.txt .kokoro/requirements.in
# nox -s compile_kokoro_requirements
#
# Note: Forking Renovate automatically manages routine updates to this file.
# Only run the command above for rare manual overrides (e.g. urgent security patches).
#
build==1.6.1 \
--hash=sha256:51cc11666391ab6f092070437ac747002ff46f3e4113a3622177ee6b488bfc53 \
Expand Down
28 changes: 28 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,31 @@ def tests(session):
def format(session):
"""Runs the black formatter and applies formatting fixes."""
session.run("black", ".")


@nox.session(python="3.12")
def compile_kokoro_requirements(session):
"""Recompiles .kokoro/requirements.txt.

NOTE: Forking Renovate automatically manages routine updates to this file.
Only run this session for manual overrides (e.g. urgent security patches).
"""
custom_command = (
"nox -s compile_kokoro_requirements\n"
"#\n"
"# Note: Forking Renovate automatically manages routine updates to this file.\n"
"# Only run the command above for rare manual overrides (e.g. urgent security patches)."
)

session.install("pip-tools")
session.run(
"pip-compile",
"--upgrade",
"--verbose",
"--generate-hashes",
"--no-emit-index-url",
"--no-emit-trusted-host",
"--output-file=.kokoro/requirements.txt",
".kokoro/requirements.in",
env={"CUSTOM_COMPILE_COMMAND": custom_command},
)
Loading