Skip to content

Commit 27fc495

Browse files
authored
Prepare release 0.23 (#200)
* Bump 0.23 * Update changelog * Use Python 3.12 in CI * Update poetry lock, use numpy <2 * Fix test assertion for py3.12
1 parent aba52f7 commit 27fc495

File tree

12 files changed

+94
-77
lines changed

12 files changed

+94
-77
lines changed

.github/workflows/pytest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fail-fast: false
1919
max-parallel: 16
2020
matrix:
21-
python-version: ["3.10", "3.11"]
21+
python-version: ["3.11", "3.12"]
2222
os:
2323
- ubuntu-latest
2424
- windows-latest

.github/workflows/python.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: actions/checkout@v4
2424
- uses: actions/setup-python@v5
2525
with:
26-
python-version: '3.11'
26+
python-version: '3.12'
2727
- name: Build wheels
2828
uses: PyO3/maturin-action@v1
2929
with:
@@ -46,7 +46,7 @@ jobs:
4646
- uses: actions/checkout@v4
4747
- uses: actions/setup-python@v5
4848
with:
49-
python-version: '3.11'
49+
python-version: '3.12'
5050
architecture: ${{ matrix.target }}
5151
- name: Build wheels
5252
uses: PyO3/maturin-action@v1
@@ -69,7 +69,7 @@ jobs:
6969
- uses: actions/checkout@v4
7070
- uses: actions/setup-python@v5
7171
with:
72-
python-version: '3.11'
72+
python-version: '3.12'
7373
- name: Build wheels
7474
uses: PyO3/maturin-action@v1
7575
with:

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changes
22

3+
## Version 0.23.0 - 01/10/2024
4+
5+
* Add EGObox logo by @relf in <https://github.com/relf/egobox/pull/193>
6+
* `gp`: Add training infos getters at Python level by @relf in <https://github.com/relf/egobox/pull/196>
7+
* `ego`:
8+
* Add checkpointing and hot start by @relf in <https://github.com/relf/egobox/pull/197>
9+
* Do not activate TREGO by default by @relf in <https://github.com/relf/egobox/pull/198>
10+
* Improve hot start API by @relf in <https://github.com/relf/egobox/pull/199>
11+
312
## Version 0.22.0 - 04/09/2024
413

514
* `ego`:

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "egobox"
3-
version = "0.22.0"
3+
version = "0.23.0"
44
authors = ["Rémi Lafage <[email protected]>"]
55
edition = "2021"
66
description = "A toolbox for efficient global optimization"
@@ -31,10 +31,10 @@ persistent-moe = ["egobox-moe/persistent"]
3131
blas = ["ndarray/blas", "egobox-gp/blas", "egobox-moe/blas", "egobox-ego/blas"]
3232

3333
[dependencies]
34-
egobox-doe = { version = "0.22.0", path = "./doe" }
35-
egobox-gp = { version = "0.22.0", path = "./gp" }
36-
egobox-moe = { version = "0.22.0", path = "./moe", features = ["persistent"] }
37-
egobox-ego = { version = "0.22.0", path = "./ego", features = ["persistent"] }
34+
egobox-doe = { version = "0.23.0", path = "./doe" }
35+
egobox-gp = { version = "0.23.0", path = "./gp" }
36+
egobox-moe = { version = "0.23.0", path = "./moe", features = ["persistent"] }
37+
egobox-ego = { version = "0.23.0", path = "./ego", features = ["persistent"] }
3838

3939
linfa = { version = "0.7", default-features = false }
4040

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ Depending on the sub-packages you want to use, you have to add following declara
7979

8080
```text
8181
[dependencies]
82-
egobox-doe = { version = "0.21" }
83-
egobox-gp = { version = "0.21" }
84-
egobox-moe = { version = "0.21" }
85-
egobox-ego = { version = "0.21" }
82+
egobox-doe = { version = "0.23" }
83+
egobox-gp = { version = "0.23" }
84+
egobox-moe = { version = "0.23" }
85+
egobox-ego = { version = "0.23" }
8686
```
8787

8888
### Features
@@ -146,7 +146,7 @@ Thus, for instance, to use `gp` with the Intel MKL BLAS/LAPACK backend, you coul
146146

147147
```text
148148
[dependencies]
149-
egobox-gp = { version = "0.21", features = ["blas", "linfa/intel-mkl-static"] }
149+
egobox-gp = { version = "0.23", features = ["blas", "linfa/intel-mkl-static"] }
150150
```
151151

152152
or you could run the `gp` example as follows:

doe/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "egobox-doe"
3-
version = "0.22.0"
3+
version = "0.23.0"
44
authors = ["Rémi Lafage <[email protected]>"]
55
edition = "2021"
66
description = "A library for design of experiments"

ego/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "egobox-ego"
3-
version = "0.22.0"
3+
version = "0.23.0"
44
authors = ["Rémi Lafage <[email protected]>"]
55
edition = "2021"
66
description = "A library for efficient global optimization"
@@ -16,11 +16,11 @@ persistent = ["egobox-moe/persistent"]
1616
blas = ["ndarray-linalg", "linfa/ndarray-linalg", "linfa-pls/blas"]
1717

1818
[dependencies]
19-
egobox-doe = { version = "0.22.0", path = "../doe", features = [
19+
egobox-doe = { version = "0.23.0", path = "../doe", features = [
2020
"serializable",
2121
] }
22-
egobox-gp = { version = "0.22.0", path = "../gp", features = ["serializable"] }
23-
egobox-moe = { version = "0.22.0", path = "../moe", features = [
22+
egobox-gp = { version = "0.23.0", path = "../gp", features = ["serializable"] }
23+
egobox-moe = { version = "0.23.0", path = "../moe", features = [
2424
"serializable",
2525
] }
2626

gp/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "egobox-gp"
3-
version = "0.22.0"
3+
version = "0.23.0"
44
authors = ["Rémi Lafage <[email protected]>"]
55
edition = "2021"
66
description = "A library for gaussian process modeling"
@@ -18,7 +18,7 @@ persistent = ["serializable", "serde_json"]
1818
blas = ["ndarray-linalg", "linfa/ndarray-linalg", "linfa-pls/blas"]
1919

2020
[dependencies]
21-
egobox-doe = { version = "0.22.0", path = "../doe" }
21+
egobox-doe = { version = "0.23.0", path = "../doe" }
2222

2323
linfa = { version = "0.7", default-features = false }
2424
linfa-pls = { version = "0.7", default-features = false }

moe/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "egobox-moe"
3-
version = "0.22.0"
3+
version = "0.23.0"
44
authors = ["Rémi Lafage <[email protected]>"]
55
edition = "2021"
66
description = "A library for mixture of expert gaussian processes"
@@ -29,8 +29,8 @@ serializable = [
2929
blas = ["ndarray-linalg", "linfa/ndarray-linalg", "linfa-pls/blas"]
3030

3131
[dependencies]
32-
egobox-doe = { version = "0.22.0", path = "../doe" }
33-
egobox-gp = { version = "0.22.0", path = "../gp" }
32+
egobox-doe = { version = "0.23.0", path = "../doe" }
33+
egobox-gp = { version = "0.23.0", path = "../gp" }
3434

3535
linfa = { version = "0.7", default-features = false }
3636
linfa-clustering = { version = "0.7", default-features = false }

poetry.lock

Lines changed: 57 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ python-source = "python"
2424

2525
[tool.poetry]
2626
name = "egobox"
27-
version = "0.22.0"
27+
version = "0.23.0"
2828
description = "Python binding for egobox EGO optimizer written in Rust"
2929
authors = ["Rémi Lafage <[email protected]>"]
3030
packages = [{ include = "egobox", from = "python" }]
3131

3232
[tool.poetry.dependencies]
33-
numpy = ">=1.18"
34-
python = ">=3.8"
33+
numpy = ">=1.18, <2"
34+
python = ">=3.9"
3535

3636
[tool.poetry.dev-dependencies]
3737
pytest = ">=6"

python/egobox/tests/test_gpmix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def test_gpx_save_load(self):
7777
)
7878

7979
def test_training_params(self):
80-
self.assertEquals(self.gpx.dims(), (1, 1))
80+
self.assertEqual(self.gpx.dims(), (1, 1))
8181
(xdata, ydata) = self.gpx.training_data()
8282
np.testing.assert_array_equal(xdata, self.xt)
8383
np.testing.assert_array_equal(ydata, self.yt)

0 commit comments

Comments
 (0)