Skip to content

Commit

Permalink
Add depend_on_what_you_use 0.2.0 (#1891)
Browse files Browse the repository at this point in the history
  • Loading branch information
martis42 authored Apr 27, 2024
1 parent 917b865 commit 69f9ebf
Showing 5 changed files with 79 additions and 1 deletion.
46 changes: 46 additions & 0 deletions modules/depend_on_what_you_use/0.2.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
module(
name = "depend_on_what_you_use",
version = "0.2.0",
# Keep in sync with setup_step_2.bzl
bazel_compatibility = [">=5.4.0"],
)

bazel_dep(name = "rules_cc", version = "0.0.8")
bazel_dep(name = "rules_python", version = "0.27.1")

non_module_dependencies = use_extension("//third_party:extensions.bzl", "non_module_dependencies")
use_repo(non_module_dependencies, "dwyu_pcpp")

###
### Development Dependencies
###

# Keep in sync with third_party/dependencies.bzl
bazel_dep(name = "bazel_skylib", version = "1.5.0", dev_dependency = True)

python = use_extension(
"@rules_python//python/extensions:python.bzl",
"python",
dev_dependency = True,
)
python.toolchain(python_version = "3.8")

pip = use_extension(
"@rules_python//python/extensions:pip.bzl",
"pip",
dev_dependency = True,
)
pip.parse(
hub_name = "dwyu_mypy_deps",
python_version = "3.8",
requirements_lock = "//third_party:mypy_requirements.txt",
)
use_repo(pip, "dwyu_mypy_deps")

bazel_dep(name = "mypy_integration", dev_dependency = True)
archive_override(
module_name = "mypy_integration",
integrity = "sha256-V1HVImCed4/4/ZdKDoPncNOYZDrceYdvpGW2tCnGfgY=",
strip_prefix = "bazel-mypy-integration-c289c0cd30e53b5cc467b601295834dbc400f4b2",
urls = ["https://github.com/bazel-contrib/bazel-mypy-integration/archive/c289c0cd30e53b5cc467b601295834dbc400f4b2.tar.gz"],
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -1,5 +1,6 @@
module(
name = "depend_on_what_you_use",
+ version = "0.2.0",
# Keep in sync with setup_step_2.bzl
bazel_compatibility = [">=5.4.0"],
)
13 changes: 13 additions & 0 deletions modules/depend_on_what_you_use/0.2.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
bcr_test_module:
module_path: "examples"
matrix:
platform: [ "macos", "ubuntu2004", "windows" ]
# DWYU supports Bazel 5.4.0, but only via WORKSPACE
bazel: [6.x, 7.x]
tasks:
verify_examples:
name: "Verify examples"
platform: ${{ platform }}
bazel: ${{ bazel }}
shell_commands:
- python test.py
9 changes: 9 additions & 0 deletions modules/depend_on_what_you_use/0.2.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"url": "https://github.com/martis42/depend_on_what_you_use/releases/download/0.2.0/depend_on_what_you_use-0.2.0.tar.gz",
"integrity": "sha256-/A5zAHImXXK3lvs55NcCIkmtNSOf3Z+7zjPrOThiA58=",
"strip_prefix": "depend_on_what_you_use-0.2.0",
"patch_strip": 0,
"patches": {
"module_dot_bazel.patch": "sha256-ejH8wJt3uwKFJQig68euuxpDquSXnYoP8o8hsk8u+wg="
}
}
3 changes: 2 additions & 1 deletion modules/depend_on_what_you_use/metadata.json
Original file line number Diff line number Diff line change
@@ -11,7 +11,8 @@
"github:martis42/depend_on_what_you_use"
],
"versions": [
"0.1.0"
"0.1.0",
"0.2.0"
],
"yanked_versions": {}
}

0 comments on commit 69f9ebf

Please sign in to comment.