Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a333d2b

Browse filesBrowse files
committed
Prepare for bzlmod release
1 parent 3288156 commit a333d2b
Copy full SHA for a333d2b

File tree

Expand file treeCollapse file tree

5 files changed

+59
-1
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+59
-1
lines changed

‎.bcr/config.yml

Copy file name to clipboard
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fixedReleaser:
2+
login: rickeylev
3+
email: rlevasseur@google.com

‎.bcr/presubmit.yml

Copy file name to clipboard
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
bcr_test_module:
3+
module_path: "examples/bzlmod"
4+
matrix:
5+
platform: ["debian10", "macos", "ubuntu2004", "windows"]
6+
tasks:
7+
run_tests:
8+
name: "Run test module"
9+
platform: ${{ platform }}
10+
test_targets:
11+
- "//..."

‎.bcr/source.template.json

Copy file name to clipboard
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"integrity": "",
3+
"strip_prefix": "{REPO}-{VERSION}",
4+
"url": "https://github.com/{OWNER}/{REPO}/archive/refs/tags/{TAG}.tar.gz"
5+
}

‎.bcr/template.metadata.json

Copy file name to clipboard
+20Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"homepage": "https://github.com/bazelbuild/rules_python",
3+
"maintainers": [
4+
{
5+
"name": "Richard Levasseur",
6+
"email": "rlevasseur@google.com",
7+
"github": "rickeylev"
8+
},
9+
{
10+
"name": "Greg Roodt",
11+
"email": "groodt@gmail.com",
12+
"github": "groodt"
13+
}
14+
],
15+
"repository": [
16+
"github:bazelbuild/rules_python"
17+
],
18+
"versions": [],
19+
"yanked_versions": {}
20+
}

‎.github/workflows/workspace_snippet.sh

Copy file name to clipboardExpand all lines: .github/workflows/workspace_snippet.sh
+20-1Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,26 @@ PREFIX="rules_python-${TAG}"
99
SHA=$(git archive --format=tar --prefix=${PREFIX}/ ${TAG} | gzip | shasum -a 256 | awk '{print $1}')
1010

1111
cat << EOF
12-
WORKSPACE setup:
12+
Using Bzlmod with Bazel 6
13+
14+
Add to your \`MODULE.bazel\` file:
15+
16+
\`\`\`starlark
17+
bazel_dep(name = "rules_python", version = "${TAG}")
18+
19+
pip = use_extension("@rules_python//python:extensions.bzl", "pip")
20+
21+
pip.parse(
22+
name = "pip",
23+
requirements_lock = "//:requirements_lock.txt",
24+
)
25+
26+
use_repo(pip, "pip")
27+
\`\`\`
28+
29+
Using WORKSPACE:
30+
31+
Paste this snippet into your \`WORKSPACE\` file:
1332
1433
\`\`\`starlark
1534
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.