Skip to content

Commit 83a300d

Browse files
authored
add debian dependency bazelizer to the bazel central registry (#1235)
safer url Update presubmit.yml
1 parent 09e55e3 commit 83a300d

File tree

4 files changed

+66
-0
lines changed

4 files changed

+66
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
module(
2+
name = "debian_dependency_bazelizer",
3+
version = "0.5.0",
4+
compatibility_level = 1,
5+
)
6+
7+
bazel_dep(name = "rules_python", version = "0.27.1")
8+
9+
PYTHON_VERSIONS = [
10+
"3.8",
11+
"3.9",
12+
"3.10",
13+
"3.11",
14+
]
15+
16+
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
17+
18+
[
19+
python.toolchain(
20+
is_default = python_version == PYTHON_VERSIONS[-1],
21+
python_version = python_version,
22+
)
23+
for python_version in PYTHON_VERSIONS
24+
]
25+
26+
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
27+
28+
[
29+
pip.parse(
30+
hub_name = "dep_bazelizer_deps",
31+
python_version = python_version,
32+
requirements_lock = "//:requirements.txt",
33+
)
34+
for python_version in PYTHON_VERSIONS
35+
]
36+
37+
use_repo(pip, "dep_bazelizer_deps")
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
bcr_test_module:
2+
module_path: ''
3+
matrix:
4+
platform: [ ubuntu2004 ]
5+
tasks:
6+
run_tests:
7+
name: Run tests
8+
platform: ${{ platform }}
9+
test_targets: [ //... ]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"url": "https://github.com/shabanzd/debian_dependency_bazelizer/releases/download/0.5.0/debian_dependency_bazelizer-0.5.0.tar.gz",
3+
"integrity": "sha256-WyM4mf8ZrVujn7gOsE+knrCNE5u39sB3x7TcX/binIg=",
4+
"strip_prefix": "debian_dependency_bazelizer-0.5.0"
5+
}
6+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"homepage": "https://github.com/shabanzd/debian_dependency_bazelizer",
3+
"maintainers": [
4+
{
5+
"email": "[email protected]",
6+
"github": "shabanzd",
7+
"name": "Ziad Shaban"
8+
}
9+
],
10+
"repository": [
11+
"github:shabanzd/debian_dependency_bazelizer"
12+
],
13+
"versions": ["0.5.0"]
14+
}

0 commit comments

Comments
 (0)