-
Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy pathpyproject.toml
More file actions
189 lines (174 loc) · 4.55 KB
/
pyproject.toml
File metadata and controls
189 lines (174 loc) · 4.55 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
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
[build-system]
requires = ["setuptools>=45", "wheel", "Cython>=0.29.22"]
build-backend = "setuptools.build_meta"
[project]
name = "pytorch-connectomics"
version = "2.0.0"
description = "Semantic and instance segmentation toolbox for EM connectomics"
readme = "README.md"
requires-python = ">=3.8,<3.13"
license = {text = "MIT"}
authors = [
{name = "PyTorch Connectomics Contributors", email = "noreply@example.com"}
]
maintainers = [
{name = "PyTorch Connectomics Team"}
]
keywords = [
"connectomics",
"electron-microscopy",
"segmentation",
"deep-learning",
"pytorch",
"neuroscience",
"image-processing",
"3d-segmentation",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"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 :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Image Processing",
"Topic :: Scientific/Engineering :: Medical Science Apps.",
"Operating System :: OS Independent",
]
dependencies = [
# Deep learning frameworks
"torch>=1.8.0",
"torchvision>=0.9.0",
"numpy>=1.23.0", # >=1.23 for matplotlib; mahotas 1.4.18+ compatible with numpy 2.x
# PyTorch Lightning & MONAI (PRIMARY frameworks)
"pytorch-lightning>=2.0.0",
"monai>=0.9.1",
"torchmetrics>=0.11.0",
# Configuration management
"omegaconf>=2.1.0",
# Scientific computing
"scipy>=1.5",
"scikit-learn>=0.23.1",
"scikit-image>=0.17.2",
# Image processing & I/O
"opencv-python>=4.3.0",
"h5py>=2.10.0",
"imageio>=2.9.0",
"nibabel>=3.0.0",
# Visualization & logging
"matplotlib>=3.3.0",
"tensorboard>=2.2.2",
# Utilities
"tqdm>=4.58.0",
"einops>=0.3.0",
"psutil>=5.8.0",
# Post-processing
"connected-components-3d>=3.0.0",
"fastremap>=1.10.0",
"kimimaro>=1.0.0",
"crackle-codec>=0.1.0",
"mahotas>=1.4.0",
# Build tools
"Cython>=0.29.22",
]
[project.optional-dependencies]
full = [
"gputil>=1.4.0",
"tifffile>=2021.11.2",
"wandb>=0.13.0",
"optuna>=2.10.0",
"neuroglancer>=1.0.0",
]
dev = [
"pytest>=6.0.0",
"pytest-benchmark>=3.4.0",
"pytest-cov>=3.0.0",
"black>=22.0.0",
"flake8>=4.0.0",
"isort>=5.10.0",
"mypy>=0.950",
]
docs = [
"sphinx>=4.0.0",
"pytorch-sphinx-theme>=0.0.19",
"sphinxcontrib-katex",
"sphinx-rtd-theme>=1.0.0",
"nbsphinx>=0.8.0",
"jinja2>=3.0",
]
[project.urls]
Homepage = "https://github.com/zudi-lin/pytorch_connectomics"
Documentation = "https://connectomics.readthedocs.io"
Repository = "https://github.com/zudi-lin/pytorch_connectomics"
"Bug Tracker" = "https://github.com/zudi-lin/pytorch_connectomics/issues"
Changelog = "https://github.com/zudi-lin/pytorch_connectomics/blob/master/RELEASE_NOTES.md"
[project.scripts]
pytc-demo = "connectomics.utils.demo:run_demo"
pytc-download = "connectomics.utils.download:main"
[tool.setuptools]
packages = ["connectomics"]
include-package-data = true
[tool.setuptools.package-data]
connectomics = ["py.typed"]
[tool.black]
line-length = 100
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
profile = "black"
line_length = 100
skip_gitignore = true
[tool.ruff]
line-length = 100
target-version = "py38"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long (handled by formatter)
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ruff.lint.isort]
known-first-party = ["connectomics"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
# Keep default invocation lightweight; enable coverage locally via CLI when pytest-cov is installed.
addopts = "-v"
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = true