Skip to content

Commit 1b45c47

Browse files
authored
1 parent ba0a92e commit 1b45c47

File tree

6 files changed

+72
-1
lines changed

6 files changed

+72
-1
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
module(
2+
name = "depend_on_what_you_use",
3+
version = "0.6.0",
4+
# Keep in sync with setup_step_2.bzl, .bcr/presubmit.yml and the README.md
5+
bazel_compatibility = [">=6.0.0"],
6+
)
7+
8+
bazel_dep(name = "rules_cc", version = "0.0.15")
9+
bazel_dep(name = "rules_python", version = "0.27.1")
10+
bazel_dep(name = "bazel_skylib", version = "1.7.1")
11+
12+
non_module_dependencies = use_extension("//third_party:extensions.bzl", "non_module_dependencies")
13+
use_repo(non_module_dependencies, "dwyu_pcpp")
14+
15+
###
16+
### Development Dependencies
17+
###
18+
19+
bazel_dep(name = "aspect_bazel_lib", version = "2.10.0", dev_dependency = True)
20+
bazel_dep(name = "stardoc", version = "0.7.2", dev_dependency = True)
21+
22+
python = use_extension(
23+
"@rules_python//python/extensions:python.bzl",
24+
"python",
25+
dev_dependency = True,
26+
)
27+
python.toolchain(python_version = "3.8")
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- examples/test.py
2+
+++ examples/test.py
3+
@@ -144,7 +144,7 @@ def main(legacy_workspace: bool) -> int:
4+
We ony look for the return code of a command. If a command fails as expected we do not analyze if it fails for the
5+
correct reason. These kind of detailed testing is done in the aspect integration tests.
6+
"""
7+
- bazel_binary = get_bazel_binary()
8+
+ bazel_binary = "bazel"
9+
10+
results = [
11+
execute_example(example=ex, bazel_bin=bazel_binary, legacy_workspace=legacy_workspace) for ex in EXAMPLES
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--- MODULE.bazel
2+
+++ MODULE.bazel
3+
@@ -1,6 +1,6 @@
4+
module(
5+
name = "depend_on_what_you_use",
6+
- version = "0.0.0",
7+
+ version = "0.6.0",
8+
# Keep in sync with setup_step_2.bzl, .bcr/presubmit.yml and the README.md
9+
bazel_compatibility = [">=6.0.0"],
10+
)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
bcr_test_module:
2+
module_path: "examples"
3+
matrix:
4+
platform: [ "macos", "ubuntu2204", "windows" ]
5+
bazel: [ "6.x", "7.x", "8.x", "rolling" ]
6+
tasks:
7+
verify_examples:
8+
name: "Verify examples"
9+
platform: ${{ platform }}
10+
bazel: ${{ bazel }}
11+
shell_commands:
12+
- python test.py
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"url": "https://github.com/martis42/depend_on_what_you_use/releases/download/0.6.0/depend_on_what_you_use-0.6.0.tar.gz",
3+
"integrity": "sha256-K94gzsmT+tn5mJqqwGkAGI2fzJ8jwd46WzJsDTHMFFc=",
4+
"strip_prefix": "depend_on_what_you_use-0.6.0",
5+
"patch_strip": 0,
6+
"patches": {
7+
"compatibility_to_bcr_ci.patch": "sha256-OuMAHAb8I9unch8YR+9XflfUpV7rNenu4S07WFti5Vw=",
8+
"module_dot_bazel.patch": "sha256-mwO4z+8D3I9CHOjS64Jk0bvHYisoIlYu5IHNj2tXk/8="
9+
}
10+
}

modules/depend_on_what_you_use/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"0.2.0",
1616
"0.3.0",
1717
"0.4.0",
18-
"0.5.0"
18+
"0.5.0",
19+
"0.6.0"
1920
],
2021
"yanked_versions": {}
2122
}

0 commit comments

Comments
 (0)