-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add depend_on_what_you_use 0.4.0 (#2299)
- Loading branch information
Showing
5 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
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,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"], | ||
) |
9 changes: 9 additions & 0 deletions
9
modules/depend_on_what_you_use/0.4.0/patches/module_dot_bazel.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,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"], | ||
) |
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 @@ | ||
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 |
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,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=" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -13,7 +13,8 @@ | |
"versions": [ | ||
"0.1.0", | ||
"0.2.0", | ||
"0.3.0" | ||
"0.3.0", | ||
"0.4.0" | ||
], | ||
"yanked_versions": {} | ||
} |