Skip to content

refactor: use ucp-sdk from pip by default in python samples#130

Closed
damaz91 wants to merge 4 commits into
Universal-Commerce-Protocol:mainfrom
damaz91:feature/use-pip-sdk
Closed

refactor: use ucp-sdk from pip by default in python samples#130
damaz91 wants to merge 4 commits into
Universal-Commerce-Protocol:mainfrom
damaz91:feature/use-pip-sdk

Conversation

@damaz91

@damaz91 damaz91 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Description

This PR updates the Python samples to use the published ucp-sdk from PyPI by default, rather than expecting a local checkout of python-sdk at a relative path.

It also updates the GHA workflow to manually install the local SDK checkout to retain drift detection, and updates READMEs to document optional local SDK development.

Category (Required)

  • Documentation: Updates to README, or documentations regarding schema or capabilities.
  • Infrastructure: CI/CD, Linters, or build scripts.
  • Samples / Conformance: Maintaining samples and the conformance suite.

Checklist

  • I have followed the Contributing Guide (including Conventional Commits title requirements and ! for breaking changes).
  • I have updated the documentation (if applicable).
  • My changes pass all local linting and formatting checks.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.

katyalai and others added 4 commits July 13, 2026 11:49
Path-filter push/pull_request triggers to rest/python/** and the
workflow file itself, matching the path-filtered shape of the Node.js
workflow proposed in Universal-Commerce-Protocol#126, so unrelated changes do not spend CI minutes
booting the Python server.
The Python server consumes ucp-sdk as an editable path dependency, so the
purpose of this job is to catch server-vs-SDK drift as it happens. Pinning
the SDK to a fixed SHA turns the check green by testing a frozen combination
and hides exactly the drift it exists to surface. Track main instead; a red
run is the signal to adapt the server (as samples#127 did for the SDK
type-alias change).

Verified: samples main + python-sdk main boot and pass the integration
tests + happy-path client.
Remove local path dependencies from pyproject.toml files and update GHA workflow to install local SDK override manually to retain drift detection.

TAG=agy

CONV=bfc6d8af-a5ae-4fbd-ad20-b3d689857d05
@damaz91 damaz91 force-pushed the feature/use-pip-sdk branch from 6030a29 to 9185bc4 Compare July 14, 2026 10:55
@damaz91 damaz91 closed this Jul 14, 2026
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.

3 participants