chore(deps): upgrade python dependency stack#5
Conversation
- Bump google-genai to 1.73.0 - Add pydantic >=2.13.0 - Introduce tests/test_dependency_stack.py for version checks
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8686bc914a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
|
||
|
|
||
| def parse_version(raw: str) -> tuple[int, ...]: | ||
| return tuple(int(part) for part in raw.split(".")) |
There was a problem hiding this comment.
Parse versions with PEP 440 semantics
Replace the integer-splitting parser here with a real version parser because this implementation breaks on valid distribution versions such as 2.13.0.post1/2.13.0rc1 (raises ValueError) and can misorder equivalents like 1.73 vs 1.73.0 ((1, 73) < (1, 73, 0)). In those cases the new dependency check will fail even when installed packages actually meet the minimum constraints.
Useful? React with 👍 / 👎.
Summary
google-genaito>=1.73.0pydantic>=2.13.0requirement so the env resolves the currentpydantic_corelineWhy
This refreshes the repo's Python SDK stack and confirms that upgrading
pydanticnow allowspydantic_coreto upgrade cleanly as well.Validation
.venv/bin/python -m unittest discover -s tests -p 'test_dependency_stack.py' -v.venv/bin/python auto-commit.py --help.venv/bin/python -m pip list --outdated --format=columnsResulting versions
google-genai==1.73.0pydantic==2.13.0pydantic_core==2.46.0