Skip to content

Upgrade TFMD to align with TF 2.21.0 and Added Python 3.12/3.13 support#63

Open
vkarampudi wants to merge 2 commits intotensorflow:masterfrom
vkarampudi:align-tf-2.21
Open

Upgrade TFMD to align with TF 2.21.0 and Added Python 3.12/3.13 support#63
vkarampudi wants to merge 2 commits intotensorflow:masterfrom
vkarampudi:align-tf-2.21

Conversation

@vkarampudi
Copy link
Copy Markdown
Contributor

@vkarampudi vkarampudi commented Apr 14, 2026

Summary

This PR aligns tensorflow-metadata (TFMD) with TensorFlow 2.21 dependencies, adds support for Python 3.12, and drops support for Python 3.9.

Changes

Python Version Support

  • setup.py: Added support for py3.12 and py3.13 versions and updated python_requires to ">=3.10,<4" and removed Python py3.9 support as well as in classifiers.
  • CI Workflows (test.yml, wheels.yml): Removed Python 3.9 from the build and test matrices and added Python 3.12 and 3.13.

Dependency Alignment & Build System

  • Protobuf: Upgraded to 6.31.1 in WORKSPACE to align with TF 2.21.
  • rules_python: Added rules_python (version 0.31.0) to WORKSPACE to resolve dependency resolution errors.
  • bazel_skylib: Upgraded to 1.9.0 in WORKSPACE to resolve missing paths.is_normalized error required by Protobuf.
  • Bazel Version: Relaxed the Bazel version check in WORKSPACE to 7.4.1 to allow local builds (CI remains at 7.7.0).
  • Dummy Proxies: Created a dummy repository @compatibility_proxy in third_party/dummy_compatibility_proxy to satisfy transitive dependencies from rules_java without fetching large unused external packages.

Documentation

  • RELEASE.md: Updated with these changes under the "Current Version" section.

Verification

Automated Tests

  • All unit tests passed with pytest on Python 3.10, 3.11, 3.12 and 3.13.

Manual Verification

  • Verified that bazel build //tensorflow_metadata/... completes successfully when using Clang 19 (--repo_env=CC=clang) to avoid .sframe relocation errors caused by GCC 15.

@vkarampudi vkarampudi changed the title Align TFMD with TF 2.21 and Python 3.12 Upgrade TFMD to align with TF 2.21.0 and Added Python 3.12/3.13 support Apr 22, 2026
@rwitcher rwitcher requested a review from genehwung May 1, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants