-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathpyproject.toml
More file actions
167 lines (160 loc) · 4.97 KB
/
pyproject.toml
File metadata and controls
167 lines (160 loc) · 4.97 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
[build-system]
build-backend = "setuptools.build_meta"
requires = [ "setuptools>=61" ]
[project]
name = "deeplabcut"
version = "3.0.0rc14"
description = "Markerless pose-estimation of user-defined features with deep learning"
readme = { file = "README.md", content-type = "text/markdown" }
keywords = [
"animal behavior",
"markerless tracking",
"neuroscience",
"pose estimation",
]
license = { text = "LGPL-3.0-or-later" }
requires-python = ">=3.10"
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Image Processing",
]
dependencies = [
"albumentations<=1.4.3",
"dlclibrary>=0.0.7",
"einops",
"filelock>=3.12,<3.16",
"filterpy>=1.4.4",
"h5py>=3.15.1; platform_system=='Darwin'",
"huggingface-hub>=0.23",
"imageio-ffmpeg",
"imgaug>=0.4",
"matplotlib>=3.3,<3.9,!=3.7,!=3.7.1",
"networkx>=2.6",
"numba>=0.54",
"numpy>=1.18.5,<2",
"pandas[hdf5,performance]>=2.2,<3",
"pillow>=7.1",
"pycocotools",
"pydantic>=2,<3",
"pyyaml",
"ruamel-yaml>=0.15",
"scikit-image>=0.17",
"scikit-learn>=1",
"scipy>=1.9",
"statsmodels>=0.11",
"tables>3.8",
"timm",
"torch>=2",
"torchvision",
"tqdm",
]
[[project.authors]]
name = "M-Lab of Adaptive Intelligence"
email = "mackenzie@deeplabcut.org"
[[project.authors]]
name = "Mathis Group for Computational Neuroscience and AI"
email = "alexander@deeplabcut.org"
[project.optional-dependencies]
gui = [
"napari-deeplabcut>=0.2.1.6",
"pyside6; platform_system!='Linux' or platform_machine!='x86_64'",
# Avoid 6.10.0 only on Linux x86_64 (fails for older glib versions)
"pyside6<6.10; platform_system=='Linux' and platform_machine=='x86_64'",
"qdarkstyle==3.1",
]
openvino = [ "openvino-dev==2022.1" ]
docs = [
"jupyter-book==1.0.4.post1",
"numpydoc",
"sphinxcontrib-mermaid",
]
fmpose3d = [ "fmpose3d>=0.0.8" ]
tf = [
"protobuf<7",
# !!! TensorFlow is not supported on Windows with Python >= 3.11
"tensorflow>=2,<=2.10; platform_system=='Windows' and python_version<'3.11'",
"tensorflow>=2,<2.12; platform_system=='Linux' and python_version<'3.11'",
"tensorflow>=2.12; platform_system=='Linux' and python_version>='3.11'",
"tensorflow-io-gcs-filesystem==0.31; platform_system=='Windows' and python_version<'3.11'",
"tensorflow-io-gcs-filesystem>0.31; platform_system!='Windows'",
"tensorflow-macos>=2,<2.12; platform_system=='Darwin' and python_version<'3.11'",
"tensorflow-macos>=2.12; platform_system=='Darwin' and python_version>='3.11'",
"tensorpack>=0.11",
"tf-keras; platform_system!='Windows'",
"tf-slim>=1.1",
]
apple_mchips = [
"tensorflow-macos; platform_system=='Darwin'",
"tensorflow-metal; platform_system=='Darwin'",
"tensorpack>=0.11; platform_system=='Darwin'",
"tf-keras; platform_system=='Darwin'",
"tf-slim>=1.1; platform_system=='Darwin'",
]
modelzoo = [ "huggingface-hub" ]
wandb = [ "wandb" ]
[project.scripts]
dlc = "deeplabcut.__main__:main"
[project.urls]
Homepage = "https://www.deeplabcut.org"
Repository = "https://github.com/DeepLabCut/DeepLabCut"
Documentation = "https://deeplabcut.github.io/DeepLabCut/README.html"
[dependency-groups]
dev = [
"coverage",
"nbformat>5",
"pre-commit",
"pytest",
"pytest-cov",
"ruff",
]
[tool.setuptools]
include-package-data = false
[tool.setuptools.package-data]
"*" = [ "*.yaml", "*.yml", "*.json", "*.qss", "*.png", "*.md", "*.sh" ]
[tool.setuptools.packages.find]
include = [ "deeplabcut*" ]
exclude = [ "tests*", "docs*", "examples*" ]
[[tool.uv.dependency-metadata]]
name = "openvino-dev"
version = "2022.1.0"
requires-dist = []
[tool.uv.pip]
torch-backend = "auto"
[tool.ruff]
target-version = "py310"
line-length = 120
fix = true
[tool.ruff.lint]
select = [ "E", "F", "B", "I", "UP" ]
ignore = [ "E741", "B007" ]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [ "F401", "E402" ]
"deeplabcut/**/__init__.py" = [ "F403" ]
"deeplabcut/gui/window.py" = [ "F403" ]
"deeplabcut/pose_estimation_tensorflow/lib/crossvalutils.py" = [ "F403" ]
"deeplabcut/pose_estimation_tensorflow/lib/inferenceutils.py" = [ "F403" ]
"deeplabcut/pose_estimation_tensorflow/lib/trackingutils.py" = [ "F403" ]
"*.ipynb" = [ "E402" ]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pyproject-fmt]
max_supported_python = "3.12"
generate_python_version_classifiers = true
# Avoid collapsing tables to field.key = value format (less readable)
table_format = "long"
[tool.pytest.ini_options]
markers = [
"require_models: mark test as requiring models to run",
"fmpose3d: tests for fmpose3d integration",
"unittest: fast unit-level tests",
"functional: functional/integration-style tests",
]