-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
85 lines (75 loc) · 1.8 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
[tool.poetry]
name = "panimg"
version = "0.15.0"
description = "Conversion of medical images to MHA and TIFF."
license = "Apache-2.0"
authors = ["James Meakin <[email protected]>"]
readme = "README.md"
repository = "https://github.com/DIAGNijmegen/rse-panimg"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Healthcare Industry",
"Operating System :: POSIX",
]
[tool.poetry.scripts]
panimg = "panimg.cli:cli"
[tool.poetry.dependencies]
python = "^3.10"
pydantic = ">=2"
numpy = ">=1.22"
# Exclude 2.1.1.1 due to
# https://github.com/SimpleITK/SimpleITK/issues/1627
# and https://github.com/python-poetry/poetry/issues/2453
SimpleITK = ">=2.0,!=2.1.1.1"
pydicom = ">=2.2"
Pillow = "*"
openslide-python = "*"
pyvips = "*"
tifffile = "*"
construct = "*"
click = "*"
pylibjpeg = "*"
pylibjpeg-libjpeg = "*"
pylibjpeg-openjpeg = "*"
wsidicom = ">=0.10.0"
imagecodecs = ">=2023.3.16"
[tool.poetry.dev-dependencies]
pytest = "*"
pytest-xdist = "*"
pytest-randomly = "*"
pytest-cov = "*"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
profile = "black"
known_first_party = ["panimg", "tests"]
line_length = 79
[tool.black]
line-length = 79
target-version = ['py38']
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = [
"tests",
]
python_files = "tests.py test_*.py *_tests.py"
addopts = "--strict-markers --showlocals -n auto --dist loadscope"
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = py310, py311, py312, py313
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313
[testenv]
allowlist_externals = poetry
commands =
poetry install -v
poetry run pytest --cov-branch --cov-report term-missing --cov=tests/ --cov=panimg/ {posargs}
"""