From 8c3d54889bcf2aecc284d0f5a0d084c895e71d6b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 10 Jan 2023 23:13:41 +0000 Subject: [PATCH 1/2] chore(deps): update dependency rules_python to v0.16.2 --- py/repositories.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py/repositories.bzl b/py/repositories.bzl index cbd79909..fa2a1beb 100644 --- a/py/repositories.bzl +++ b/py/repositories.bzl @@ -55,7 +55,7 @@ bzl_library( ) EOF """], - sha256 = "497ca47374f48c8b067d786b512ac10a276211810f4a580178ee9b9ad139323a", - strip_prefix = "rules_python-0.16.1", - url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.16.1.tar.gz", + sha256 = "48a838a6e1983e4884b26812b2c748a35ad284fd339eb8e2a6f3adf95307fbcd", + strip_prefix = "rules_python-0.16.2", + url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.16.2.tar.gz", ) From 689741ae0c9190565e852dc91505ed1543d9ea58 Mon Sep 17 00:00:00 2001 From: Matt Mackay Date: Thu, 19 Jan 2023 08:29:08 -0500 Subject: [PATCH 2/2] fix breaking changes caused by rules_python patch release... --- BUILD.bazel | 1 - gazelle_python.yaml | 3 +-- py/private/BUILD.bazel | 2 +- py/repositories.bzl | 6 +++--- requirements.txt | 4 ++-- 5 files changed, 7 insertions(+), 9 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 304527a7..9823d324 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -14,7 +14,6 @@ load("@rules_python//python/pip_install:requirements.bzl", "compile_pip_requirem gazelle_python_manifest( name = "gazelle_python_manifest", modules_mapping = ":modules_map", - pip_repository_incremental = True, pip_repository_name = "pypi", requirements = "requirements.txt", ) diff --git a/gazelle_python.yaml b/gazelle_python.yaml index e3547d9a..cda97bc4 100644 --- a/gazelle_python.yaml +++ b/gazelle_python.yaml @@ -947,5 +947,4 @@ manifest: tomli: tomli pip_repository: name: pypi - incremental: true -integrity: 90e6880a4d14b010e935cfc6eb5933bf7ea8b1e59eee41f5d037c098628f9d31 +integrity: b403c528c18524aaef6f123ecbdf260d35d434f878a52002ae1cf7a6e5d9de63 diff --git a/py/private/BUILD.bazel b/py/private/BUILD.bazel index 65679e67..d9a1bd5c 100644 --- a/py/private/BUILD.bazel +++ b/py/private/BUILD.bazel @@ -51,8 +51,8 @@ bzl_library( bzl_library( name = "py_pytest_main", srcs = ["py_pytest_main.bzl"], - visibility = ["//py:__subpackages__"], deps = ["@rules_python//python:defs"], + visibility = ["//py:__subpackages__"], ) bzl_library( diff --git a/py/repositories.bzl b/py/repositories.bzl index fa2a1beb..d7505c36 100644 --- a/py/repositories.bzl +++ b/py/repositories.bzl @@ -39,13 +39,13 @@ def rules_py_dependencies(): http_archive( name = "rules_python", patch_cmds = ["""\ -cat >> python/BUILD <> python/BUILD.bazel <