-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
154 additions
and
0 deletions.
There are no files selected for viewing
87 changes: 87 additions & 0 deletions
87
modules/pybind11_protobuf/0.0.0-20240524-1d7a729/MODULE.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
module( | ||
name = "pybind11_protobuf", | ||
version = "0.0.0-20240524-1d7a729", | ||
) | ||
|
||
bazel_dep( | ||
name = "bazel_skylib", | ||
version = "1.5.0", | ||
) | ||
|
||
bazel_dep( | ||
name = "abseil-cpp", | ||
version = "20230802.0.bcr.1", | ||
repo_name = "com_google_absl", | ||
) | ||
|
||
bazel_dep( | ||
name = "abseil-py", | ||
version = "2.1.0", | ||
repo_name = "com_google_absl_py", | ||
) | ||
|
||
bazel_dep( | ||
name = "platforms", | ||
version = "0.0.8" | ||
) | ||
|
||
bazel_dep( | ||
name = "pybind11_bazel", | ||
version = "2.11.1.bzl.2", | ||
) | ||
|
||
bazel_dep( | ||
name = "protobuf", | ||
version = "23.1", | ||
repo_name = "com_google_protobuf" | ||
) | ||
|
||
bazel_dep( | ||
name = "grpc", | ||
version = "1.56.3.bcr.1", | ||
repo_name = "com_github_grpc_grpc", | ||
) | ||
|
||
bazel_dep( | ||
name = "rules_python", | ||
version = "0.31.0", | ||
) | ||
|
||
SUPPORTED_PYTHON_VERSIONS = [ | ||
"3.12", | ||
"3.11", | ||
"3.10", | ||
"3.9", | ||
"3.8" | ||
] | ||
|
||
DEFAULT_PYTHON = "3.11" | ||
|
||
python = use_extension("@rules_python//python/extensions:python.bzl", "python") | ||
[ | ||
python.toolchain( | ||
python_version = version, | ||
is_default = version == DEFAULT_PYTHON, | ||
) | ||
for version in SUPPORTED_PYTHON_VERSIONS | ||
] | ||
|
||
use_repo( | ||
python, | ||
python = "python_versions", | ||
) | ||
|
||
#### DEV ONLY DEPENDENCIES BELOW HERE #### | ||
|
||
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") | ||
[ | ||
pip.parse( | ||
hub_name = "pypi", | ||
python_version = version, | ||
requirements_lock = "//pybind11_protobuf/requirements:requirements_lock_" + version.replace('.','_') + ".txt", | ||
) | ||
for version in SUPPORTED_PYTHON_VERSIONS | ||
|
||
] | ||
|
||
use_repo(pip, "pypi") |
13 changes: 13 additions & 0 deletions
13
...es/pybind11_protobuf/0.0.0-20240524-1d7a729/patches/module-dot-bazel-dev-dependency.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/MODULE.bazel b/MODULE.bazel | ||
index f0b1190..c774abb 100644 | ||
--- a/MODULE.bazel | ||
+++ b/MODULE.bazel | ||
@@ -73,7 +73,7 @@ use_repo( | ||
|
||
#### DEV ONLY DEPENDENCIES BELOW HERE #### | ||
|
||
-pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip", dev_dependency=True) | ||
+pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") | ||
[ | ||
pip.parse( | ||
hub_name = "pypi", |
12 changes: 12 additions & 0 deletions
12
modules/pybind11_protobuf/0.0.0-20240524-1d7a729/patches/module-dot-bazel-version.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/MODULE.bazel b/MODULE.bazel | ||
index c774abb..829f00c 100644 | ||
--- a/MODULE.bazel | ||
+++ b/MODULE.bazel | ||
@@ -1,6 +1,6 @@ | ||
module( | ||
name = "pybind11_protobuf", | ||
- version = "head", | ||
+ version = "0.0.0-20240524-1d7a729", | ||
) | ||
|
||
bazel_dep( |
15 changes: 15 additions & 0 deletions
15
modules/pybind11_protobuf/0.0.0-20240524-1d7a729/presubmit.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
matrix: | ||
platform: | ||
- debian11 | ||
- ubuntu2204 | ||
bazel: | ||
- 6.x | ||
- 7.x | ||
tasks: | ||
build: | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
build_flags: | ||
- '--cxxopt=-std=c++17' | ||
build_targets: | ||
- '@pybind11_protobuf//...' |
10 changes: 10 additions & 0 deletions
10
modules/pybind11_protobuf/0.0.0-20240524-1d7a729/source.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"url": "https://github.com/pybind/pybind11_protobuf/archive/1d7a7296604537db5f6ace2ddafd1d08c967ec63.tar.gz", | ||
"integrity": "sha256-IRiavQmFKP05htzsNJ72GuVQbSnQxRx6E9b538wXxnY=", | ||
"strip_prefix": "pybind11_protobuf-1d7a7296604537db5f6ace2ddafd1d08c967ec63", | ||
"patch_strip": 1, | ||
"patches": { | ||
"module-dot-bazel-version.patch": "sha256-kKZgynxCHUB1jjbeOcxxyG4y8aZwNRff2qjMJIphXHo=", | ||
"module-dot-bazel-dev-dependency.patch": "sha256-d95KKYOJXE9051gmORCF/auwCDpk1vW9mm01UF9AQy4=" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"homepage": "https://github.com/pybind/pybind11_protobuf", | ||
"maintainers": [ | ||
{ | ||
"email": "[email protected]", | ||
"github": "frigus02", | ||
"name": "Jan Kühle" | ||
} | ||
], | ||
"repository": [ | ||
"github:pybind/pybind11_protobuf" | ||
], | ||
"versions": [ | ||
"0.0.0-20240524-1d7a729" | ||
], | ||
"yanked_versions": {} | ||
} |