Skip to content

Commit

Permalink
Migrate to bzlmod
Browse files Browse the repository at this point in the history
  • Loading branch information
tryuan99 committed Dec 15, 2024
1 parent 5eb4cc6 commit 4591f4d
Show file tree
Hide file tree
Showing 40 changed files with 3,326 additions and 104 deletions.
3 changes: 1 addition & 2 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# Workaround for spaces in the filenames. See https://github.com/bazelbuild/bazel/issues/4327.
build --experimental_inprocess_symlink_creation
common --enable_bzlmod
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.5.0
8.0.0
26 changes: 26 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module(name = "scum")

bazel_dep(
name = "rules_pkg",
version = "1.0.1",
)
bazel_dep(
name = "rules_python",
version = "1.0.0",
)

# Configure the Python toolchain.
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
is_default = True,
python_version = "3.12",
)

# Load pip dependencies.
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "pypi",
python_version = "3.12",
requirements_lock = "//deps:requirements.txt",
)
use_repo(pip, "pypi")
3,253 changes: 3,253 additions & 0 deletions MODULE.bazel.lock

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This file marks the root of the Bazel workspace.
# See MODULE.bazel for external dependencies setup.
31 changes: 0 additions & 31 deletions WORKSPACE.bazel

This file was deleted.

2 changes: 1 addition & 1 deletion analysis/scum/adc/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion analysis/scum/adc/capacitor/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion analysis/scum/adc/enob/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion analysis/scum/adc/mux/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion analysis/scum/adc/noise/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion analysis/scum/adc/sensor/oect/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion analysis/scum/adc/sensor/ph/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion analysis/scum/adc/sensor/potentiometric/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion analysis/scum/adc/sensor/resistive/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion analysis/scum/antenna/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion analysis/scum/radio/rx/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion analysis/scum/radio/tuning/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion arduino/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
6 changes: 3 additions & 3 deletions deps/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
load("@rules_python//python:pip.bzl", "compile_pip_requirements")

compile_pip_requirements(
name = "pip_requirements",
requirements_in = "//deps:pip_requirements.in",
requirements_txt = "//deps:pip_requirements.txt",
name = "requirements",
requirements_in = "//deps:requirements.in",
requirements_txt = "//deps:requirements.txt",
)
8 changes: 0 additions & 8 deletions deps/pip_deps.bzl

This file was deleted.

10 changes: 0 additions & 10 deletions deps/pip_requirements.bzl

This file was deleted.

File renamed without changes.
24 changes: 12 additions & 12 deletions deps/pip_requirements.txt → deps/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# bazel run //deps:pip_requirements.update
# bazel run //deps:requirements.update
#
absl-py==2.1.0 \
--hash=sha256:526a04eadab8b4ee719ce68f204172ead1027549089702d99b9059f129ff1308 \
--hash=sha256:7820790efbb316739cde8b4e19357243fc3608a152024288513dd968d7d959ff
# via -r deps/pip_requirements.in
# via -r deps/requirements.in
contourpy==1.3.1 \
--hash=sha256:041b640d4ec01922083645a94bb3b2e777e6b626788f4095cf21abbe266413c1 \
--hash=sha256:05e806338bfeaa006acbdeba0ad681a10be63b26e1b17317bfac3c5d98f36cda \
Expand Down Expand Up @@ -272,12 +272,12 @@ matplotlib==3.10.0 \
--hash=sha256:d907fddb39f923d011875452ff1eca29a9e7f21722b873e90db32e5d8ddff12e \
--hash=sha256:fd44fc75522f58612ec4a33958a7e5552562b7705b42ef1b4f8c0818e304a363
# via
# -r deps/pip_requirements.in
# -r deps/requirements.in
# scienceplots
networkx==3.4.2 \
--hash=sha256:307c3669428c5362aab27c8a1260aa8f47c4e91d3891f48be0141738d8d053e1 \
--hash=sha256:df5d4365b724cf81b8c6a7312509d0c22386097011ad1abe274afd5e9d3bbc5f
# via -r deps/pip_requirements.in
# via -r deps/requirements.in
numpy==2.2.0 \
--hash=sha256:0557eebc699c1c34cccdd8c3778c9294e8196df27d713706895edc6f57d29608 \
--hash=sha256:0798b138c291d792f8ea40fe3768610f3c7dd2574389e37c3f26573757c8f7ef \
Expand Down Expand Up @@ -335,7 +335,7 @@ numpy==2.2.0 \
--hash=sha256:f0dd071b95bbca244f4cb7f70b77d2ff3aaaba7fa16dc41f58d14854a6204e6c \
--hash=sha256:f8c8b141ef9699ae777c6278b52c706b653bf15d135d302754f6b2e90eb30367
# via
# -r deps/pip_requirements.in
# -r deps/requirements.in
# contourpy
# matplotlib
# pandas
Expand Down Expand Up @@ -389,7 +389,7 @@ pandas==2.2.3 \
--hash=sha256:f3a255b2c19987fbbe62a9dfd6cff7ff2aa9ccab3fc75218fd4b7530f01efa24 \
--hash=sha256:fffb8ae78d8af97f849404f21411c95062db1496aeb3e56f146f0355c9989319
# via
# -r deps/pip_requirements.in
# -r deps/requirements.in
# scikit-rf
pillow==11.0.0 \
--hash=sha256:00177a63030d612148e659b55ba99527803288cea7c75fb05766ab7981a8c1b7 \
Expand Down Expand Up @@ -480,15 +480,15 @@ protobuf==5.29.1 \
--hash=sha256:8ee1461b3af56145aca2800e6a3e2f928108c749ba8feccc6f5dd0062c410c0d \
--hash=sha256:b5ba1d0e4c8a40ae0496d0e2ecfdbb82e1776928a205106d14ad6985a09ec155 \
--hash=sha256:d473655e29c0c4bbf8b69e9a8fb54645bc289dead6d753b952e7aa660254ae18
# via -r deps/pip_requirements.in
# via -r deps/requirements.in
pyparsing==3.2.0 \
--hash=sha256:93d9577b88da0bbea8cc8334ee8b918ed014968fd2ec383e868fb8afb1ccef84 \
--hash=sha256:cbf74e27246d595d9a74b186b810f6fbb86726dbf3b9532efb343f6d7294fe9c
# via matplotlib
pyserial==3.5 \
--hash=sha256:3c77e014170dfffbd816e6ffc205e9842efb10be9f58ec16d3e8675b4925cddb \
--hash=sha256:c4451db6ba391ca6ca299fb3ec7bae67a5c55dde170964c7a14ceefec02f2cf0
# via -r deps/pip_requirements.in
# via -r deps/requirements.in
python-dateutil==2.9.0.post0 \
--hash=sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3 \
--hash=sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427
Expand Down Expand Up @@ -594,15 +594,15 @@ regex==2024.11.6 \
--hash=sha256:fdabbfc59f2c6edba2a6622c647b716e34e8e3867e0ab975412c5c2f79b82da2 \
--hash=sha256:fdd6028445d2460f33136c55eeb1f601ab06d74cb3347132e1c24250187500d9 \
--hash=sha256:ff590880083d60acc0433f9c3f713c51f7ac6ebb9adf889c79a261ecf541aa91
# via -r deps/pip_requirements.in
# via -r deps/requirements.in
scienceplots==2.1.1 \
--hash=sha256:2e64d2e93b4f98702f30145dbb70d238f5dc315e227fec331489631232dfc9e0 \
--hash=sha256:d8d197e3410f87ebdad0b9c265eaab596094fb082d97123e835f6bc32800ab54
# via -r deps/pip_requirements.in
# via -r deps/requirements.in
scikit-rf==1.5.0 \
--hash=sha256:796758dcd79650d8c66585583ac8ef13afde0d65d2da324ec60a4557eae52a9a \
--hash=sha256:9864653abf0761049ba95deb37741581fff5cf8d43f4acf6e46576e34e04ad43
# via -r deps/pip_requirements.in
# via -r deps/requirements.in
scipy==1.14.1 \
--hash=sha256:0c2f95de3b04e26f5f3ad5bb05e74ba7f68b837133a4492414b3afd79dfe540e \
--hash=sha256:1729560c906963fc8389f6aac023739ff3983e727b1a4d87696b7bf108316a79 \
Expand Down Expand Up @@ -638,7 +638,7 @@ scipy==1.14.1 \
--hash=sha256:edaf02b82cd7639db00dbff629995ef185c8df4c3ffa71a5562a595765a06ce1 \
--hash=sha256:fef8c87f8abfb884dac04e97824b61299880c43f4ce675dd2cbeadd3c9b466d2
# via
# -r deps/pip_requirements.in
# -r deps/requirements.in
# scikit-rf
six==1.17.0 \
--hash=sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274 \
Expand Down
2 changes: 1 addition & 1 deletion openmote/jlink/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")

package(default_visibility = ["//visibility:public"])
Expand Down
2 changes: 1 addition & 1 deletion openwsn/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion scum/utils/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")

package(default_visibility = ["//visibility:public"])
Expand Down
2 changes: 1 addition & 1 deletion simulation/cic_filter/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion simulation/differential_mesh/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion tapeout/clocks/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion tapeout/power/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion tapeout/rf/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
9 changes: 0 additions & 9 deletions tools/python.bzl

This file was deleted.

2 changes: 1 addition & 1 deletion utils/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion utils/network/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion utils/ni_daq/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion utils/plotter/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")

package(default_visibility = ["//visibility:public"])
Expand Down
2 changes: 1 addition & 1 deletion utils/regression/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down
2 changes: 1 addition & 1 deletion utils/serial/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")

package(default_visibility = ["//visibility:public"])
Expand Down
2 changes: 1 addition & 1 deletion utils/visualization/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@pip_deps//:requirements.bzl", "requirement")
load("@pypi//:requirements.bzl", "requirement")

package(default_visibility = ["//visibility:public"])

Expand Down

0 comments on commit 4591f4d

Please sign in to comment.