Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
@PetteriAimonen FYI, adding the new release to the BCR.
  • Loading branch information
tpudlik authored Dec 3, 2024
1 parent 4a68707 commit a9dfaec
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 1 deletion.
28 changes: 28 additions & 0 deletions modules/nanopb/0.4.9.1/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module(
name = "nanopb",
version = "0.4.9.1",
)

bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "rules_cc", version = "0.0.10")
bazel_dep(name = "rules_python", version = "0.35.0")
bazel_dep(name = "rules_proto", version = "6.0.2")
bazel_dep(name = "protobuf", version = "28.2")
bazel_dep(name = "rules_proto_grpc", version = "5.0.0")

pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")

python = use_extension("@rules_python//python/extensions:python.bzl", "python")

PYTHON_VERSION = "3.11"

# No need for this since rules_python already creates our version.
# python.toolchain(python_version = PYTHON_VERSION)
use_repo(python, "python_versions")

use_repo(pip, "nanopb_pypi")
pip.parse(
hub_name = "nanopb_pypi",
python_version = PYTHON_VERSION,
requirements_lock = "@nanopb//:extra/requirements_lock.txt",
)
12 changes: 12 additions & 0 deletions modules/nanopb/0.4.9.1/patches/bazel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/MODULE.bazel b/MODULE.bazel
index 8aaa68e..91487ee 100644
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -1,6 +1,6 @@
module(
name = "nanopb",
- version = "0.4.9",
+ version = "0.4.9.1",
)

bazel_dep(name = "bazel_skylib", version = "1.7.1")
17 changes: 17 additions & 0 deletions modules/nanopb/0.4.9.1/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
matrix:
platform:
- debian10
- ubuntu2004
- macos
- macos_arm64
- windows
bazel:
- 7.x
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_targets:
- '@nanopb'
- '@nanopb//:protoc-gen-nanopb'
9 changes: 9 additions & 0 deletions modules/nanopb/0.4.9.1/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"url": "https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.9.1.tar.gz",
"integrity": "sha256-iCzYRzrZMrJHh+Z2qAjk+ynBLghtILy/usxmwYMJS1w=",
"strip_prefix": "nanopb",
"patches": {
"bazel.patch": "sha256-ViUhBWdXZjM6SEG48qVxDtgilCXPqtLLgDfHu+2rykk="
},
"patch_strip": 1
}
3 changes: 2 additions & 1 deletion modules/nanopb/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"https://jpa.kapsi.fi/nanopb"
],
"versions": [
"0.4.9"
"0.4.9",
"0.4.9.1"
],
"yanked_versions": {}
}

0 comments on commit a9dfaec

Please sign in to comment.