Skip to content

build(py): bound intra-repo genkit version ranges across plugins and extras - #7029

Merged
huangjeff5 merged 1 commit into
mainfrom
build/py-evaluators-genkit-lt1
Nov 3, 2026
Merged

huangjeff5 merged 1 commit into
mainfrom
build/py-evaluators-genkit-lt1

Conversation

@huangjeff5

@huangjeff5 huangjeff5 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Bounds intra-repo genkit dependencies across plugins and genkit[...] extras so pip and uv never pair mismatched SDK releases across 0.13.0 and 1.0.0.

# --- BEFORE: bare intra-repo dependencies ("genkit", "genkit-openai") ---
$ pip install "genkit==1.0.0" "genkit-openai==0.12.0"
# => Resolves cleanly, then fails on import

$ pip install genkit genkit-evaluators   # after genkit 1.0 removes evaluators (#6947)
# => ModuleNotFoundError: No module named 'genkit.evaluator'

# --- AFTER: bounded ranges rolled by py/bin/bump_version ---
$ pip install "genkit==1.0.0" genkit-evaluators
# => ResolutionImpossible: genkit-evaluators 0.13.0 requires genkit>=0.13.0,<1

Main Changes

  • Lock plugins and genkit[...] extras to the release floor: Previously, plugins declared bare "genkit" and extras declared bare "genkit-*", so pip install -U "genkit[openai]" could upgrade genkit to 1.0 while leaving an incompatible 0.12 plugin installed. Every surviving plugin and extra now declares >=0.12.0,<2 (rolled automatically by py/bin/bump_version), plus genkit[vertexai] alongside genkit[vertex-ai] and openai>=1.60.0,<3.
  • Cap genkit-evaluators at <1 ahead of feat(py)!: remove evaluators from 1.0 #6947: genkit 1.0 removes evaluators, so genkit-evaluators caps at genkit>=0.12.0,<1 (>=0.13.0,<1 on the 0.13.0 cut). Once 0.13.0 is live on PyPI, yanking 0.9.0–0.12.0 (py/docs/release_playbook.md) stops pip from backtracking to older uncapped wheels.
  • Ship py.typed across all 16 packages: genkit-otel and genkit-a2ui missed PEP 561 py.typed markers, causing downstream pyright and mypy users to treat their exports as Any. Both packages now ship py.typed, enforced across py/packages/* by check_consistency.py.

@huangjeff5 huangjeff5 added the python Python label Nov 3, 2026
@github-actions github-actions Bot added docs Improvements or additions to documentation config build labels Nov 3, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request prepares for the retirement of the genkit-evaluators package in Genkit 1.0. It updates the bump_version script to support updating the floor of capped intra-repo dependency ranges (e.g., genkit>=X.Y.Z,<1), adds a consistency check for these capped floors in check_consistency.py, and updates the genkit-evaluators package's metadata and documentation to reflect its deprecation and upper-bound constraint. Additionally, a release playbook section is added to guide the process of yanking older, uncapped versions of the package from PyPI. No review comments were provided, so there is no feedback to address.

…extras

Bounds every intra-repo genkit plugin and optional extra to >=current,<2 (<1 for genkit-evaluators ahead of its 1.0 retirement), adds the genkit[vertexai] extra alias, bounds openai>=1.60.0,<3 in genkit-openai, adds missing PEP 561 py.typed markers and Typing :: Typed classifiers, and enforces version bounds and py.typed markers in bump_version and check_consistency.py.
@huangjeff5
huangjeff5 force-pushed the build/py-evaluators-genkit-lt1 branch from 6e6f8b7 to 6f4fd0a Compare November 3, 2026 07:53
@huangjeff5 huangjeff5 changed the title build(py): pin genkit-evaluators to genkit<1 for its final 0.13 release build(py): bound intra-repo genkit version ranges across plugins and extras Nov 3, 2026
@huangjeff5
huangjeff5 marked this pull request as draft November 3, 2026 16:08
@huangjeff5
huangjeff5 marked this pull request as ready for review November 3, 2026 16:13
@huangjeff5
huangjeff5 merged commit b436469 into main Nov 3, 2026
26 of 27 checks passed
@huangjeff5
huangjeff5 deleted the build/py-evaluators-genkit-lt1 branch November 3, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build config docs Improvements or additions to documentation python Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants