Skip to content

fix: avoid overwriting google-cloud-functions modules - #438

Draft
iamdhrv wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
iamdhrv:fix/functions-sdk-import-paths
Draft

fix: avoid overwriting google-cloud-functions modules#438
iamdhrv wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
iamdhrv:fix/functions-sdk-import-paths

Conversation

@iamdhrv

@iamdhrv iamdhrv commented Jul 30, 2026

Copy link
Copy Markdown

Summary

  • Move the background function Context shim into functions_framework.
  • Stop distributing packages under google.cloud, which overwrote SDK modules during co-installation.
  • Update framework imports and conversion tests.

Fixes #184.

Testing

  • python -m pytest -m "not slow_integration_test"
  • black --check src tests conftest.py
  • isort -c src tests conftest.py
  • Installed alongside google-cloud-functions and verified functions_v1.CloudFunctionsServiceClient remains importable.
  • Built the wheel and confirmed it contains no google/ paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant