Skip to content

Support Python up to 3.15 - #152

Merged
y0z merged 2 commits into
optuna:mainfrom
gen740:support-python-up-to-3.15
Oct 23, 2026
Merged

y0z merged 2 commits into
optuna:mainfrom
gen740:support-python-up-to-3.15

Conversation

@gen740

@gen740 gen740 commented Oct 16, 2026

Copy link
Copy Markdown
Member

Motivation

Extend Python support through 3.15 and test all supported Python versions.

Description of the changes

  • Extend the Linux test matrix to include Python 3.13, 3.14, and 3.15.
  • Add Python 3.10–3.15 test matrices for macOS and Windows.
  • Update the package classifiers and README badge to include Python 3.13–3.15.
  • Keep Python 3.10 as the minimum supported version.

@gen740
gen740 requested a review from a team as a code owner October 16, 2026 07:43
Comment thread .github/workflows/mac-tests.yml Outdated

strategy:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.15']

@c-bata c-bata Oct 19, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It might be better to run unit tests with 3.10 and 3.15 only to reduce the CI jobs.

Suggested change
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.15']
python-version: ['3.10', '3.15']

@y0z Do you have an opinion on this?

@gen740 gen740 Oct 19, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Currently, all Mac tests take less than 30 seconds to run. The tests are small and fast enough, so I think it's fine to run all of them on all Python versions.

@y0z y0z Oct 19, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If we only consider Mac, that’s 4 CI jobs; however, including Linux and Windows brings the total to 12. It seems that 3.10 and 3.15 alone should be sufficient.

@c-bata

c-bata commented Oct 19, 2026

Copy link
Copy Markdown
Member

@y0z Could you review this PR? Since it adds 12 extra CI checks.

@y0z y0z left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@y0z y0z removed their assignment Oct 23, 2026
@y0z
y0z merged commit 2e5c042 into optuna:main Oct 23, 2026
10 checks passed
@not522 not522 added this to the v0.6.0 milestone Oct 29, 2026
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.

4 participants