-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
88 lines (75 loc) · 2.87 KB
/
pyproject.toml
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
[tool.poetry]
name = "tpcp"
version = "2.0.0"
description = "Pipeline and Dataset helpers for complex algorithm evaluation."
authors = [
"Arne Küderle <[email protected]>",
"Robert Richer <[email protected]>",
"Raul C. Sîmpetru <[email protected]>",
"Björn Eskofier <bjö[email protected]>"
]
readme = "README.md"
homepage = "https://github.com/mad-lab-fau/tpcp"
repository = "https://github.com/mad-lab-fau/tpcp"
[tool.poetry.plugins."pytest11"]
tpcp_snapshots = "tpcp.testing._regression_utils"
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
joblib = ">=1.3"
scikit-learn = ">=1.2.0"
numpy = ">=1.0"
pandas = ">=1.3"
tqdm = ">=4.62.3"
typing-extensions = ">=4.1.1"
torch = { version = ">=1.6.0", source="torch_cpu", optional = true }
tensorflow-cpu = { version = ">=2.16.0", optional = true }
optuna = {version = ">=2.10", optional = true}
attrs = {version = ">=22.1.0", optional = true}
[tool.poetry.extras]
x-torch_cpu = ["torch"]
x-tensorflow = ["tensorflow-cpu"]
optuna = ["optuna"]
attrs = ["attrs"]
[tool.poetry.group.dev.dependencies]
pydata-sphinx-theme = "^0.14.1"
pytest = "^6.2.1"
pytest-cov = "^2.8.1"
poethepoet = "^0.10.0"
pyright = "^1.1.230"
numpydoc = "^1.4.0"
sphinx-gallery = "^0.14.0"
recommonmark = "^0.7.1"
memory-profiler = "^0.58.0"
matplotlib = "^3.4.3"
toml = "^0.10.2"
Sphinx = "^7.2.6"
ruff = "^0.7.0"
# We allow the prerelease as dev dependency to ensure that we can run tests against numpy 2.0, as only 2.18 supports it.
tensorflow-cpu = {version = "^2.18.0rc2", allow-prereleases = true}
[[tool.poetry.source]]
name = "torch_cpu"
url = "https://download.pytorch.org/whl/cpu"
priority = "supplemental"
[[tool.poetry.source]]
name = "PyPI"
priority = "primary"
[tool.poe.tasks]
_format = "ruff format ."
_auto_fix = "ruff check . --fix-only --show-fixes --exit-zero"
_auto_fix_unsafe = "ruff check . --fix-only --show-fixes --exit-zero --unsafe-fixes"
format = ["_auto_fix", "_format"]
format_unsafe = ["_auto_fix_unsafe", "_format"]
lint = { cmd = "ruff check tpcp --fix", help = "Lint all files with ruff." }
_lint_ci = "ruff check tpcp --output-format=github"
_check_format = "ruff format . --check"
ci_check = { sequence = ["_check_format", "_lint_ci"], help = "Check all potential format and linting issues." }
test = { cmd = "pytest ./tests --cov=tpcp --cov-report=term-missing --cov-report=xml", help = "Run Pytest with coverage." }
docs = { "script" = "_tasks:task_docs()", help = "Build the html docs using Sphinx." }
docs_clean = { "script" = "_tasks:task_docs(clean=True)", help = "Remove all old build files and build a clean version of the docs." }
docs_preview = { cmd = "python -m http.server --directory docs/_build/html", help = "Preview the built html docs." }
version = { "script" = "_tasks:task_update_version()" }
[tool.pyright]
pythonVersion = "3.9"
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"