tflite-micro/python
Ryan Kuester 70955d09f7
feat(pypi): add support for Python 3.12 and 3.13 (#3211)
Add build configuration for Python 3.12 and 3.13 to the PyPI package.
Update the BUILD file with new compatibility tags and config settings,
extend pypi_build.sh to accept the new Python versions, and add build
steps in the GitHub Actions workflow.

Fix whl_test.sh to rename wheels with unstamped variable names before
pip installation. The py_wheel rule creates the base :whl target with
literal stamp variables like _BUILD_EMBED_LABEL_ in the filename for
Bazel caching purposes. Pip 25.x, which ships with Python 3.12+,
strictly validates wheel filenames and rejects these as invalid version
specifiers. Use sed to replace the unstamped variables with a valid
placeholder version (0.0.0) for testing purposes.

Python 3.14 support is not included because Python 3.14 has not yet
been released (scheduled for October 2025).

Fixes: #3186

Co-authored-by: Esun Kim <veblush@google.com>
2025-10-08 09:54:06 -07:00
..
tests [CI] Fix build (#3194) 2025-09-19 20:48:22 +00:00
tflite_micro feat(pypi): add support for Python 3.12 and 3.13 (#3211) 2025-10-08 09:54:06 -07:00
BUILD
py_namespace.bzl
py_pkg_cc_deps.bzl