Skip to content

Commit 2962cad

Browse files
authored
Sweep dependencies, pin uv in CI, and bump to 2.9.1 (#136)
## Summary Dependency sweep for python-commerce, plus the release bump to 2.9.1. - `agentscore-py` floor `>=2.6.9` to `>=2.6.10`, the release published earlier in this sweep, so merchants installing 2.9.1 get it. - `uv lock --upgrade`: uvicorn 0.52.4 to 0.53.0, pyjwt 2.13.0 to 2.14.0, httpx2/httpcore2 2.12.0 to 2.13.0, multidict 6.7.1 to 6.8.0, coverage, fastapi-cloud-cli, lefthook, regex and tzdata. No prereleases in the lock. - uv is pinned in CI: every `astral-sh/setup-uv` step (ci, security, publish) passes `version: "0.12.13"`, the org's CI standard for Python repos, matching python-sdk. - The osv-scanner binary the Dependency Scan job downloads moves from v2.5.1 to v2.6.0. - Hook and CI parity: the pre-push hook ran `vulture . --exclude .venv` while CI ran `vulture agentscore_commerce/`, so CI never ran the check the hook runs over `tests/` and `examples/`. CI now runs the hook's scope; it passes today. - Version 2.9.0 to 2.9.1, with `uv.lock` re-locked so its embedded version matches. Checked and found current: every bounded dependency sits at its PyPI latest (`x402` 2.22.0, `pympp` 0.11.0, `cdp-sdk` 1.48.1, `stripe` 15.6.1, `redis` 8.1.0, `joserfc` 1.7.5, `httpx` 0.28.1), so no upper bound is holding back a release. `pympp` and `x402` did not move, so neither needs the registry's move checks. Actions: `setup-uv@v10.1.0`, `pypa/gh-action-pypi-publish@v1.14.2`, `actions/setup-python@v7`, `actions/checkout@v7`, `actions/cache@v6`, `useblacksmith/checkout@v1` are all current. Dependabot covers uv and actions. Not taken: `web3` stays on 7.16.0 though 8.0.0 is out and stable. Nothing bounds it directly (cdp-sdk, x402 and pytempo all declare `web3>=7.x`), but forcing `web3>=8` makes the resolver downgrade `pympp` from 0.11.0 to 0.9.1, since pympp 0.11's tree does not accept web3 8. The newest pympp on the payment path outranks a transitive web3 major, so the resolver's choice is the right one; it moves when pympp's tree allows it. ## Type of change - [ ] Bug fix (no breaking change) - [ ] New feature (no breaking change) - [ ] Breaking change (existing callers must update) - [x] Docs, tests, or internal maintenance only ## Public API None. ## Test plan From `uv sync --frozen --all-extras --all-groups`: `ruff check`, `ruff format --check`, `ty check agentscore_commerce/`, `ty check` on examples, `vulture . --min-confidence 80 --exclude .venv`, and `pytest` (1869 passed, 4 skipped, 95.37% coverage against the 95% bar), all exit 0; `uv build` exit 0. `osv-scanner` 2.6.0 over `uv.lock`: 144 packages, no issues. `pip-audit` over the exported requirements: exit 0. ## Checklist - [x] Tests cover the new behavior, and the suite passes locally - [x] Lint, format, and type checks pass - [x] Docs and README examples updated if the public surface changed - [x] No secrets, credentials, or personal data in the diff or the tests Worked with Varun. The tag follows the merge.
1 parent 8e58bf1 commit 2962cad

5 files changed

Lines changed: 420 additions & 373 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323

2424
- name: Install uv
2525
uses: astral-sh/setup-uv@v10.1.0
26+
with:
27+
version: "0.12.13"
2628

2729
- name: Set up Python
2830
run: uv python install 3.12
@@ -51,7 +53,7 @@ jobs:
5153
run: uv run ty check -c 'src.include=["examples"]'
5254

5355
- name: Vulture
54-
run: uv run vulture agentscore_commerce/ --min-confidence 80
56+
run: uv run vulture . --min-confidence 80 --exclude .venv
5557

5658
- name: Tests
5759
run: uv run pytest tests/ -v --cov=agentscore_commerce --cov-report=term-missing

‎.github/workflows/publish.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
- uses: actions/checkout@v7
2121

2222
- uses: astral-sh/setup-uv@v10.1.0
23+
with:
24+
version: "0.12.13"
2325

2426
- name: Set version from tag
2527
run: sed -i "s/^version = .*/version = \"${GITHUB_REF_NAME#v}\"/" pyproject.toml

‎.github/workflows/security.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
- name: Install osv-scanner
2626
run: |
27-
curl -fsSL https://github.com/google/osv-scanner/releases/download/v2.5.1/osv-scanner_linux_arm64 -o osv-scanner
27+
curl -fsSL https://github.com/google/osv-scanner/releases/download/v2.6.0/osv-scanner_linux_arm64 -o osv-scanner
2828
chmod +x osv-scanner
2929
3030
- name: Scan dependencies
@@ -40,6 +40,8 @@ jobs:
4040
steps:
4141
- uses: useblacksmith/checkout@v1
4242
- uses: astral-sh/setup-uv@v10.1.0
43+
with:
44+
version: "0.12.13"
4345
- uses: actions/setup-python@v7
4446
with:
4547
python-version: "3.13"

‎pyproject.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "agentscore-commerce"
7-
version = "2.9.0"
7+
version = "2.9.1"
88
description = "Agentic commerce SDK for Python: identity middleware (FastAPI, Flask, Django, AIOHTTP, Sanic, ASGI) + payment helpers + 402 builders + discovery + Stripe multichain. The full merchant-side toolkit for AgentScore-powered agentic commerce."
99
readme = "README.md"
1010
license = "MIT"
1111
requires-python = ">=3.11"
1212
keywords = ["agentscore", "agent-commerce", "agentic-payments", "402", "x402", "mpp", "machine-payments-protocol", "fastapi", "starlette", "flask", "django", "aiohttp", "sanic", "middleware", "trust", "reputation", "kyc", "identity", "stripe", "tempo", "solana", "base", "ai-agent"]
1313
dependencies = [
1414
"httpx>=0.25.0,<1.0.0",
15-
"agentscore-py>=2.6.9",
15+
"agentscore-py>=2.6.10",
1616
]
1717
classifiers = [
1818
"Development Status :: 5 - Production/Stable",

0 commit comments

Comments
 (0)