fix(python): bump pytest to ^9.0.3 in generated SDK pyproject.toml#15072
fix(python): bump pytest to ^9.0.3 in generated SDK pyproject.toml#15072fern-support wants to merge 1 commit intomainfrom
Conversation
Co-Authored-By: will.kendall@buildwithfern.com <wpk235@gmail.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.
Tip: disable this comment in your organization's Code Review settings.
SDK Generation Benchmark ResultsComparing PR branch against latest nightly baseline on Full benchmark table (click to expand)
main (generator): generator-only time via --skip-scripts (includes Docker image build, container startup, IR parsing, and code generation — this is the same Docker-based flow customers use via |
Description
Refs customer report that
fernapi/fern-python-sdk5.3.14 did not actually bump pytest in generated SDKs.The 5.3.14 release (changelog) only bumped pytest in the generator's own
generators/python/pyproject.toml(internal dev dependencies). It did not update the codegen template atgenerators/python/src/fern_python/codegen/pyproject_toml.py, so generated SDKs continued to getpytest = "^8.2.0".This PR fixes that by updating the generated pytest version from
^8.2.0to^9.0.3for projects targeting Python >= 3.9. The Python < 3.9 fallback (^7.4.0/pytest-asyncio ^0.23.5) is unchanged.Changes Made
pyproject_toml.py:pytest_versionfrom"^8.2.0"→"^9.0.3"for themin_minor >= 9branchpytest >= 9.0requirementpyproject.toml+poetry.lockupdates)Testing
seed test --generator python-sdk --fixture exhaustive --skip-scripts— all 28/28 test cases passedpytest = "^7.4.0"min_minor >= 9(Python 3.9+), but pytest 9.0.3 itself declarespython-versions = ">=3.10"in its metadata. Confirm this is acceptable — Poetry will resolve correctly for Python 3.10+, and Python 3.9 users installing dev deps may get a lower pytest version from the^9.0.3constraint solver. Since the default minimum Python version is^3.10since generator v5.0.0, this likely doesn't matter in practice.exhaustivefixture was explicitly run (which regenerated all fixtures). Confirm CI seed checks pass for the full matrix.Link to Devin session: https://app.devin.ai/sessions/c194f7c7b4cf415a8f34a6e508975da6
Requested by: @fern-support