-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
118 lines (109 loc) · 3.03 KB
/
pyproject.toml
File metadata and controls
118 lines (109 loc) · 3.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
[project]
name = "spotoptim"
version = "0.12.9"
description = "Sequential Parameter Optimization Toolbox"
readme = "README.md"
license = { text = "AGPL-3.0-or-later" }
classifiers = [
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
authors = [
{ name = "bartzbeielstein", email = "32470350+bartzbeielstein@users.noreply.github.com" }
]
requires-python = ">=3.13"
dependencies = [
"numpy>=1.24.3",
"scipy>=1.10.1",
"scikit-learn>=1.5.0",
# MkDocs dependencies removed — documentation now uses Quarto + quartodoc.
# Install doc-build tools via: pip install spotoptim[docs]
# or: pip install -r requirements-docs.txt
"jupyter>=1.1.1",
"matplotlib>=3.10.7",
"pandas>=2.1.0",
"requests>=2.32.3",
"torch>=2.9.1",
"tensorboard>=2.20.0",
"tabulate>=0.9.0",
"xgboost>=3.1.1",
"seaborn>=0.13.2",
"spotdesirability>=0.0.1",
"statsmodels>=0.14.6",
"dill>=0.4.1",
"flake8>=7.3.0",
"black>=26.1.0",
"importlib-metadata>=8.7.1",
"ty>=0.0.29",
]
[dependency-groups]
dev = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"pytest-xdist>=3.5.0",
"pytest-timeout>=2.3.0",
"black>=24.1.0",
"isort>=5.13.0",
"ruff>=0.3.0",
"safety>=3.0.0",
"bandit>=1.8.0",
"pre-commit>=3.7.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"pytest-xdist>=3.5.0",
"pytest-timeout>=2.3.0",
"black>=24.1.0",
"isort>=5.13.0",
"ruff>=0.3.0",
"safety>=3.0.0",
"bandit>=1.8.0",
"pre-commit>=3.7.0",
]
docs = [
# Quarto API documentation generator (replaces mkdocstrings)
"quartodoc>=0.11.1",
# Google-style docstring parser used by quartodoc
"griffe>=1.7.3",
# Quarto Jupyter integration
"jupyter>=1.1.1",
# Transitive dependencies for griffe CLI
"colorama>=0.4.6",
"importlib_metadata"
]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
# Keep slow-test timings visible on every run; the registry lives in tests/conftest.py.
addopts = ["--durations=15"]
# Safety net: no single test may hang the suite (e.g. a stuck network call).
# Provided by pytest-timeout (dev dependency).
timeout = 300
markers = [
"slow: heavy end-to-end test; deselect with -m \"not slow\". Runs in nightly/full CI.",
]
filterwarnings = [
"ignore::UserWarning:matplotlib",
]
[build-system]
requires = ["uv_build>=0.9.18,<1"]
build-backend = "uv_build"
[tool.uv]
package = true
# PyTorch CPU-only index — used ONLY for torch to avoid pulling
# incompatible wheels for other packages (markupsafe, importlib-metadata, etc.)
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[tool.uv.sources]
torch = { index = "pytorch-cpu" }
[tool.hatch.build.targets.wheel]
packages = ["src/spotoptim"]
[tool.hatch.build]
include = ["src/spotoptim/datasets/*.csv"]