forked from tableau/document-api-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMODULE.bazel
More file actions
26 lines (20 loc) · 914 Bytes
/
Copy pathMODULE.bazel
File metadata and controls
26 lines (20 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
bazel_dep(name = "rules_python", version = "1.7.0")
bazel_dep(name = "rules_python_gazelle_plugin", version = "1.3.0")
bazel_dep(name = "gazelle", version = "0.51.3", repo_name = "bazel_gazelle")
bazel_dep(name = "platforms", version = "1.0.0")
# # Import the python repositories generated by the given module extension into the scope of the current module.
# use_repo(python, "python3_9")
# use_repo(python, "python3_9_toolchains")
# # Register an already-defined toolchain so that Bazel can use it during toolchain resolution.
# register_toolchains(
# "@python3_9_toolchains//:all",
# )
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "pypi",
python_version = "3.11",
requirements_lock = "//:requirements.txt",
requirements_darwin = "//:requirements_darwin.txt",
requirements_linux = "//:requirements_linux.txt",
)
use_repo(pip, "pypi")