-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathpyproject.toml
More file actions
145 lines (139 loc) · 3.82 KB
/
pyproject.toml
File metadata and controls
145 lines (139 loc) · 3.82 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
[build-system]
build-backend = "setuptools.build_meta"
requires = [ "setuptools>=68" ]
[project]
name = "deeplabcut-live-gui"
version = "2.0.0rc1"
description = "PySide6-based GUI to run real time pose estimation experiments with DeepLabCut"
readme = "README.md"
keywords = [ "deep learning", "deeplabcut", "gui", "pose estimation", "real-time" ]
license-files = [ "LICENSE" ]
requires-python = ">=3.10" # don' forget to update tool.pyproject-fmt if this changes
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: X11 Applications :: Qt",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"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 :: Artificial Intelligence",
]
dependencies = [
"cv2-enumerate-cameras",
"deeplabcut-live==1.1",
"matplotlib",
"numpy",
"opencv-python",
"pydantic>=2",
"pyside6",
"qdarkstyle",
"vidgear[core]",
]
[[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]
all = [ "harvesters", "pypylon" ]
basler = [ "pypylon" ]
dev = [
"hypothesis>=6",
"pre-commit",
"pytest>=7",
"pytest-cov>=4",
"pytest-mock>=3.10",
"pytest-qt>=4.2",
]
gentl = [ "harvesters" ]
pytorch = [
"deeplabcut-live[pytorch]==1.1", # includes timm and scipy
]
test = [
"hypothesis>=6",
"pytest>=7",
"pytest-cov>=4",
"pytest-mock>=3.10",
"pytest-qt>=4.2",
"tox",
"tox-gh-actions",
]
tf = [
"deeplabcut-live[tf]==1.1",
]
[project.scripts]
dlclivegui = "dlclivegui:main"
[project.urls]
"Bug Tracker" = "https://github.com/DeepLabCut/DeepLabCut-live-GUI/issues"
Documentation = "https://github.com/DeepLabCut/DeepLabCut-live-GUI" # FIXME @C-Achard replace once docs are up
Homepage = "https://github.com/DeepLabCut/DeepLabCut-live-GUI"
Repository = "https://github.com/DeepLabCut/DeepLabCut-live-GUI"
# [tool.setuptools]
# include-package-data = true
[tool.setuptools.package-data]
"dlclivegui.assets" = [ "*.png" ]
[tool.setuptools.packages]
find.where = [ "." ]
find.include = [ "dlclivegui*" ]
find.exclude = [ "tests*", "docs*" ]
[tool.ruff]
target-version = "py310"
line-length = 120
fix = true
[tool.ruff.lint]
select = [ "B", "E", "F", "I", "UP" ]
ignore = [ "E741" ]
[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]
[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",
"timeout: Test timeout in seconds (pytest-timeout)",
]
[tool.coverage]
[tool.coverage.report]
exclude_lines = [
"@abstract",
"def __repr__",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
]
omit = [
"tests/*",
]
[tool.coverage.run]
branch = true
omit = [
"*/__pycache__/*",
# "*/site-packages/*",
# breaks CI coverage reporting as it excludes our own installed package
]
source = [ "dlclivegui", "tests" ]