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.
What does this PR do?
This PR adds support for Python 3.13 to TPOT and updates the CI workflow to test against Python 3.10, 3.11, 3.12, and 3.13.
Note: While basic checks (i.e. installing ConfigSpace into a 3.13 environment + running the examples listed on their docs page) for the core dependency
ConfigSpace
do work without error under Python 3.13, it has not yet officially declared Python 3.13 support via PyPI classifiers. I will see if I can put in a PR on their side to fix that.Specifically, this PR modifies:
setup.py
: Updatespython_requires
to allow Python 3.13 (<3.14
) and adds the 3.13 classifier..github/workflows/tests.yml
: Adds Python 3.13 to the CI test matrix.tox.ini
: Addspy313
to the defaultenvlist
and[gh-actions]
mapping for consistency.README.md
: Updates the listed supported Python version range.docs/installation.md
: Updates the example conda environment command to use Python 3.13.Where should the reviewer start?
setup.py
for thepython_requires
and classifier changes..github/workflows/tests.yml
for the added CI test matrix entry.tox.ini
,README.md
,docs/installation.md
) for consistency updates.How should this PR be tested?
The primary testing is handled by the updated GitHub Actions CI workflow, which now runs
tox
(executingpytest
) across Python 3.10, 3.11, 3.12, and 3.13 on Ubuntu.Local testing was performed in a Python 3.13 conda environment on macOS arm64. All tests passed, with one test skipped (
test_loop_through_groupnames
) due to unavailable optional dependencies (sklearnex
) on this platform. CI results should be monitored closely for any new failures specific to the Python 3.13 environment.Any background context you want to provide?
ConfigSpace
installs and runs simple examples on Python 3.13, but full compatibility is not guaranteed until officially declared by theConfigSpace
project.What are the relevant issues?
#1376
Questions:
README.md
anddocs/installation.md
were updated.