rules_zapp/WORKSPACE

45 lines
1.4 KiB
Python
Raw Permalink Normal View History

2021-08-09 15:26:06 +00:00
# WORKSPACE
#
# This file exists to configure the Bazel (https://bazel.build/) build tool to our needs.
# Particularly, it installs rule definitions and other capabilities which aren't in Bazel core.
# In the future we may have our own modifications to this config.
# Install the blessed Python and PyPi rule support
# From https://github.com/bazelbuild/rules_python
workspace(
name = "rules_zapp",
)
load(
"@bazel_tools//tools/build_defs/repo:git.bzl",
"git_repository",
)
####################################################################################################
# Skylib
####################################################################################################
git_repository(
name = "bazel_skylib",
remote = "https://github.com/bazelbuild/bazel-skylib.git",
tag = "1.0.3",
)
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
2021-08-30 03:41:20 +00:00
####################################################################################################
# rules_python
####################################################################################################
2021-08-09 15:26:06 +00:00
git_repository(
name = "rules_python",
remote = "https://github.com/bazelbuild/rules_python.git",
tag = "0.3.0",
)
2021-08-30 03:41:20 +00:00
# And so that zapp can zapp itself...
# Note that consumers DO NOT get this dependency "for free".
register_toolchains(
"//zapp:python3_toolchain",
)