-
Notifications
You must be signed in to change notification settings - Fork 12
/
pyproject.toml
150 lines (130 loc) · 3.41 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
[build-system]
requires = [
"setuptools >= 64",
"setuptools_scm[toml]>=6.2",
]
build-backend = "setuptools.build_meta"
[project]
name = "tiffslide"
description = "tifffile-based drop-in replacement for openslide-python"
license.file = "LICENSE"
authors = [
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Bio-Informatics",
"Topic :: Utilities",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
]
requires-python = ">=3.8"
dependencies = [
"imagecodecs",
"fsspec!=2022.11.0,!=2023.1.0",
"pillow",
"tifffile>=2021.6.14",
"zarr>=2.11.0",
"typing_extensions>=4.0",
]
dynamic = ["version"]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Homepage = "https://github.com/Bayer-Group/tiffslide"
Download = "https://github.com/Bayer-Group/tiffslide"
Source = "https://github.com/Bayer-Group/tiffslide"
Changelog = "https://github.com/Bayer-Group/tiffslide/blob/main/CHANGELOG.md"
[project.optional-dependencies]
dev = [
"pre-commit",
"black",
"pytest>=6",
"pytest-benchmark",
"pytest-cov",
"mypy",
]
[tool.setuptools]
include-package-data = false
[tool.setuptools.packages.find]
exclude = ["tests/*"]
namespaces = false
[tool.setuptools.package-data]
tiffslide = ["py.typed"]
[tool.setuptools_scm]
write_to = "tiffslide/_version.py"
version_scheme = "post-release"
[tool.pytest.ini_options]
addopts = [
"-v",
# (only needed by windows) disable faulthandler plugin to suppress non-fatal error msgs
"-p", "no:faulthandler",
"-m", "not compat",
]
markers = [
"compat",
]
[tool.isort]
profile = "black"
py_version = "37"
force_single_line = true
extend_skip = ["setup.py", "docs/source/conf.py"]
[tool.coverage.run]
source = ["tifffile"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if MYPY:",
"^\\s+[.][.][.]$",
]
[tool.mypy]
python_version = "3.8"
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
namespace_packages = true
no_implicit_optional = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = false
plugins = ["numpy.typing.mypy_plugin"]
[[tool.mypy.overrides]]
module = ["tiffslide.tests.*"]
disallow_untyped_defs = false
disallow_incomplete_defs = false
[[tool.mypy.overrides]]
module = ["PIL.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["fsspec.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["tifffile.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["openslide.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["zarr.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["imagecodecs.*"]
ignore_missing_imports = true