Skip to content

Commit

Permalink
Prepare for bzlmod release
Browse files Browse the repository at this point in the history
  • Loading branch information
kormide committed Nov 1, 2022
1 parent 62f0444 commit 1dfeacd
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .bcr/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fixedReleaser:
login: rickeylev
email: rlevasseur@google.com
11 changes: 11 additions & 0 deletions .bcr/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

bcr_test_module:
module_path: "examples/bzlmod"
matrix:
platform: ["debian10", "macos", "ubuntu2004", "windows"]
tasks:
run_tests:
name: "Run test module"
platform: ${{ platform }}
test_targets:
- "//..."
5 changes: 5 additions & 0 deletions .bcr/source.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"integrity": "",
"strip_prefix": "{REPO}-{VERSION}",
"url": "https://github.com/{OWNER}/{REPO}/archive/refs/tags/{TAG}.tar.gz"
}
20 changes: 20 additions & 0 deletions .bcr/template.metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"homepage": "https://github.com/bazelbuild/rules_python",
"maintainers": [
{
"name": "Richard Levasseur",
"email": "rlevasseur@google.com",
"github": "rickeylev"
},
{
"name": "Greg Roodt",
"email": "groodt@gmail.com",
"github": "groodt"
}
],
"repository": [
"github:bazelbuild/rules_python"
],
"versions": [],
"yanked_versions": {}
}
21 changes: 20 additions & 1 deletion .github/workflows/workspace_snippet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,26 @@ PREFIX="rules_python-${TAG}"
SHA=$(git archive --format=tar --prefix=${PREFIX}/ ${TAG} | gzip | shasum -a 256 | awk '{print $1}')

cat << EOF
WORKSPACE setup:
Using Bzlmod with Bazel 6
Add to your \`MODULE.bazel\` file:
\`\`\`starlark
bazel_dep(name = "rules_python", version = "${TAG}")
pip = use_extension("@rules_python//python:extensions.bzl", "pip")
pip.parse(
name = "pip",
requirements_lock = "//:requirements_lock.txt",
)
use_repo(pip, "pip")
\`\`\`
Using WORKSPACE:
Paste this snippet into your \`WORKSPACE\` file:
\`\`\`starlark
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
Expand Down

0 comments on commit 1dfeacd

Please sign in to comment.