Skip to content

Drop Python 3.8#6302

Merged
c-bata merged 10 commits intooptuna:masterfrom
y0z:feature/drop-python3.8
Oct 16, 2025
Merged

Drop Python 3.8#6302
c-bata merged 10 commits intooptuna:masterfrom
y0z:feature/drop-python3.8

Conversation

@y0z
Copy link
Copy Markdown
Member

@y0z y0z commented Oct 14, 2025

Motivation

Python 3.8 has been EOL for a long time, and the number of users is dwindling. Optuna will no longer support Python 3.8.

Description of the changes

  • Change CIs, Docs, and code to drop Python 3.8 support

@y0z y0z added this to the v4.6.0 milestone Oct 14, 2025
@y0z y0z added the compatibility Change that breaks compatibility. label Oct 14, 2025
Copy link
Copy Markdown
Contributor

@nabenabe0928 nabenabe0928 left a comment

Choose a reason for hiding this comment

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

We can remove from typing_extensions import Protocol in optuna/artifacts/_protocol.py since Python 3.8 (we simply forgot removing it).

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.

This config file should be scrutinized in a follow-up PR.

Copy link
Copy Markdown
Contributor

@nabenabe0928 nabenabe0928 left a comment

Choose a reason for hiding this comment

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

LGTM

@nabenabe0928
Copy link
Copy Markdown
Contributor

@c-bata
Could you review this PR?

Copy link
Copy Markdown
Member

@c-bata c-bata left a comment

Choose a reason for hiding this comment

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

Changes look perfect to me. LGTM.

Copy link
Copy Markdown
Member

@c-bata c-bata left a comment

Choose a reason for hiding this comment

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

I've just noticed that the tests(3.9) and tests-rdbstorage(3.9) workflows are not triggered when a pull request is opened. Could you take a look and address them?

Copy link
Copy Markdown
Member

@c-bata c-bata left a comment

Choose a reason for hiding this comment

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

LGTM after CI passes. Thank you for the update.

@c-bata c-bata merged commit 66f64a8 into optuna:master Oct 16, 2025
22 of 24 checks passed
@y0z y0z deleted the feature/drop-python3.8 branch October 16, 2025 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compatibility Change that breaks compatibility.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants