Skip to content

[PyCon DE Sprints] Bump minimum Python version to 3.11 - #2523

Merged
beckermr merged 5 commits into
conda-forge:mainfrom
NMertsch:bump-py3.11
Apr 14, 2026
Merged

[PyCon DE Sprints] Bump minimum Python version to 3.11#2523
beckermr merged 5 commits into
conda-forge:mainfrom
NMertsch:bump-py3.11

Conversation

@NMertsch

@NMertsch NMertsch commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Implicitly, this is already the case due to the dependency on 'conda-recipe-manager>=0.9'. Also:

  • Remove dependency tomli (Python 3.11 includes tomllib)
  • Remove dependency backports.strenum (Python 3.11 includes enum.StrEnum)
  • Disable ruff rules UP007 and UP045 (deferred to another PR to keep this one short and focused)
    • UP007: typing.Union[A, B] -> A | B
    • UP045: typing.Optional[A] -> A | None

Checklist

  • Added a news entry
  • Regenerated schema JSON if schema altered (python -m conda_smithy.schema)

This is already implicitly the case due to the dev dependency 'conda-recipe-manager>=0.9'.
* UP007: `typing.Union[A, B]` -> `A | B`
* UP045: `typing.Optional[A]` -> `A | None`

To be resolved in another PR
@NMertsch
NMertsch marked this pull request as ready for review April 13, 2026 13:28
@NMertsch
NMertsch requested a review from a team as a code owner April 13, 2026 13:28
@beckermr

beckermr commented Apr 14, 2026

Copy link
Copy Markdown
Member

@conda-forge/core are we ok bumping smithy past our minimum supported python version in our pinnings? That one is python 3.10.

@beckermr

Copy link
Copy Markdown
Member

Note that conda-recipe-manager is an optional dep.

@jaimergp

Copy link
Copy Markdown
Member

Note that conda-recipe-manager is an optional dep.

Yea, I don't mind skipping a few months of support (3.10 goes EOL in October). We have been testing all PRs with Python 3.11 for a while (since October 2024), so if it works with Python 3.10... we don't really know beyond what we are testing in the feedstock.

At the same time we may be able to offer better granularity for optional dependencies with the Pixi PR at #2525.

@beckermr
beckermr merged commit 294486f into conda-forge:main Apr 14, 2026
2 checks passed
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.

3 participants