Skip to content

Commit

Permalink
WIP: Add explicit Python package requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Tombana committed Jun 14, 2024
1 parent c7c8c62 commit daef10c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions larq_compute_engine/tflite/python/BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
load("@org_tensorflow//tensorflow:tensorflow.bzl", "pybind_extension")
load("@org_tensorflow//tensorflow/lite:build_def.bzl", "tflite_linkopts")
load("@pypi//:requirements.bzl", "requirement")

package(
default_visibility = ["//visibility:public"],
Expand Down Expand Up @@ -35,6 +36,9 @@ py_library(
"__init__.py",
"interpreter_base.py",
],
deps = [
requirement("numpy"),
],
)

py_library(
Expand Down
3 changes: 3 additions & 0 deletions larq_compute_engine/tflite/tests/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@pypi//:requirements.bzl", "requirement")

package(
default_visibility = ["//visibility:public"],
licenses = ["notice"], # Apache 2.0
Expand Down Expand Up @@ -80,6 +82,7 @@ py_test(
srcs = ["interpreter_test.py"],
deps = [
"//larq_compute_engine/tflite/python:interpreter",
requirement("numpy"),
],
)

Expand Down

0 comments on commit daef10c

Please sign in to comment.