2021-08-09 15:26:06 +00:00
|
|
|
# WORKSPACE
|
|
|
|
|
|
|
|
workspace(
|
|
|
|
name = "zapp_examples",
|
|
|
|
)
|
|
|
|
|
|
|
|
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 00:44:43 +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
|
|
|
load("@rules_python//python:pip.bzl", "pip_install")
|
|
|
|
|
|
|
|
pip_install(
|
|
|
|
name = "my_deps",
|
|
|
|
requirements = "//:requirements.txt",
|
|
|
|
)
|
|
|
|
|
|
|
|
####################################################################################################
|
|
|
|
# rules_zapp
|
|
|
|
####################################################################################################
|
2021-08-30 01:46:49 +00:00
|
|
|
|
2021-08-29 21:07:56 +00:00
|
|
|
# git_repository(
|
|
|
|
# name = "rules_zapp",
|
|
|
|
# remote = "https://github.com/arrdem/rules_zapp.git",
|
2021-08-30 03:41:20 +00:00
|
|
|
# tag = "0.1.3",
|
2021-08-29 21:07:56 +00:00
|
|
|
# # branch = "trunk",
|
|
|
|
# )
|
|
|
|
|
|
|
|
local_repository(
|
2021-08-09 15:26:06 +00:00
|
|
|
name = "rules_zapp",
|
2021-08-29 21:07:56 +00:00
|
|
|
path = "../",
|
2021-08-09 15:26:06 +00:00
|
|
|
)
|
|
|
|
|
2021-08-30 03:41:20 +00:00
|
|
|
# Use the py3 default toolchain from zapp for a quickstart
|
|
|
|
register_toolchains(
|
|
|
|
"@rules_zapp//zapp:python3_toolchain",
|
2021-08-09 15:26:06 +00:00
|
|
|
)
|