Skip to content

fix: update Python server to match ucp-sdk 2026-01-23 module names#72

Open
Limbrey wants to merge 1 commit intoUniversal-Commerce-Protocol:mainfrom
Limbrey:fix/update-python-sdk-module-names
Open

fix: update Python server to match ucp-sdk 2026-01-23 module names#72
Limbrey wants to merge 1 commit intoUniversal-Commerce-Protocol:mainfrom
Limbrey:fix/update-python-sdk-module-names

Conversation

@Limbrey
Copy link
Copy Markdown

@Limbrey Limbrey commented Apr 4, 2026

Summary

  • Fix relative path to ucp-sdk in pyproject.toml (was one level too shallow, causing sdk/sdk/python resolution error)
  • Update generated_routes/ucp_routes.py imports to match modules renamed in the 2026-01-23 SDK release:
    • checkout_create_reqcheckout_create_request
    • checkout_respcheckout (CheckoutResponseCheckout)
    • checkout_update_reqcheckout_update_request
    • payment_create_reqpayment_create_request
    • payment_resppayment

Test plan

  • Run uv sync from rest/python/server/ — should resolve without path errors
  • Run uv run server.py — should start without ModuleNotFoundError

🤖 Generated with Claude Code

@google-cla
Copy link
Copy Markdown

google-cla bot commented Apr 4, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

- Fix relative path to ucp-sdk in pyproject.toml
- Update generated_routes/ucp_routes.py imports to use renamed modules
  (checkout_create_req -> checkout_create_request, etc.)
- Update CheckoutResponse -> Checkout, PaymentResponse -> Payment

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Limbrey Limbrey force-pushed the fix/update-python-sdk-module-names branch from 16999ee to fd620a2 Compare April 4, 2026 18:41
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