tflite-micro/python
Ryan Kuester 068c6a59b6
build(bazel): inject tflite_micro shim via tflm_py_* wrappers (#3573)
Python targets in this repository import one another under the
"tflite_micro" package namespace, which //:tflite_micro_shim synthesizes
at import time. The shim is required under Bzlmod, where the main
repository's runfiles root is the fixed name "_main" rather than the
module name, so the "tflite_micro" prefix no longer resolves on its own.
Every such target therefore had to list //:tflite_micro_shim in its
deps, which was repetitive and easy to forget.

Add tflm_py_library, tflm_py_test, and tflm_py_binary wrappers in a new
//python:py_rules.bzl that inject the shim dependency automatically,
following the naming convention of the existing tflm_cc_* wrappers, and
document the shim's rationale there. Convert every target that
previously listed the shim to the corresponding wrapper and drop the
explicit dependency. The dependency graph is unchanged; only the means
by which the shim is attached differs.
2026-05-26 19:51:58 +00:00
..
tests Bazel Module (#3364) 2026-02-11 14:11:47 -08:00
tflite_micro build(bazel): inject tflite_micro shim via tflm_py_* wrappers (#3573) 2026-05-26 19:51:58 +00:00
BUILD Bazel Module (#3364) 2026-02-11 14:11:47 -08:00
numpy_cc_targets.bzl Bazel Module (#3364) 2026-02-11 14:11:47 -08:00
py_namespace.bzl Typo in code (#3447) 2026-02-11 20:34:42 +00:00
py_rules.bzl build(bazel): inject tflite_micro shim via tflm_py_* wrappers (#3573) 2026-05-26 19:51:58 +00:00
python_requirements.in No tensorflow 2 (#3548) 2026-05-06 21:17:46 +00:00
python_requirements_3_10.txt No tensorflow 2 (#3548) 2026-05-06 21:17:46 +00:00
python_requirements_3_11.txt No tensorflow 2 (#3548) 2026-05-06 21:17:46 +00:00
python_requirements_3_12.txt No tensorflow 2 (#3548) 2026-05-06 21:17:46 +00:00
python_requirements_3_13.txt No tensorflow 2 (#3548) 2026-05-06 21:17:46 +00:00
tensorflow_cc_targets.bzl Bazel Module (#3364) 2026-02-11 14:11:47 -08:00