From b853d970749e0f7c2551297c4a5122f431d0173a Mon Sep 17 00:00:00 2001 From: phi Date: Fri, 5 Jun 2026 20:42:28 +0900 Subject: [PATCH 01/10] deps --- pyproject.toml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 46b9dae7..0eb523e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,11 +20,14 @@ classifiers = [ dependencies = [ "colorama>=0.4.6", "numpy>=1.25; python_version<'3.13'", - "numpy>=2.1.3; python_version>='3.13'", + "numpy>=2.1.3; python_version>='3.13' and python_version<'3.14'", + "numpy>=2.3.0; python_version>='3.14'", "packaging>=20.0", - "scikit-learn>=1.0.0", + "scikit-learn>=1.0.0; python_version<'3.14'", + "scikit-learn>=1.7.2; python_version>='3.14'", "scipy>=1.0.0; python_version<'3.13'", - "scipy>=1.14.1; python_version>='3.13'", + "scipy>=1.14.1; python_version>='3.13' and python_version<'3.14'", + "scipy>=1.17.0; python_version>='3.14'", ] [project.optional-dependencies] From 2973216b502fc3484a9af7e634172067632c411f Mon Sep 17 00:00:00 2001 From: phi Date: Fri, 5 Jun 2026 20:46:26 +0900 Subject: [PATCH 02/10] deps --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0eb523e0..4a518dbd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,8 @@ dependencies = [ "numpy>=1.25; python_version<'3.13'", "numpy>=2.1.3; python_version>='3.13' and python_version<'3.14'", "numpy>=2.3.0; python_version>='3.14'", - "packaging>=20.0", + "packaging>=20.0; python_version<'3.14'", + "packaging>=26.0; python_version>='3.14'", "scikit-learn>=1.0.0; python_version<'3.14'", "scikit-learn>=1.7.2; python_version>='3.14'", "scipy>=1.0.0; python_version<'3.13'", From 1afe7599d284e9d308c1e9e9ce455d69175e88ec Mon Sep 17 00:00:00 2001 From: phi Date: Fri, 5 Jun 2026 21:34:05 +0900 Subject: [PATCH 03/10] chore: add classifiers --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 4a518dbd..01fb577c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,6 +16,7 @@ classifiers = [ "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", + "Programming Language :: Python :: Free Threading" ] dependencies = [ "colorama>=0.4.6", From 54d255f717506fdd3e81f0b7b8d50e6ebbb7b031 Mon Sep 17 00:00:00 2001 From: phi Date: Fri, 5 Jun 2026 21:35:32 +0900 Subject: [PATCH 04/10] chore: add 3.14t test --- .github/workflows/run_tests.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index be8c036d..77caea76 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -17,13 +17,15 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"] numpy-version: [">=1.25,<2", ">=2"] exclude: - python-version: "3.13" # numpy<2 is not supported on 3.13+ numpy-version: ">=1.25,<2" - python-version: "3.14" numpy-version: ">=1.25,<2" + - python-version: "3.14t" + numpy-version: ">=1.25,<2" steps: - uses: actions/checkout@v3 From 29b9a356bdf8686d95638f5c4204161a2650cf7f Mon Sep 17 00:00:00 2001 From: phi Date: Fri, 5 Jun 2026 21:42:18 +0900 Subject: [PATCH 05/10] deps --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 01fb577c..78b2f9e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ dependencies = [ "packaging>=20.0; python_version<'3.14'", "packaging>=26.0; python_version>='3.14'", "scikit-learn>=1.0.0; python_version<'3.14'", - "scikit-learn>=1.7.2; python_version>='3.14'", + "scikit-learn>=1.8.0; python_version>='3.14'", "scipy>=1.0.0; python_version<'3.13'", "scipy>=1.14.1; python_version>='3.13' and python_version<'3.14'", "scipy>=1.17.0; python_version>='3.14'", From 47b89ee212e3882579dea036945c62700e2b46a7 Mon Sep 17 00:00:00 2001 From: phi Date: Fri, 10 Jul 2026 23:09:56 +0900 Subject: [PATCH 06/10] fix: pytest warnings --- tests/test_notebooks_run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_notebooks_run.py b/tests/test_notebooks_run.py index 29ce4e33..f1fbf6ea 100644 --- a/tests/test_notebooks_run.py +++ b/tests/test_notebooks_run.py @@ -16,7 +16,7 @@ # get all notebooks: -@pytest.mark.parametrize("notebook", this_file_loc.with_name("examples").glob("*.ipynb")) +@pytest.mark.parametrize("notebook", sorted(this_file_loc.with_name("examples").glob("*.ipynb"))) def test_all_notebooks_run(notebook: Path): as_string = str(notebook) if any([nb in as_string for nb in _NOTEBOOKS_NOT_TO_RUN]): From 9a4929bf9409f21857483c154b1508006c4f0ad4 Mon Sep 17 00:00:00 2001 From: phi Date: Fri, 10 Jul 2026 23:24:48 +0900 Subject: [PATCH 07/10] chore: fix numpy constraints --- .github/workflows/run_tests.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 77caea76..e9d5850a 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -13,19 +13,19 @@ permissions: jobs: build: - name: Python ${{ matrix.python-version }} - numpy ${{ matrix.numpy-version }} + name: Python ${{ matrix.python-version }} - ${{ matrix.numpy-constraints }} runs-on: ubuntu-latest strategy: matrix: python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"] - numpy-version: [">=1.25,<2", ">=2"] + numpy-constraints: ["numpy>=1.25,<2 scipy<1.18", "numpy>=2"] # scipy>=1.18 is not supported on numpy<2 exclude: - python-version: "3.13" # numpy<2 is not supported on 3.13+ - numpy-version: ">=1.25,<2" + numpy-constraints: "numpy>=1.25,<2 scipy<1.18" - python-version: "3.14" - numpy-version: ">=1.25,<2" + numpy-constraints: "numpy>=1.25,<2 scipy<1.18" - python-version: "3.14t" - numpy-version: ">=1.25,<2" + numpy-constraints: "numpy>=1.25,<2 scipy<1.18" steps: - uses: actions/checkout@v3 @@ -36,7 +36,7 @@ jobs: - name: Install test dependencies run: | uv sync --extra dev - uv pip install "numpy${{ matrix.numpy-version}}" + uv pip install "{{ matrix.numpy-constraints}}" - name: Run pytest run: uv run --no-sync pytest --cov-report xml --cov=bayes_opt/ - name: Upload coverage to Codecov From 5e955ee0e5549fd41d289c390088557e50c913a4 Mon Sep 17 00:00:00 2001 From: phi Date: Fri, 10 Jul 2026 23:26:05 +0900 Subject: [PATCH 08/10] fix: typo --- .github/workflows/run_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index e9d5850a..a129b9f3 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -36,7 +36,7 @@ jobs: - name: Install test dependencies run: | uv sync --extra dev - uv pip install "{{ matrix.numpy-constraints}}" + uv pip install "{{ matrix.numpy-constraints }}" - name: Run pytest run: uv run --no-sync pytest --cov-report xml --cov=bayes_opt/ - name: Upload coverage to Codecov From 0ba14758d21acd11ed250406ac3a81ea431753e5 Mon Sep 17 00:00:00 2001 From: phi Date: Fri, 10 Jul 2026 23:27:17 +0900 Subject: [PATCH 09/10] fix: workflow --- .github/workflows/run_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index a129b9f3..53478aeb 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -36,7 +36,7 @@ jobs: - name: Install test dependencies run: | uv sync --extra dev - uv pip install "{{ matrix.numpy-constraints }}" + uv pip install {{ matrix.numpy-constraints }} - name: Run pytest run: uv run --no-sync pytest --cov-report xml --cov=bayes_opt/ - name: Upload coverage to Codecov From 657d6eeab3e15aff83001fae588a9b160b092aa0 Mon Sep 17 00:00:00 2001 From: phi Date: Fri, 10 Jul 2026 23:33:01 +0900 Subject: [PATCH 10/10] fix: workflow --- .github/workflows/run_tests.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 53478aeb..4b3a061b 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -13,19 +13,19 @@ permissions: jobs: build: - name: Python ${{ matrix.python-version }} - ${{ matrix.numpy-constraints }} + name: Python ${{ matrix.python-version }} - NumPy ${{ matrix.numpy-major }}.x runs-on: ubuntu-latest strategy: matrix: python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"] - numpy-constraints: ["numpy>=1.25,<2 scipy<1.18", "numpy>=2"] # scipy>=1.18 is not supported on numpy<2 + numpy-major: ["1", "2"] exclude: - python-version: "3.13" # numpy<2 is not supported on 3.13+ - numpy-constraints: "numpy>=1.25,<2 scipy<1.18" + numpy-major: "1" - python-version: "3.14" - numpy-constraints: "numpy>=1.25,<2 scipy<1.18" + numpy-major: "1" - python-version: "3.14t" - numpy-constraints: "numpy>=1.25,<2 scipy<1.18" + numpy-major: "1" steps: - uses: actions/checkout@v3 @@ -36,7 +36,12 @@ jobs: - name: Install test dependencies run: | uv sync --extra dev - uv pip install {{ matrix.numpy-constraints }} + - name: Install NumPy 1.x compatibility dependencies + if: matrix.numpy-major == '1' + run: uv pip install "numpy>=1.25,<2" "scipy<1.18" # scipy>=1.18 is not supported on numpy<2 + - name: Install NumPy 2.x compatibility dependencies + if: matrix.numpy-major == '2' + run: uv pip install "numpy>=2" - name: Run pytest run: uv run --no-sync pytest --cov-report xml --cov=bayes_opt/ - name: Upload coverage to Codecov