From 0884c4f5c29647f91114e1513386ad8e215e1ed8 Mon Sep 17 00:00:00 2001 From: Thulio Ferraz Assis <3149049+f0rmiga@users.noreply.github.com> Date: Thu, 4 Jul 2024 05:13:19 +0000 Subject: [PATCH] Publish bazelbuild/rules_python@0.34.0 --- .../0.34.0/MODULE.bazel | 39 +++++++++++++++++++ .../patches/module_dot_bazel_version.patch | 12 ++++++ .../0.34.0/presubmit.yml | 29 ++++++++++++++ .../0.34.0/source.json | 9 +++++ .../rules_python_gazelle_plugin/metadata.json | 3 +- 5 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 modules/rules_python_gazelle_plugin/0.34.0/MODULE.bazel create mode 100644 modules/rules_python_gazelle_plugin/0.34.0/patches/module_dot_bazel_version.patch create mode 100644 modules/rules_python_gazelle_plugin/0.34.0/presubmit.yml create mode 100644 modules/rules_python_gazelle_plugin/0.34.0/source.json diff --git a/modules/rules_python_gazelle_plugin/0.34.0/MODULE.bazel b/modules/rules_python_gazelle_plugin/0.34.0/MODULE.bazel new file mode 100644 index 00000000000..cd72e7624d9 --- /dev/null +++ b/modules/rules_python_gazelle_plugin/0.34.0/MODULE.bazel @@ -0,0 +1,39 @@ +module( + name = "rules_python_gazelle_plugin", + version = "0.34.0", + compatibility_level = 1, +) + +bazel_dep(name = "bazel_skylib", version = "1.6.1") +bazel_dep(name = "rules_python", version = "0.18.0") +bazel_dep(name = "rules_go", version = "0.41.0", repo_name = "io_bazel_rules_go") +bazel_dep(name = "gazelle", version = "0.33.0", repo_name = "bazel_gazelle") + +local_path_override( + module_name = "rules_python", + path = "..", +) + +go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps") +go_deps.from_file(go_mod = "//:go.mod") +use_repo( + go_deps, + "com_github_bazelbuild_buildtools", + "com_github_bmatcuk_doublestar_v4", + "com_github_emirpasic_gods", + "com_github_ghodss_yaml", + "com_github_smacker_go_tree_sitter", + "com_github_stretchr_testify", + "in_gopkg_yaml_v2", + "org_golang_x_sync", +) + +python_stdlib_list = use_extension("//python:extensions.bzl", "python_stdlib_list") +use_repo( + python_stdlib_list, + "python_stdlib_list_3_10", + "python_stdlib_list_3_11", + "python_stdlib_list_3_12", + "python_stdlib_list_3_8", + "python_stdlib_list_3_9", +) diff --git a/modules/rules_python_gazelle_plugin/0.34.0/patches/module_dot_bazel_version.patch b/modules/rules_python_gazelle_plugin/0.34.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..777f40b2505 --- /dev/null +++ b/modules/rules_python_gazelle_plugin/0.34.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,12 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,7 @@ + module( + name = "rules_python_gazelle_plugin", +- version = "0.0.0", ++ version = "0.34.0", + compatibility_level = 1, + ) + + bazel_dep(name = "bazel_skylib", version = "1.6.1") diff --git a/modules/rules_python_gazelle_plugin/0.34.0/presubmit.yml b/modules/rules_python_gazelle_plugin/0.34.0/presubmit.yml new file mode 100644 index 00000000000..659beab5256 --- /dev/null +++ b/modules/rules_python_gazelle_plugin/0.34.0/presubmit.yml @@ -0,0 +1,29 @@ +# Copyright 2023 The Bazel Authors. All rights reserved. +# +# 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. + +bcr_test_module: + module_path: "../examples/bzlmod_build_file_generation" + matrix: + platform: ["debian11", "macos", "ubuntu2004", "windows"] + bazel: [6.x, 7.x] + tasks: + run_tests: + name: "Run test module" + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - "//..." + - ":modules_map" + test_targets: + - "//..." diff --git a/modules/rules_python_gazelle_plugin/0.34.0/source.json b/modules/rules_python_gazelle_plugin/0.34.0/source.json new file mode 100644 index 00000000000..986fb36e244 --- /dev/null +++ b/modules/rules_python_gazelle_plugin/0.34.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-d4quqz5s/VbWgcifXBDXrWv40vGnLeneVbIwgbLTFhg=", + "strip_prefix": "rules_python-0.34.0/gazelle", + "url": "https://github.com/bazelbuild/rules_python/releases/download/0.34.0/rules_python-0.34.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-8NfQ7pebdMif7e8vvAcEcFNTcwmt/g15cfv6o74tbIg=" + }, + "patch_strip": 1 +} diff --git a/modules/rules_python_gazelle_plugin/metadata.json b/modules/rules_python_gazelle_plugin/metadata.json index 085332502cb..c87564eac62 100644 --- a/modules/rules_python_gazelle_plugin/metadata.json +++ b/modules/rules_python_gazelle_plugin/metadata.json @@ -31,7 +31,8 @@ "0.32.2", "0.33.0", "0.33.1", - "0.33.2" + "0.33.2", + "0.34.0" ], "yanked_versions": {} }