Skip to content

Commit 02990c5

Browse files
committed
spike through the repo rule
1 parent a79bbfa commit 02990c5

File tree

4 files changed

+21
-1
lines changed

4 files changed

+21
-1
lines changed

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ internal_dev_deps = use_extension(
9898
"internal_dev_deps",
9999
dev_dependency = True,
100100
)
101-
use_repo(internal_dev_deps, "buildkite_config", "wheel_for_testing")
101+
use_repo(internal_dev_deps, "buildkite_config", "wheel_for_testing", "whl_metadata_parsing_tests")
102102

103103
# Add gazelle plugin so that we can run the gazelle example as an e2e integration
104104
# test and include the distribution files.

python/private/internal_dev_deps.bzl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
load("@bazel_ci_rules//:rbe_repo.bzl", "rbe_preconfig")
1717
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
18+
load("//python/private/pypi:whl_metadata_repo.bzl", "whl_metadata_repo")
1819

1920
def _internal_dev_deps_impl(mctx):
2021
_ = mctx # @unused
@@ -38,6 +39,10 @@ def _internal_dev_deps_impl(mctx):
3839
toolchain = "ubuntu1804-bazel-java11",
3940
)
4041

42+
whl_metadata_repo(
43+
name = "whl_metadata_parsing_tests",
44+
)
45+
4146
internal_dev_deps = module_extension(
4247
implementation = _internal_dev_deps_impl,
4348
doc = "This extension creates internal rules_python dev dependencies.",
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
""
2+
3+
def _impl(rctx):
4+
fail(rctx.name)
5+
6+
whl_metadata_repo = repository_rule(
7+
implementation = _impl,
8+
attrs = {
9+
},
10+
)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
load("@whl_metadata_parsing_tests//:defs.bzl", "whl_metadata_parsing_test_suite")
12
load(":whl_metadata_tests.bzl", "whl_metadata_test_suite")
23

34
whl_metadata_test_suite(
45
name = "whl_metadata_tests",
56
)
7+
8+
whl_metadata_parsing_test_suite(
9+
name = "whl_metadata_parsing_test_suite",
10+
)

0 commit comments

Comments
 (0)