-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
130 lines (121 loc) · 2.72 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
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
119
120
121
122
123
124
125
126
127
128
129
130
# PIP, using PEP621
[project]
name = "wsi"
authors = [
{name = "Andre Rendeiro", email = "[email protected]"},
]
description = "Tools to process whole slide images. A fork of mahmoodlab/CLAM"
readme = "README.md"
keywords = [
"computational pathology",
]
classifiers = [
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Development Status :: 3 - Alpha",
"Typing :: Typed",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Topic :: Scientific/Engineering :: Bio-Informatics",
]
#license = "gpt3"
requires-python = ">=3.10"
dependencies = [
"h5py",
"matplotlib",
"numpy",
"opencv-python",
"openslide-python",
"pandas",
"Pillow",
"requests",
"scikit-image",
"scikit-learn",
"scipy",
"shapely",
"torch",
"torchvision",
"tqdm",
]
dynamic = ['version']
[project.optional-dependencies]
dev = [
"ipython",
"black[d]",
"mypy",
"pylint",
"git-lint",
"pytest",
"rich",
"PyQt5",
]
doc = [
"Sphinx",
"sphinx-issues",
"sphinx-rtd-theme",
"sphinx-autodoc-typehints",
"pydata-sphinx-theme",
"numpydoc",
]
[project.urls]
homepage = "https://github.com/rendeirolab/wsi"
documentation = "https://github.com/rendeirolab/wsi/blob/main/README.md"
repository = "https://github.com/rendeirolab/wsi"
[build-system]
# requires = ["poetry>=0.12", "setuptools>=45", "wheel", "poetry-dynamic-versioning"]
# build-backend = "poetry.masonry.api"
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "wsi/_version.py"
write_to_template = 'version = __version__ = "{version}"'
[tool.black]
line-length = 90
target-version = ['py310']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''
[tool.mypy]
python_version = '3.10'
warn_return_any = true
warn_unused_configs = true
# Packages without type annotations in shed yet
[[tool.mypy.overrides]]
module = [
'numpy.*',
'pandas.*',
'scipy.*',
'skimage.*',
'matplotlib.*',
'networkx.*',
#
'wsi.*'
]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q --strict-markers"
testpaths = [
"tests",
"integration",
]
markers = [
'slow', # 'marks tests as slow (deselect with "-m 'not slow'")',
"wsi"
]