Skip to content

feat(python): dynamic ci python version and pypi classifiers#11856

Merged
seymurkafkas merged 3 commits intomainfrom
seymur/fer-8438-python-sdk-generate-python-version-in-github-ci-dynamically
Jan 29, 2026
Merged

feat(python): dynamic ci python version and pypi classifiers#11856
seymurkafkas merged 3 commits intomainfrom
seymur/fer-8438-python-sdk-generate-python-version-in-github-ci-dynamically

Conversation

@seymurkafkas
Copy link
Copy Markdown
Contributor

@seymurkafkas seymurkafkas commented Jan 28, 2026

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.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 28, 2026

🌱 Seed Test Selector

Select languages to run seed tests for:

  • Python
  • TypeScript
  • Java
  • Go
  • Ruby
  • C#
  • PHP
  • Swift
  • Rust
  • OpenAPI
  • Postman

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.

@seymurkafkas seymurkafkas changed the title feat: dynamic ci python version and pypi classifiers feat(python): [WIP] dynamic ci python version and pypi classifiers Jan 28, 2026
@seymurkafkas seymurkafkas force-pushed the seymur/fer-8438-python-sdk-generate-python-version-in-github-ci-dynamically branch from 7cbb041 to 0bc4ae9 Compare January 29, 2026 21:05
@seymurkafkas seymurkafkas marked this pull request as ready for review January 29, 2026 22:02
@seymurkafkas seymurkafkas requested a review from tjb9dc as a code owner January 29, 2026 22:02
@seymurkafkas seymurkafkas force-pushed the seymur/fer-8438-python-sdk-generate-python-version-in-github-ci-dynamically branch from 6f6e8ca to fa29615 Compare January 29, 2026 22:07
@seymurkafkas seymurkafkas changed the title feat(python): [WIP] dynamic ci python version and pypi classifiers feat(python): dynamic ci python version and pypi classifiers Jan 29, 2026
ENV PYTHONPATH=${PYTHONPATH}:${PWD}
ENV _TYPER_STANDARD_TRACEBACK=1

# Keep in sync with the poetry-core version in pyproject.toml
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add some sort of pre-merge test that this is true?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@seymurkafkas seymurkafkas merged commit bc2955d into main Jan 29, 2026
129 checks passed
@seymurkafkas seymurkafkas deleted the seymur/fer-8438-python-sdk-generate-python-version-in-github-ci-dynamically branch January 29, 2026 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants