-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMODULE.bazel
47 lines (40 loc) · 1.86 KB
/
MODULE.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright 2024-2025 The Bedrock-RTL Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
This module defines the Bazel Module (bzlmod) configuration for the Bedrock-RTL project.
"""
module(
name = "bedrock-rtl",
version = "0.0.1",
)
rules_hdl_extension = use_extension("//dependency_support/rules_hdl:extension.bzl", "rules_hdl_extension")
use_repo(rules_hdl_extension, "rules_hdl")
bazel_dep(name = "stardoc", version = "0.7.1")
bazel_dep(name = "rules_python", version = "1.0.0-rc1")
bazel_dep(name = "bazel_skylib", version = "1.7.1")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(python_version = "3.12")
use_repo(python, "python_3_12", "python_versions", "pythons_hub")
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
# The requirements_lock_3_12.txt file is auto-generated from requirements_3_12.in and statically checked in.
# To regenerate it, run `bazel run //:requirements_3_12.update`.
pip.parse(
# Hub names must be unique across Bazel modules. To avoid problems when integrating
# this module with others, namespace the hub name using the git repo name.
hub_name = "bedrock-rtl-pypi",
# We need to use the same version here as in the `python.toolchain` call.
python_version = "3.12",
requirements_lock = "//:requirements_lock_3_12.txt",
)
use_repo(pip, "bedrock-rtl-pypi")