Skip to content

chore: replace locally copied universe_domain helpers once core dependency floors rise #19297

Backlog

Description

@chalmerlowe

Summary

Several packages in googleapis/google-cloud-python test against oldest-supported dependency floors in testing/constraints-*.txt (for example google-api-core==2.25.0/2.28.0 and google-auth==2.14.1). Because those floors predate the shared helpers added to google.api_core.universe (in #19211) and google.auth._helpers (in #19200, #19216, #19220), downstream packages temporarily carry local copies of those helpers annotated with # TODO(https://github.com/googleapis/google-cloud-python/issues/19297):.

Cleanup Plan

Once a package raises its minimum supported version past the release containing the corresponding shared helper:

  • Replace local copies of resolve_client_universe, validate_credentials_universe, and is_googleapis_host with direct imports from google.api_core.universe (once minimum google-api-core > 2.44.0).
  • Replace local copies of has_default_universe_host, validate_universe_domain, and compare_universe_domains with direct imports from google.auth._helpers (once minimum google-auth > 2.63.1).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions