Prepare release 0.52.0: update version, dependencies, and Python 3.10-3.13 support#395
Open
vkarampudi wants to merge 11 commits into
Open
Prepare release 0.52.0: update version, dependencies, and Python 3.10-3.13 support#395vkarampudi wants to merge 11 commits into
vkarampudi wants to merge 11 commits into
Conversation
…int and pytest pythonpath
…h to pyproject.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prepare Fairness Indicators and TensorBoard Plugin for 0.52.0 Release
Overview
This pull request prepares both the core
fairness-indicatorspackage andtensorboard-plugin-fairness-indicatorsfor the 0.52.0 release. It upgrades core dependencies to align with TensorFlow 2.21.0 and TFX 0.52.0, updates the Python support matrix to 3.10–3.13 across all metadata and CI workflows, fixes protobuf config import compatibility issues in TFMA 0.52.0, and ensures 100% compliance across test suites and pre-commit linters.Detailed Summary of Changes
1. Version Bump & Release Notes
0.51.0to0.52.0in:fairness_indicators/version.pytensorboard_plugin/tensorboard_plugin_fairness_indicators/version.pyRELEASE.mdandtensorboard_plugin/tensorboard_plugin_fairness_indicators/RELEASE.md.2. Python Support Matrix (3.10 – 3.13)
setup.pyandtensorboard_plugin/setup.pyclassifiers to officially declare support for Python3.10,3.11,3.12, and3.13..github/workflows/build.yml,.github/workflows/docs.yml, and.github/workflows/test.ymlto run against Python['3.10', '3.11', '3.12', '3.13'].3. Dependency & Ecosystem Alignment
Updated dependency constraints in
setup.pyandtensorboard_plugin/setup.pyto match the TF 2.21 / TFX 0.52 ecosystem:tensorflow>=2.21,<2.22(andtf-keras>=2.21,<2.22in plugin).tensorflow-model-analysis>=0.52.0,<0.53.0(>=0.52,<0.53in plugin).tensorflow-data-validation>=1.21.0,<2.0.0.protobuf>=6.0.0,<7.0.0(aligned with TFDV 1.21.0 while avoiding pip resolution conflicts with TF 2.21.0).4. Code Compatibility & Bug Fixes
EvalConfig) were removed from top-level module exports insdk.py. Updated the following files to importconfig_pb2directly fromtensorflow_model_analysis.protoand useconfig_pb2.EvalConfig(), resolving allAttributeError: module 'tensorflow_model_analysis' has no attribute 'EvalConfig'test failures:fairness_indicators/example_model_test.pyfairness_indicators/tutorial_utils/util.pyfairness_indicators/tutorial_utils/util_test.pytensorboard_plugin/tensorboard_plugin_fairness_indicators/plugin_test.py5. Test Environment & Linter Compliance
pythonpath = ["."]topyproject.tomlandpythonpath = .totensorboard_plugin/pytest.iniso local pytest execution discovers package modules cleanly without requiring an editable pip install.import tensorflow_model_analysis as tfma) infairness_indicators/tutorial_utils/util_test.py, satisfying ruff linter ruleF401and ensuring 100% clean pre-commit CI checks.6. Build & PyPI Publishing Automation
release: types: [published, created, edited]and tag pushes (tags: ['*']) to.github/workflows/build.ymlso that creating/drafting a release automatically triggers the build and upload workflow.build.ymlto build and package bothfairness-indicatorsandtensorboard-plugin-fairness-indicatorswheels and sdists.PYPI_API_TOKEN/PYPI_TOKEN/PYPI_PASSWORD) and PyPI Trusted Publishing.