Skip to content

Commit 6c55ba4

Browse files
committed
chore: upgrade poetry2.0 & apply pep621
1 parent dc6f251 commit 6c55ba4

File tree

1 file changed

+31
-20
lines changed

1 file changed

+31
-20
lines changed

pyproject.toml

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,35 @@
1-
[tool.poetry]
1+
[project]
22
name = "bayesian-optimization"
33
version = "3.0.0b1"
44
description = "Bayesian Optimization package"
5-
authors = ["Fernando Nogueira"]
6-
license = "MIT"
5+
authors = [{ name = "Fernando Nogueira", email = "[email protected]" }]
6+
license = { file = "LICENSE" }
77
readme = "README.md"
8-
packages = [{include = "bayes_opt"}]
9-
10-
[tool.poetry.dependencies]
11-
python = "^3.9"
12-
scikit-learn = "^1.0.0"
13-
numpy = ">=1.25"
14-
scipy = [
15-
{version = "^1.0.0", python = "<3.13"},
16-
{version = "^1.14.1", python = ">=3.13"}
8+
requires-python = ">=3.9,<4.0"
9+
classifiers = [
10+
"License :: OSI Approved :: MIT License",
11+
"Programming Language :: Python",
12+
"Programming Language :: Python :: 3",
13+
"Programming Language :: Python :: 3.9",
14+
"Programming Language :: Python :: 3.10",
15+
"Programming Language :: Python :: 3.11",
16+
"Programming Language :: Python :: 3.12",
17+
"Programming Language :: Python :: 3.13",
18+
]
19+
dependencies = [
20+
"scikit-learn>=1.0.0,<2.0.0",
21+
"numpy>=1.25",
22+
"scipy>=1.0.0,<2.0.0; python_version<'3.13'",
23+
"scipy>=1.14.1,<2.0.0; python_version>='3.13'",
24+
"colorama>=0.4.6,<1.0.0",
1725
]
18-
colorama = "^0.4.6"
26+
27+
[tool.poetry]
28+
requires-poetry = ">=2.0"
29+
packages = [{ include = "bayes_opt" }]
1930

2031

21-
[tool.poetry.group.dev] # for testing/developing
32+
[tool.poetry.group.dev] # for testing/developing
2233
optional = true
2334
[tool.poetry.group.dev.dependencies]
2435
pytest = "^8.0.0"
@@ -28,7 +39,7 @@ ruff = "0.6.6"
2839
pre-commit = "^3.7.1"
2940

3041

31-
[tool.poetry.group.nbtools] # for running/converting notebooks
42+
[tool.poetry.group.nbtools] # for running/converting notebooks
3243
optional = true
3344
[tool.poetry.group.nbtools.dependencies]
3445
nbformat = "^5.9.2"
@@ -38,17 +49,17 @@ matplotlib = "^3.0"
3849
nbsphinx = "^0.9.4"
3950
sphinx-immaterial = "^0.12.0"
4051
sphinx = [
41-
{version = "^7.0.0", python = "<3.10"},
42-
{version = "^8.0.0", python = ">=3.10"}
52+
{ version = "^7.0.0", python = "<3.10" },
53+
{ version = "^8.0.0", python = ">=3.10" },
4354
]
4455
sphinx-autodoc-typehints = [
45-
{version = "^2.3.0", python = "<3.10"},
46-
{version = "^2.4.0", python = ">=3.10"}
56+
{ version = "^2.3.0", python = "<3.10" },
57+
{ version = "^2.4.0", python = ">=3.10" },
4758
]
4859

4960

5061
[build-system]
51-
requires = ["poetry-core"]
62+
requires = ["poetry-core>=2.0"]
5263
build-backend = "poetry.core.masonry.api"
5364

5465
[tool.coverage.report]

0 commit comments

Comments
 (0)