feat(python): dynamic ci python version and pypi classifiers#11856
Merged
seymurkafkas merged 3 commits intomainfrom Jan 29, 2026
Merged
Conversation
Contributor
🌱 Seed Test SelectorSelect languages to run seed tests for:
How to use: Click the ⋯ menu above → "Edit" → check the boxes you want → click "Update comment". Tests will run automatically and snapshots will be committed to this PR. |
7cbb041 to
0bc4ae9
Compare
6f6e8ca to
fa29615
Compare
tjb9dc
approved these changes
Jan 29, 2026
| ENV PYTHONPATH=${PYTHONPATH}:${PWD} | ||
| ENV _TYPER_STANDARD_TRACEBACK=1 | ||
|
|
||
| # Keep in sync with the poetry-core version in pyproject.toml |
Contributor
There was a problem hiding this comment.
can we add some sort of pre-merge test that this is true?
Contributor
Author
There was a problem hiding this comment.
Note that the docker build will fail if this constraint is not true, meaning it will be caught early on before a merge. Given that, should we still add the test case?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Python SDK: Dynamic Python Version Support
Problem: Generated SDKs had hardcoded Python versions in CI workflows and PyPI classifiers, causing mismatches when users specified custom pyproject_python_version constraints.
Solution: CI Python versions and PyPI trove classifiers are now dynamically derived from the pyproject_python_version constraint.
Tested with multiple constraints (>=3.9,<3.14, >=3.10,<3.14, >=3.11,<3.14, >=3.12,<3.14) — everything works correctly. Also verified Poetry 1.5.1+ compatibility with Python 3.9-3.13.