Skip to content

Commit

Permalink
Add depend_on_what_you_use 0.4.0 (#2299)
Browse files Browse the repository at this point in the history
  • Loading branch information
martis42 committed Jun 23, 2024
1 parent 93d2c1c commit 8c4240e
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 1 deletion.
46 changes: 46 additions & 0 deletions modules/depend_on_what_you_use/0.4.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.4.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.7.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.4.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.4.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", "rolling" ]
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.4.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.4.0/depend_on_what_you_use-0.4.0.tar.gz",
"integrity": "sha256-5zQJmskiY/YfFV4qOdwpk3voGNFtJYkbFmR2cQ7CWsQ=",
"strip_prefix": "depend_on_what_you_use-0.4.0",
"patch_strip": 0,
"patches": {
"module_dot_bazel.patch": "sha256-ZVqyVNzEdCfe+6D0OxK1d0N7M+qAdxpF/Ft/7SDZCR8="
}
}
3 changes: 2 additions & 1 deletion modules/depend_on_what_you_use/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"versions": [
"0.1.0",
"0.2.0",
"0.3.0"
"0.3.0",
"0.4.0"
],
"yanked_versions": {}
}

0 comments on commit 8c4240e

Please sign in to comment.