-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
Currently, the Python versions defined in our CI workflows are defined by passing a static list of envs to .github/workflows/tox.yml. These need to be manually updated when 1) new Python versions are released as latest, and 2) we drop support for old versions of Python.
Possibly as an alternative to envs:, we could add a flag (supported_pythons?) that does the following:
- retrieve the oldest and latest major versions of Python supported by the project, based on pins in
pyproject.tomlproject.requires-python- to start, this only needs to consider the metadata of the top-level project, but perhaps we could also scan dependencies?
- build a matrix on-the-fly of each major version of Python between the oldest and latest. For instance, if the oldest supported version of the package is Python 3.11, and the latest is Python 3.14, then the test matrix would be 3.11, 3.12, 3.13, 3.14
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels