-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
79 lines (68 loc) · 1.96 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
[tool.poetry]
name = "vanilla-roll"
version = "0.0.0"
description = "A simple array based volume renderer"
authors = ["Masahiro Wada <argon.argon.argon@gmail.com>"]
license = "Apache-2.0"
repository = "https://github.com/ar90n/vanilla_roll"
readme = "README.md"
keywords = ["array-api", "volume rendering"]
include = ["vanilla_roll/py.typed"]
[tool.poetry.dependencies]
python = "~3.10"
numpy = "^1.23.0"
metaimageio = {version = "^1.0.0", optional = true}
torch = {version = "^1.8.0", optional = true}
nibabel = {version = "^5.0.0", optional = true}
pydicom = {version = "^2.3.0", optional = true}
cupy = {version = "^12.0.0", optional = true}
[tool.poetry.extras]
torch = ["torch"]
cupy = ["cupy"]
dicom = ["pydicom"]
mha = ["metaimageio"]
nifti = ["nibabel"]
[tool.poetry.group.dev.dependencies]
joblib = "^1.1.0"
poethepoet = "^0.24.0"
pyright = "^1.1.238"
pytest = "^7.1.1"
pytest-cov = "^4.0.0"
pytest-xdist = "^3.0.0"
pytest-black = "^0.3.12"
pre-commit = "^3.0.0"
conventional-commit = "^0.4.2"
isort = "^5.10.1"
flake8 = "^6.0.0"
commitizen = "^3.0.0"
ipykernel = "^6.13.0"
[[tool.poetry.source]]
name = "torch"
url = "https://download.pytorch.org/whl/cpu"
secondary = true
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.isort]
profile = "black"
[tool.pyright]
include = ["vanilla_roll", "tests"]
stubPath ="stubs"
typeCheckingMode = "strict"
reportMissingImports = false
reportMissingTypeStubs = false
pythonVersion = "3.10"
pythonPlatform = "Linux"
[tool.pytest.ini_options]
addopts = "--strict --durations=0 --color=yes --doctest-modules"
testpaths = ["vanilla_roll", "tests"]
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"
[tool.poe.tasks]
test = "pytest"
check = { shell = "pre-commit run -a && pyright" }
install-all-extras = "poetry install --all-extras"
install-all-cpu = "poetry install --extras 'torch dicom mha nifti'"
install-pre-commit = "pre-commit install"