feat: add GraphQL (Strawberry) as new Python ecosystem category#146
Closed
feat: add GraphQL (Strawberry) as new Python ecosystem category#146
Conversation
Add PythonGraphqlSchema with "strawberry" and "none" options. Wire through all ~30 files following the new-category checklist: schemas, types, option-metadata, compatibility, CLI (index, prompts, mcp, bts-config, constants, command-handlers, config-processing, generate-reproducible-command), web builder (constant, preview-config, stack-defaults, stack-url-keys, stack-url-state, stack-utils, tech-icons, tech-resource-links), smoke test wiring (options, presets), and test updates (reproducible-command, history). Template changes: - pyproject.toml.hbs: framework-specific strawberry-graphql extras - main.py.hbs: mount /graphql route per framework (FastAPI/Flask/Django/Litestar) - new graphql_schema.py.hbs: example Query/Mutation types with Book model - test_main.py.hbs: GraphQL hello query tests per framework Verified: all 4 framework combos scaffold + python3 -m compileall passes.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
…pt functions These functions were imported in config-prompts.ts but not defined in their respective ecosystem files, causing CI build failures.
Owner
Author
|
Closing — contaminated with cross-PR commits. Will recreate. |
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
PythonGraphqlSchema = z.enum(["strawberry", "none"])as a new category in the Python ecosystemgraphql_schema.py.hbswith example Query/Mutation types,pyproject.toml.hbsdeps with framework-specific extras,main.py.hbsGraphQL route mounting per framework,test_main.py.hbswith GraphQL testsstrawberry-graphql[fastapi],strawberry-graphql[flask],strawberry-graphql[django],strawberry-graphql(Litestar uses base package)Test plan
bun test apps/cli/test/cli-builder-sync.test.ts-- 356 pass, 2 fail (pre-existing goOrm issues)bun test apps/cli/test/generate-reproducible-command.test.ts-- 5 passbun run --cwd apps/web validate:tech-links-- passespython3 -m compileallon all 4 combos -- all pass