Skip to content

Commit 900d011

Browse files
authored
Add 0.9.0 release of rules_pkl (#4684)
Release notes: https://github.com/apple/rules_pkl/releases/tag/v0.9.0
1 parent 75289bf commit 900d011

File tree

5 files changed

+191
-1
lines changed

5 files changed

+191
-1
lines changed

modules/rules_pkl/0.9.0/MODULE.bazel

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
# Copyright © 2024-2025 Apple Inc. and the Pkl project authors. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
"""apple/rules_pkl"""
16+
17+
module(
18+
name = "rules_pkl",
19+
version = "0.9.0",
20+
bazel_compatibility = [">=7.0.0"],
21+
compatibility_level = 1,
22+
)
23+
24+
bazel_dep(name = "aspect_bazel_lib", version = "2.13.0")
25+
bazel_dep(name = "bazel_skylib", version = "1.7.1")
26+
bazel_dep(name = "platforms", version = "0.0.11")
27+
bazel_dep(name = "rules_java", version = "8.11.0")
28+
bazel_dep(name = "rules_jvm_external", version = "6.7")
29+
bazel_dep(name = "rules_shell", version = "0.4.0")
30+
31+
bazel_dep(name = "buildifier_prebuilt", version = "7.3.1", dev_dependency = True)
32+
bazel_dep(name = "gazelle", version = "0.43.0", dev_dependency = True, repo_name = "bazel_gazelle")
33+
bazel_dep(name = "rules_bazel_integration_test", version = "0.29.0", dev_dependency = True)
34+
bazel_dep(name = "rules_python", version = "1.3.0", dev_dependency = True)
35+
bazel_dep(name = "stardoc", version = "0.8.0", dev_dependency = True)
36+
37+
pkl = use_extension("//pkl/extensions:pkl.bzl", "pkl")
38+
use_repo(
39+
pkl,
40+
"pkl-cli-linux-aarch64",
41+
"pkl-cli-linux-amd64",
42+
"pkl-cli-macos-aarch64",
43+
"pkl-cli-macos-amd64",
44+
)
45+
46+
register_toolchains(
47+
"@rules_pkl//pkl:pkl_toolchain_codegen_java",
48+
"@rules_pkl//pkl:pkl_toolchain_linux_aarch64",
49+
"@rules_pkl//pkl:pkl_toolchain_linux_amd64",
50+
"@rules_pkl//pkl:pkl_toolchain_macos_aarch64",
51+
"@rules_pkl//pkl:pkl_toolchain_macos_amd64",
52+
)
53+
54+
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
55+
maven.install(
56+
name = "rules_pkl_deps",
57+
artifacts = [
58+
"org.pkl-lang:pkl-tools:0.28.2",
59+
"org.pkl-lang:pkl-config-java:0.28.2",
60+
"org.pkl-lang:pkl-tools:0.28.2",
61+
"org.jetbrains.kotlin:kotlin-stdlib:2.0.21",
62+
"com.google.code.gson:gson:2.12.1",
63+
"org.junit.vintage:junit-vintage-engine:5.7.0",
64+
],
65+
lock_file = "//pkl/private:pkl_deps_install.json",
66+
repositories = [
67+
"https://repo1.maven.org/maven2/",
68+
],
69+
)
70+
use_repo(
71+
maven,
72+
"rules_pkl_deps",
73+
"unpinned_rules_pkl_deps",
74+
)
75+
maven.install(
76+
name = "custom_pkl_java_library_maven_deps",
77+
artifacts = [
78+
"org.pkl-lang:pkl-config-java:0.28.2",
79+
],
80+
lock_file = "//pkl/private:pkl_deps_custom_java_library_maven_deps_install.json",
81+
repositories = [
82+
"https://repo1.maven.org/maven2/",
83+
],
84+
)
85+
use_repo(
86+
maven,
87+
"custom_pkl_java_library_maven_deps",
88+
"unpinned_custom_pkl_java_library_maven_deps",
89+
)
90+
91+
python = use_extension(
92+
"@rules_python//python/extensions:python.bzl",
93+
"python",
94+
dev_dependency = True,
95+
)
96+
python.toolchain(
97+
configure_coverage_tool = True,
98+
ignore_root_user_error = True,
99+
python_version = "3.12",
100+
)
101+
102+
bazel_binaries = use_extension(
103+
"@rules_bazel_integration_test//:extensions.bzl",
104+
"bazel_binaries",
105+
dev_dependency = True,
106+
)
107+
bazel_binaries.download(version = "7.6.1")
108+
bazel_binaries.download(version = "8.2.1")
109+
use_repo(
110+
bazel_binaries,
111+
"bazel_binaries",
112+
"bazel_binaries_bazelisk",
113+
"build_bazel_bazel_7_6_1",
114+
"build_bazel_bazel_8_2_1",
115+
)
116+
117+
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
118+
119+
hawkeye_coordinates = [
120+
{
121+
"name": "hawkeye-aarch64-apple-darwin",
122+
"url": "https://github.com/korandoru/hawkeye/releases/download/v6.0.2/hawkeye-aarch64-apple-darwin.tar.xz",
123+
"sha256": "9f300ad84201e500c4eb09ed710239797d2a6a17de5b7c08e1d3af1704ca6bb7",
124+
},
125+
{
126+
"name": "hawkeye-x86_64-apple-darwin",
127+
"url": "https://github.com/korandoru/hawkeye/releases/download/v6.0.2/hawkeye-x86_64-apple-darwin.tar.xz",
128+
"sha256": "6f8850adb9204b6218f4912fb987106a71fcd8d742ce20227697ddccc44cec38",
129+
},
130+
{
131+
"name": "hawkeye-x86_64-unknown-linux-gnu",
132+
"url": "https://github.com/korandoru/hawkeye/releases/download/v6.0.2/hawkeye-x86_64-unknown-linux-gnu.tar.xz",
133+
"sha256": "d5b9d3cdb4293ac84fa27e5021c77b6c062c61071760ab05fcacfbec1ac14850",
134+
},
135+
]
136+
137+
[
138+
http_archive(
139+
name = coords["name"],
140+
build_file = "//scripts:hawkeye.BUILD",
141+
sha256 = coords["sha256"],
142+
strip_prefix = coords["name"],
143+
url = coords["url"],
144+
)
145+
for coords in hawkeye_coordinates
146+
]

modules/rules_pkl/0.9.0/patches/update-version.patch

Whitespace-only changes.

modules/rules_pkl/0.9.0/presubmit.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
matrix:
2+
platform:
3+
- debian11
4+
- ubuntu2204
5+
- macos
6+
- macos_arm64
7+
bazel:
8+
- 8.x
9+
- 7.x
10+
tasks:
11+
verify_targets:
12+
name: Verify build targets
13+
platform: ${{ platform }}
14+
bazel: ${{ bazel }}
15+
build_targets:
16+
- '@rules_pkl//pkl/...'
17+
bcr_test_module:
18+
module_path: examples
19+
matrix:
20+
platform:
21+
- debian11
22+
- ubuntu2204
23+
- macos
24+
- macos_arm64
25+
bazel:
26+
- 8.x
27+
- 7.x
28+
tasks:
29+
run_test_module:
30+
name: Run test module
31+
platform: ${{ platform }}
32+
bazel: ${{ bazel }}
33+
build_targets:
34+
- //...

modules/rules_pkl/0.9.0/source.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"url": "https://github.com/apple/rules_pkl/releases/download/v0.9.0/rules_pkl-0.9.0.tar.gz",
3+
"integrity": "sha256-sVWdvTaf2Kb299E8C78GZ2SZ4dlqxncIl70lZbd6a8g=",
4+
"strip_prefix": "rules_pkl-0.9.0",
5+
"patch_strip": 1,
6+
"patches": {
7+
"update-version.patch": "sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="
8+
}
9+
}

modules/rules_pkl/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
"0.5.0",
5454
"0.6.0",
5555
"0.7.0",
56-
"0.8.0"
56+
"0.8.0",
57+
"0.9.0"
5758
],
5859
"yanked_versions": {}
5960
}

0 commit comments

Comments
 (0)