-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpyproject.toml
More file actions
165 lines (154 loc) · 3.89 KB
/
Copy pathpyproject.toml
File metadata and controls
165 lines (154 loc) · 3.89 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
[build-system]
requires = ["pdm-pep517>=1.0.0", "numpy>=1.23.5"]
build-backend = "pdm.pep517.api"
[project]
name = "cyto-dl"
version = "0.6.2"
description = """\
Collection of representation learning models, techniques, callbacks, utils, \
used to create latent variable models of cell shape, morphology and \
intracellular organization.\
"""
readme = "README.md"
authors = [
{ name = "Benji Morris", email = "benjamin.morris@alleninstitute.org" },
{ name = "Guilherme Pires", email = "guilherme.pires@alleninstitute.org" },
{ name = "Ritvik Vasan", email = "ritvik.vasan@alleninstitute.org" },
]
dependencies = [
"hydra-core~=1.3.0",
"hydra-colorlog>=1.2",
"hydra-optuna-sweeper>=1.2",
"torch~=2.0.0",
"numpy>=1.23",
"matplotlib>=3.7",
"pandas>=1.5",
"fire>=0.5",
"mlflow>=2.1",
"omegaconf>=2.3",
"pyarrow>=10.0",
"pyrootutils>=1.0",
"PyYAML>=6.0",
"scikit-learn>=1.2",
"universal-pathlib>=0.0",
"ome-zarr>=0.6",
"anndata>=0.8",
"monai>=1.4",
"timm>=0.9.7",
"tqdm>=4.64",
"lightning>=2.0",
"einops>=0.6.1",
"edt>=3.0.0",
"astropy>=5.2",
"rich",
"boto3",
"bioio>=1.0.1",
"bioio-base!=1.0.5,!=1.0.6", # These versions have issues resolved by 1.0.7, which only supports Python 3.10+
"bioio-czi",
"bioio-ome-tiff",
"bioio-ome-zarr",
"bioio-tifffile",
"tifffile>=2024.0.0,<2025.2.18",
"online-stats>=2023",
"opencv-python>=4.10.0",
"positional-encodings>=6.0.3",
]
requires-python = ">=3.9,<3.12"
[project.optional-dependencies]
equiv = [
"lie_learn==0.0.1.post1",
"escnn~=1.0.7",
"py3nj>=0.2.1",
"e3nn~=0.5.1"
]
spharm = [
"vtk~=9.2",
"aicscytoparam~=0.1",
"pyshtools==4.10.3",
]
s3 = [
"boto3>=1.23.5,<1.24.5",
"s3fs~=2023.1"
]
torchserve = [
"torchserve>=0.8.0",
"gorilla>=0.4.0",
]
pcloud = [
"pyntcloud>=0.3.1",
"aicsshparam>=0.1.7",
"torch-geometric>=2.3.1",
"point-cloud-utils>=0.29.6",
"geomloss>=0.2.6",
"Ninja>=1.11.1",
"torchio>=0.19.1",
]
all = [
"cyto-dl[equiv,spharm,s3,torchserve,pcloud]",
]
test = [
"cyto-dl",
"pytest~=7.2",
"pytest-cov[toml]~=4.0",
]
docs = [
"cyto-dl",
"furo<=2023.3.23",
"m2r2<=0.3.3.post2",
"sphinx<=6.1.3",
]
[project.urls]
Homepage = "https://github.com/AllenCellModeling/cyto-dl"
[tool.pdm.build]
includes = ["cyto_dl", "README.md", "LICENSE", "**/*.yaml" ]
excludes = ["**/*.pyc", "**/__pycache__"]
[tool.flake8]
ignore = [
"E203",
"E402",
"W291",
"W503",
]
max-line-length = 88
[tool.pytest.ini_options]
addopts = [
"--color=yes",
"--durations=0",
"--strict-markers",
"--doctest-modules",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::UserWarning",
]
log_cli = "True"
markers = [
"slow: slow tests",
]
minversion = "6.0"
testpaths = "tests/"
[tool.coverage.report]
exclude_lines = [
"pragma: nocover",
"raise NotImplementedError",
"raise NotImplementedError()",
"if __name__ == .__main__.:",
]
# https://pypi.org/project/bumpver
[tool.bumpver]
current_version = "0.6.2"
version_pattern = "MAJOR.MINOR.PATCH[.PYTAGNUM]"
commit_message = "Bump version {old_version} -> {new_version}"
commit = true
tag = false # no longer useful to tag here, must happen in create_publish_pr.yaml
push = false
[tool.bumpver.file_patterns]
"pyproject.toml" = ['current_version = "{version}"', 'version = "{version}"']
"version.toml" = ['version = "{version}"']
"cyto_dl/__init__.py" = ['__version__ = "{version}"']
[tool.uv]
# lie_learn 0.0.1.post1 has a build-time dependency on numpy that is not declared in its
# metadata. Therefore, we must disable PEP 517 build isolation to install it.
# This means that uv users who want to use equivariant models must install dependencies
# in two steps: `uv sync`, then `uv sync --extra equiv`.
no-build-isolation-package = ["lie_learn"]