Skip to content

Fix get_min_versions.py to support >=x.x.x version format - #17

Merged
Seb Duerr (sebastiand-cerebras) merged 8 commits into
mainfrom
fix-release-min-versions
Nov 14, 2025
Merged

Fix get_min_versions.py to support >=x.x.x version format#17
Seb Duerr (sebastiand-cerebras) merged 8 commits into
mainfrom
fix-release-min-versions

Conversation

@sebastiand-cerebras

Copy link
Copy Markdown
Collaborator

No description provided.

- Update langchain-openai dependency to support both 0.3.x and 1.0.x versions
- Update langchain-core dependency to support both 0.3.x and 1.0.x versions
- Update Python requirement to >=3.10 (required by langchain-openai 1.0.x)
- Resolves dependency conflict with langchain-openai 1.0.x

Tested on Python 3.12, 3.13, and 3.14
- Update test matrix: 3.11, 3.12, 3.13 (was 3.9, 3.10, 3.11)
- Update lint matrix: 3.11, 3.13 (was 3.9, 3.11)
- Update compile integration test matrix: 3.11, 3.12, 3.13
- Update test_release to use Python 3.11 (was 3.10)
- Update check_diffs to use Python 3.11 (was 3.10)

Required for langchain-cerebras 0.7.0 which requires Python >=3.10
Aligns with CI workflow testing matrix (3.11, 3.12, 3.13) and langchain-openai 1.0.x best practices
Python 3.13 is not supported by tiktoken 0.7.0 (required by langchain-openai)
due to PyO3 0.20.3 limitation. tiktoken 0.8.0+ supports Python 3.13, but
langchain-openai 0.3.x pins tiktoken>=0.7.0,<1.0.0 and poetry may resolve
to 0.7.0.

Changes:
- Limit Python to >=3.11,<3.13 (supports 3.11 and 3.12 only)
- Update CI workflows to test only Python 3.11 and 3.12
- Update poetry.lock to match new Python constraint

Tested locally:
- ✅ Python 3.11: all tests pass
- ✅ Python 3.12: all tests pass
- ✅ Build successful
- ✅ Lint checks pass

References:
- tiktoken 0.7.0 uses PyO3 0.20.3 (max Python 3.12)
- tiktoken 0.8.0+ uses PyO3 0.21+ (supports Python 3.13)
- https://github.com/openai/tiktoken/blob/main/CHANGELOG.md
@sebastiand-cerebras
Seb Duerr (sebastiand-cerebras) merged commit 653334c into main Nov 14, 2025
11 checks passed
@sebastiand-cerebras
Seb Duerr (sebastiand-cerebras) deleted the fix-release-min-versions branch November 14, 2025 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant