Skip to content

Commit 054a44e

Browse files
Publish alexeagle/[email protected]
1 parent 9a567ad commit 054a44e

File tree

5 files changed

+104
-0
lines changed

5 files changed

+104
-0
lines changed

Diff for: modules/toolchains_protoc/0.2.0/MODULE.bazel

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
"Bazel dependencies"
2+
3+
module(
4+
name = "toolchains_protoc",
5+
version = "0.2.0",
6+
compatibility_level = 1,
7+
)
8+
9+
bazel_dep(name = "bazel_skylib", version = "1.4.1")
10+
bazel_dep(name = "rules_proto", version = "6.0.0-rc2")
11+
bazel_dep(name = "platforms", version = "0.0.8")
12+
13+
protoc = use_extension("//protoc:extensions.bzl", "protoc")
14+
protoc.toolchain(
15+
google_protobuf = "com_google_protobuf",
16+
version = "v25.3",
17+
)
18+
use_repo(protoc, "com_google_protobuf", "toolchains_protoc_hub")
19+
20+
register_toolchains("@toolchains_protoc_hub//:all")
21+
22+
bazel_dep(name = "aspect_bazel_lib", version = "1.32.1", dev_dependency = True)
23+
bazel_dep(name = "buildifier_prebuilt", version = "6.1.2", dev_dependency = True)
24+
bazel_dep(name = "aspect_rules_py", version = "0.7.1", dev_dependency = True)
25+
bazel_dep(name = "rules_java", version = "7.4.0", dev_dependency = True)
26+
bazel_dep(name = "rules_python", version = "0.31.0", dev_dependency = True)
27+
28+
# # Update to include
29+
# https://github.com/bazelbuild/rules_python/pull/1577
30+
git_override(
31+
module_name = "rules_python",
32+
commit = "3edcae33dcc43051ca6f200c2d0cb3692df79d03",
33+
remote = "https://github.com/bazelbuild/rules_python.git",
34+
)
35+
36+
register_toolchains(
37+
"//examples/lang_toolchains:all",
38+
dev_dependency = True,
39+
)
40+
41+
# Shows how a typical Python user fetches all the dependencies of their app, including the protobuf runtime
42+
pip = use_extension(
43+
"@rules_python//python/extensions:pip.bzl",
44+
"pip",
45+
dev_dependency = True,
46+
)
47+
pip.parse(
48+
hub_name = "pypi",
49+
python_version = "3.11",
50+
requirements_lock = "//examples/lang_toolchains:requirements.txt",
51+
)
52+
use_repo(pip, "pypi")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
===================================================================
2+
--- a/MODULE.bazel
3+
+++ b/MODULE.bazel
4+
@@ -1,9 +1,9 @@
5+
"Bazel dependencies"
6+
7+
module(
8+
name = "toolchains_protoc",
9+
- version = "0.0.0",
10+
+ version = "0.2.0",
11+
compatibility_level = 1,
12+
)
13+
14+
bazel_dep(name = "bazel_skylib", version = "1.4.1")

Diff for: modules/toolchains_protoc/0.2.0/presubmit.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
bcr_test_module:
2+
module_path: "e2e/smoke"
3+
matrix:
4+
platform: ["debian10", "macos", "ubuntu2004", "windows"]
5+
bazel: ["7.x"]
6+
tasks:
7+
run_tests:
8+
name: "Run test module"
9+
platform: ${{ platform }}
10+
bazel: ${{ bazel }}
11+
test_targets:
12+
- "//..."

Diff for: modules/toolchains_protoc/0.2.0/source.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"integrity": "sha256-5sKjihb3nV8vg+QmdxXQ9ISXfBP8uO/HMmfJmKwI6DE=",
3+
"strip_prefix": "toolchains_protoc-0.2.0",
4+
"url": "https://github.com/alexeagle/toolchains_protoc/releases/download/v0.2.0/toolchains_protoc-v0.2.0.tar.gz",
5+
"patches": {
6+
"module_dot_bazel_version.patch": "sha256-HQkPTHRO+AOjPzmtpfXsFzlp66NHKbGkTQO3oBmDysU="
7+
},
8+
"patch_strip": 1
9+
}

Diff for: modules/toolchains_protoc/metadata.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"homepage": "https://github.com/alexeagle/toolchains_protoc",
3+
"maintainers": [
4+
{
5+
"email": "[email protected]",
6+
"github": "alexeagle",
7+
"name": "Alex Eagle"
8+
}
9+
],
10+
"repository": [
11+
"github:alexeagle/toolchains_protoc"
12+
],
13+
"versions": [
14+
"0.2.0"
15+
],
16+
"yanked_versions": {}
17+
}

0 commit comments

Comments
 (0)