Skip to content

Drop Python 3.8 - #6302

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

c-bata merged 10 commits into
optuna:masterfrom
y0z:feature/drop-python3.8

Conversation

@y0z

@y0z y0z commented Oct 14, 2025

Copy link
Copy Markdown
Member

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
Comment thread README.md Resolved
Comment thread .github/workflows/tests-storage.yml Resolved
Comment thread .github/workflows/tests.yml Resolved
Comment thread pyproject.toml Resolved

@nabenabe0928 nabenabe0928 left a comment

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.

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

Comment thread optuna/study/_multi_objective.py Resolved

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.

@nabenabe0928 nabenabe0928 left a comment

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.

LGTM

@nabenabe0928

Copy link
Copy Markdown
Contributor

@c-bata
Could you review this PR?

@c-bata c-bata 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.

Changes look perfect to me. LGTM.

@c-bata c-bata 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.

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?

Comment thread .github/workflows/tests.yml Resolved
Comment thread .github/workflows/tests-storage.yml Resolved

@c-bata c-bata 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 after CI passes. Thank you for the update.

@c-bata
c-bata merged commit 66f64a8 into optuna:master Oct 16, 2025
@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