Modernize federated_language dependency stacks#339
Merged
Conversation
318a517 to
86398d5
Compare
This CL upgrades federated_language to drop Python 3.9 support, following the Python community's end-of-support (EOL) timeline, and relaxes over-constrained dependency specifications to avoid resolution collisions in downstream environments. Key changes: - Raised minimum Python requirements to `>=3.10` and stripped legacy `sys.version_info` isinstance Union-unpacking workarounds from `py_typecheck.py`. - Migrated all imports of `TypeGuard` from `typing_extensions` to Python 3.10+ native standard library `typing.TypeGuard`, allowing the complete removal of the `typing-extensions` dependency. - Relaxed dependency constraints on `attrs` (to `>=23.1,<27.0`) and `dm-tree` (to `>=0.1.8,<0.3.0`) in package configurations. - Aligned `protobuf` dependency boundaries with TensorFlow's upper limit (`protobuf>=5.29,<7.0`). - Fully cleaned up Python 3.9 toolchains (for which community support has ended), pip requirements compilers, matrices, lock files, and sync scripts across workspace Bazel configurations, GitHub Actions, and Copybara configurations. PiperOrigin-RevId: 917319954
86398d5 to
86a0ea4
Compare
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.
Modernize federated_language dependency stacks
This CL upgrades federated_language to drop Python 3.9 support, following the Python community's end-of-support (EOL) timeline, and relaxes over-constrained dependency specifications to avoid resolution collisions in downstream environments.
Key changes:
>=3.10and stripped legacysys.version_infoisinstance Union-unpacking workarounds frompy_typecheck.py.TypeGuardfromtyping_extensionsto Python 3.10+ native standard librarytyping.TypeGuard, allowing the complete removal of thetyping-extensionsdependency.attrs(to>=23.1,<27.0) anddm-tree(to>=0.1.8,<0.3.0) in package configurations.protobufdependency boundaries with TensorFlow's upper limit (protobuf>=5.29,<7.0).