-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathpyproject.toml
More file actions
151 lines (137 loc) · 3.98 KB
/
pyproject.toml
File metadata and controls
151 lines (137 loc) · 3.98 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
[build-system]
requires = ["setuptools>=68.0"]
build-backend = "setuptools.build_meta"
[project]
name = "deeplabcut-live-gui"
dynamic = ["version"]
description = "PySide6-based GUI to run real time DeepLabCut experiments"
readme = "README.md"
requires-python = ">=3.10"
license-files = ["LICENSE"]
authors = [
{name = "A. & M. Mathis Labs", email = "adim@deeplabcut.org"}
]
keywords = ["deeplabcut", "pose estimation", "real-time", "gui", "deep learning"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Framework :: Qt",
"Environment :: X11 Applications :: Qt",
]
dependencies = [
# "deeplabcut-live>=2.0.0", # might be missing timm and scipy
"PySide6",
"qdarkstyle",
"numpy",
"opencv-python",
"cv2-enumerate-cameras",
"pydantic>=2.0",
"vidgear[core]",
"matplotlib",
]
[project.optional-dependencies]
basler = ["pypylon"]
gentl = ["harvesters"]
all = ["pypylon", "harvesters"]
live-latest = [
"deeplabcut-live@git+https://github.com/DeepLabCut/DeepLabCut-live.git@main#egg=deeplabcut-live",
]
live-latest-pytorch = [
# this includes timm and scipy
"deeplabcut-live@git+https://github.com/DeepLabCut/DeepLabCut-live.git@main#egg=deeplabcut-live[pytorch]",
]
# TODO @C-Achard uncomment when 2.0 is released on PyPI, and remove live-latest*
# pytorch = [
# "deeplabcut-live[pytorch]>=2.0.0", # this includes timm and scipy
# ]
# tf = [
# "deeplabcut-live[tf]>=2.0.0",
# ]
live-latest-tf = [
"deeplabcut-live@git+https://github.com/DeepLabCut/DeepLabCut-live.git@main#egg=deeplabcut-live[tf]",
]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"pytest-mock>=3.10",
"pytest-qt>=4.2",
"pre-commit",
"hypothesis>=6.0",
]
test = [
"pytest>=7.0",
"pytest-cov>=4.0",
"pytest-mock>=3.10",
"pytest-qt>=4.2",
"hypothesis>=6.0",
]
[project.urls]
Homepage = "https://github.com/DeepLabCut/DeepLabCut-live-GUI"
Repository = "https://github.com/DeepLabCut/DeepLabCut-live-GUI"
Documentation = "https://github.com/DeepLabCut/DeepLabCut-live-GUI"
"Bug Tracker" = "https://github.com/DeepLabCut/DeepLabCut-live-GUI/issues"
[project.scripts]
dlclivegui = "dlclivegui:main"
# [tool.setuptools]
# include-package-data = true
# This is more granular and explicit than include-package-data,
# which can be too broad and include unwanted files.
[tool.setuptools.package-data]
"dlclivegui.assets" = ["*.png"]
[tool.setuptools.packages.find]
where = ["."]
include = ["dlclivegui*"]
exclude = ["tests*", "docs*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--strict-config",
"--disable-warnings",
# "--maxfail=1",
"-ra",
"-q",
]
markers = [
"unit: Unit tests for individual components",
"integration: Integration tests for component interaction",
"functional: Functional tests for end-to-end workflows",
"hardware: Tests that require specific hardware, notable camera backends",
# "slow: Tests that take a long time to run",
"gui: Tests that require GUI interaction",
]
[tool.coverage.run]
source = ["dlclivegui"]
omit = [
"*/tests/*",
"*/__pycache__/*",
"*/site-packages/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstract",
]
[tool.ruff]
lint.select = ["E", "F", "B", "I", "UP"]
lint.ignore = ["E741"]
target-version = "py310"
fix = true
line-length = 120
[tool.ruff.lint.pydocstyle]
convention = "google"