Repository navigation
fix: align client-python requires-python with monorepo py310 target - #491
stepmikhaylov merged 1 commit into
Conversation
Fixes #434 The monorepo's root pyproject.toml sets ruff target-version = 'py310', indicating the project targets Python 3.10+. The client SDK's requires-python = '>=3.8' was inconsistent with this baseline. Changes: - requires-python: >=3.8 → >=3.10 - Classifiers: remove 3.8/3.9 entries, add 3.13 Python 3.10 minimum ensures callers have access to match statements, structural pattern matching, and other 3.10+ features used in node code.
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@packages/client-python/pyproject.toml`:
- Line 26: The pyproject.toml currently declares "Programming Language :: Python
:: 3.13" but the pinned minimum packages (websockets, pydantic, aiofiles) don't
officially support 3.13; either bump the minimum versions for websockets,
pydantic and aiofiles in pyproject.toml to releases that list Python 3.13 in
their classifiers (update the version specifiers for websockets, pydantic,
aiofiles) or remove the "Programming Language :: Python :: 3.13" classifier
until verified; change the dependency lines for websockets, pydantic, and
aiofiles (or the classifier string) so the file consistently reflects only
supported Python versions.
- Line 45: The pyproject change sets requires-python = ">=3.10" but the release
workflow only sets up Python 3.12; update the release workflow job that runs
tests/publish (the job in .github/workflows/_release.yaml that currently uses
actions/setup-python) to use a matrix with python-version: ["3.10", "3.11",
"3.12", "3.13"] so the package is tested on all declared interpreters before
publishing; ensure the matrix runs the existing install/test steps (the same
steps executed for the current 3.12 runner) and gate the publish step to only
run after all matrix jobs succeed.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: 154f2fdf-b49b-40b4-8de6-8eb2007307e5
📒 Files selected for processing (1)
packages/client-python/pyproject.toml
…#491) Fixes #434 The monorepo's root pyproject.toml sets ruff target-version = 'py310', indicating the project targets Python 3.10+. The client SDK's requires-python = '>=3.8' was inconsistent with this baseline. Changes: - requires-python: >=3.8 → >=3.10 - Classifiers: remove 3.8/3.9 entries, add 3.13 Python 3.10 minimum ensures callers have access to match statements, structural pattern matching, and other 3.10+ features used in node code.
The requires-python floor was bumped to >=3.10 in PR rocketride-org#491, but two documentation references still mentioned 3.8. This aligns them. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The requires-python floor was bumped to >=3.10 in PR #491, but two documentation references still mentioned 3.8. This aligns them. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…rocketride-org#491) Fixes rocketride-org#434 The monorepo's root pyproject.toml sets ruff target-version = 'py310', indicating the project targets Python 3.10+. The client SDK's requires-python = '>=3.8' was inconsistent with this baseline. Changes: - requires-python: >=3.8 → >=3.10 - Classifiers: remove 3.8/3.9 entries, add 3.13 Python 3.10 minimum ensures callers have access to match statements, structural pattern matching, and other 3.10+ features used in node code.
…etride-org#657) The requires-python floor was bumped to >=3.10 in PR rocketride-org#491, but two documentation references still mentioned 3.8. This aligns them. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fixes #434
The monorepo's root
pyproject.tomlsetstarget-version = 'py310'for ruff, indicating the project targets Python 3.10+. The client SDK'srequires-python = '>=3.8'was inconsistent with this.Changes:
requires-python:>=3.8→>=3.10This ensures pip won't install the SDK into Python 3.8/3.9 environments where node code using 3.10+ features (structural pattern matching, etc.) could fail at runtime.
Summary by CodeRabbit