Skip to content

Modernize federated_language dependency stacks#339

Merged
copybara-service[bot] merged 1 commit into
mainfrom
cl/916451737
May 18, 2026
Merged

Modernize federated_language dependency stacks#339
copybara-service[bot] merged 1 commit into
mainfrom
cl/916451737

Conversation

@copybara-service
Copy link
Copy Markdown

@copybara-service copybara-service Bot commented May 16, 2026

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:

  • 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.

@copybara-service copybara-service Bot force-pushed the cl/916451737 branch 4 times, most recently from 318a517 to 86398d5 Compare May 16, 2026 20:26
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
@copybara-service copybara-service Bot merged commit 86a0ea4 into main May 18, 2026
@copybara-service copybara-service Bot deleted the cl/916451737 branch May 18, 2026 17:52
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.

1 participant