Repository navigation
fix(deps): support common-grants-sdk 0.9 - #3
Merged
Merged
Conversation
SnowboardTechie
marked this pull request as ready for review
October 27, 2026 16:55
SnowboardTechie
added a commit
to HHS/simpler-grants-protocol
that referenced
this pull request
Oct 28, 2026
…itory (#1340) ### Summary - Part of #1184 - Builds on #1348, now merged; rebased onto `main`. - Depends on common-grants/cg-api-template-fastapi#3 (SDK 0.9 in the template) and on the CLI 0.5.0 release (#1346) for the spec-check step. - Time to review: 10 minutes The Python guide now starts from the [FastAPI template repository](https://github.com/common-grants/cg-api-template-fastapi) instead of `cg init`, which ADR 0029 retires. A reader goes from "Use this template" to a working first request. ### Changes proposed On top of #1348: - Getting started: "Use this template" and `git clone` replace `mkdir` and `cg init`. Adds the template's `make ci` check and three `curl` requests. The project tree matches the template. - Corrections for the template: `schemas/opportunity.py`, the `OpportunityRepository` interface and `create_app()` replace file and class names the template doesn't have. The custom-fields plugin goes in `opportunity.py`, so the Pyright workaround is no longer needed. - "Upgrade the SDK" becomes "Upgrading from an earlier SDK", after the getting-started flow, for projects on SDK 0.8. It uses `^0.9.0` and names the template's real renames: `SearchSorting(sort_by=..., sortOrder=...)` and `PaginatedBodyParams(page_size=...)` in tests. - The spec check runs in synchronized pnpm, npm, and bun tabs. Removes `make check-spec`, which the template doesn't have. - Title: "Using Python". - Removes this page from the `cg init` checklist in `lib/cli/DEVELOPMENT.md`. Kept from #1348: the page structure, the SDK module table and awards note, the snake_case explanation, spec validation, data validation, and the plugin example. ### Context for reviewers Each change is its own commit, so the diff can be read commit by commit. ### Additional information Every documented command ran on a fresh clone of template PR 3 (`3a5cc86`), including the custom-fields plugin. `make ci` passed (109 tests), and the spec check passed through pnpm, npm, and bun with the CLI packed from #1346 (3 award-route warnings). Following the upgrade section on template `main` (`c5e11ca`, SDK 0.8.1) gives a passing `make ci` on SDK 0.9. The website build, lint, format, and spell checks pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The template now ships
common-grants-sdk0.9, so readers following the website guides get the current SDK without upgrading it themselves.Changes proposed
common-grants-sdkto^0.9.0and lock 0.9.0 (from 0.8.1).SearchSorting(sort_by=...)for the default search sorting, andPaginatedBodyParams(page_size=...)in three test fixtures.sortOrder=stays because the template'sSearchSortingdeclares that alias itself.common-grants-sdk 0.9.0in the bug report template's example versions.make auditonmain:filelock(a dev dependency via pip-audit) 4.0.3 → 4.2.4 for CVE-2026-112907, CVE-2026-112913 and CVE-2026-112940.dnspython(via FastAPI's email validation) 2.8.0 → 2.9.0 for CVE-2026-114605, andmsgpack(a dev dependency via pip-audit) 1.2.2 → 1.2.4 for CVE-2026-114613.Context for reviewers
make install,make ciandmake auditall exit 0 in a clean Python 3.11 environment, and thesdk-rangejob's steps pass locally (0.9.0 is the newest release in range). Undermake dev, the README's list, search and/openapi.jsonrequests and/docsall return 200.Additional information
API responses, including the default search order and page size, are unchanged.