Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Install test dependencies
run: |
poetry self add poetry-plugin-export
poetry export -f requirements.txt --with dev,nbtools --without-hashes --output requirements-dev.txt
poetry export -f requirements.txt --with dev --without-hashes --output requirements-dev.txt
echo "numpy${{ matrix.numpy-version }}" >> constraints.txt
uv pip compile requirements-dev.txt --output-file requirements.txt \
--python-version ${{ matrix.python-version }} \
Expand Down
59 changes: 24 additions & 35 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Bayesian Optimization package"
authors = [{ name = "Fernando Nogueira", email = "[email protected]" }]
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.9,<4.0"
requires-python = ">=3.9"
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
Expand All @@ -17,48 +17,37 @@ classifiers = [
"Programming Language :: Python :: 3.13",
]
dependencies = [
"scikit-learn>=1.0.0,<2.0.0",
"colorama>=0.4.6",
"numpy>=1.25; python_version<'3.13'",
"numpy>=2.1.3; python_version>='3.13'",
"scipy>=1.0.0,<2.0.0; python_version<'3.13'",
"scipy>=1.14.1,<2.0.0; python_version>='3.13'",
"colorama>=0.4.6,<1.0.0",
"scikit-learn>=1.0.0",
"scipy>=1.0.0; python_version<'3.13'",
"scipy>=1.14.1; python_version>='3.13'",
]

[project.optional-dependencies]
dev = [
"coverage>=7.4.1",
"jupyter>=1.0.0",
"matplotlib>=3.0",
"nbconvert>=7.14.2",
"nbformat>=5.9.2",
"nbsphinx>=0.9.4",
"pre-commit>=3.7.1",
"pytest>=8.0.0",
"pytest-cov>=4.1.0",
"ruff>=0.12.3",
"sphinx-immaterial>=0.12.0",
"sphinx>=7.0.0; python_version<'3.10'",
"sphinx>=8.0.0; python_version>='3.10'",
"sphinx-autodoc-typehints>=2.3.0; python_version<'3.10'",
"sphinx-autodoc-typehints>=2.4.0; python_version>='3.10'",
]

[tool.poetry]
requires-poetry = ">=2.0"
packages = [{ include = "bayes_opt" }]


[tool.poetry.group.dev] # for testing/developing
optional = true
[tool.poetry.group.dev.dependencies]
pytest = "^8.0.0"
pytest-cov = "^4.1.0"
coverage = "^7.4.1"
ruff = "0.6.6"
pre-commit = "^3.7.1"


[tool.poetry.group.nbtools] # for running/converting notebooks
optional = true
[tool.poetry.group.nbtools.dependencies]
nbformat = "^5.9.2"
nbconvert = "^7.14.2"
jupyter = "^1.0.0"
matplotlib = "^3.0"
nbsphinx = "^0.9.4"
sphinx-immaterial = "^0.12.0"
sphinx = [
{ version = "^7.0.0", python = "<3.10" },
{ version = "^8.0.0", python = ">=3.10" },
]
sphinx-autodoc-typehints = [
{ version = "^2.3.0", python = "<3.10" },
{ version = "^2.4.0", python = ">=3.10" },
]


[build-system]
requires = ["poetry-core>=2.0"]
build-backend = "poetry.core.masonry.api"
Expand Down