-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (65 loc) · 2.32 KB
/
Copy pathpyproject.toml
File metadata and controls
74 lines (65 loc) · 2.32 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
[tool.poetry]
name = "histomil"
version = "1.1"
description = "A library for training Multi-Instance Learning (MIL) architectures from MIL-Lab on histology datasets"
authors = ["Gabriel Cabas <gabriel.cabas@outlook.com>"]
readme = "README.md"
license = "MIT"
homepage = "https://github.com/digenoma-lab/HistoMILTrainer"
repository = "https://github.com/digenoma-lab/HistoMILTrainer"
keywords = ["histology", "multiple-instance-learning", "deep-learning", "medical-imaging", "wsi"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
]
packages = [{include = "histomil"}]
include = ["histomil/configs/*.json"]
# Note: All runtime dependencies (torch, numpy, pandas, scikit-learn, tqdm, h5py, etc.)
# are provided by MIL-Lab, which must be installed first (See README.md)
[tool.poetry.dependencies]
python = ">=3.10,<3.11"
src = {git = "https://github.com/mahmoodlab/MIL-Lab.git"}
topk = {git = "https://github.com/oval-group/smooth-topk.git"} # Required for CLAM
trident = {git = "https://github.com/mahmoodlab/TRIDENT.git"}
seaborn = "*"
matplotlib = "*"
[tool.poetry.group.dev.dependencies]
pytest = "^7.0.0"
pytest-cov = "^4.0.0"
black = "^22.0.0"
flake8 = "^5.0.0"
mypy = "^0.991"
# Scripts can be added here if CLI commands are created in the future
[tool.poetry.scripts]
# histomil-train = "histomil.cli:train"
# histomil-splits = "histomil.cli:splits"
histomil-splits = "histomil.cli:make_splits"
histomil-grid = "histomil.cli:grid_search"
histomil-predict = "histomil.cli:predict"
histomil-heatmap = "histomil.cli:heatmap"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 100
target-version = ['py310']
include = '\.pyi?$'
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
filterwarnings = [
"ignore::FutureWarning:timm.*",
"ignore::DeprecationWarning:torch_geometric.*",
]