Skip to content

Commit

Permalink
Merge pull request optuna#985 from c-bata/update-python-versions
Browse files Browse the repository at this point in the history
Update supported Python versions to 3.8-3.13
  • Loading branch information
c-bata authored Nov 5, 2024
2 parents b002c9b + 4059b10 commit b6bcbcf
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e-dashboard-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ jobs:
npm run build:dev
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'
architecture: x64

- name: Setup Optuna ${{ matrix.optuna-version }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'
architecture: x64
- name: Install dependencies
run: |
Expand All @@ -37,7 +37,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
Expand All @@ -47,7 +47,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
optuna-version: ['optuna>=3.1.0']
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ADD ./optuna_dashboard/ts/ /usr/src/optuna_dashboard/ts
RUN mkdir -p /usr/src/optuna_dashboard/public
RUN npm run build:prd

FROM python:3.11-buster AS python-builder
FROM python:3.12-buster AS python-builder

WORKDIR /usr/src
RUN pip install --upgrade pip setuptools
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Installation
Prerequisite
~~~~~~~~~~~~

Optuna Dashboard supports Python 3.7 or newer.
Optuna Dashboard supports Python 3.8 or newer.


Installing from PyPI
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,20 @@ readme = "README.md"
authors = [
{ name = "Masashi Shibata", "email" = "[email protected]" }
]
requires-python = ">=3.7"
requires-python = ">=3.8"
license = {text = "MIT License"}
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
"Intended Audience :: Science/Research",
]
Expand Down
3 changes: 3 additions & 0 deletions python_tests/preferential/test_study.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def test_report_and_get_preferences(storage_supplier: Callable[[], StorageSuppli
assert actual_worse.number == worse.number


# TODO(c-bata): Add support for Python 3.13.
# https://github.com/optuna/optuna-dashboard/pull/985
@pytest.mark.skipif(sys.version_info > (3, 13), reason="With Python 3.13, this test is broken")
def test_study_pickle() -> None:
study_1 = create_study(
n_generate=4,
Expand Down

0 comments on commit b6bcbcf

Please sign in to comment.