-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
128 lines (111 loc) · 3.29 KB
/
pyproject.toml
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
[project]
name = "wigglecam"
description = "Wigglecam package help you building an awesome camera."
authors = [{ name = "Michael G", email = "[email protected]" }]
maintainers = [{ name = "Michael G", email = "[email protected]" }]
requires-python = ">=3.10,<3.14"
dynamic = ["version"]
readme = "README.md"
license = { text = "MIT" }
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Multimedia :: Graphics",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Multimedia :: Graphics :: Capture :: Digital Camera",
]
keywords = [
"wigglecam",
"wigglecamera",
"stereoscopic",
"picamera2",
"picamera",
"camera",
"python",
"synchronized camera",
]
dependencies = [
"pydantic",
"pydantic-settings",
"gpiozero",
"pillow>=10.0.0",
"requests",
"fastapi",
"uvicorn",
"gpiod>=2.2.1; platform_system == 'Linux'",
"pyturbojpeg>=1.7.0",
# "opencv-python",
"opencv-contrib-python",
# "opencv-contrib-python-headless",
"matplotlib>=3.9.3",
]
[project.optional-dependencies]
gui = [
"pyside6>=6.8.0.2",
]
[project.urls]
homepage = "https://photobooth-app.org/wigglegramcamera/"
repository = "https://github.com/photobooth-app/wigglecam"
documentation = "https://photobooth-app.org/wigglegramcamera/"
[project.scripts]
wigglecam-mobile = "examples.lowlevel.gpio:main"
wigglecam-gui = "examples.gui.camera:main"
wigglecam-virtual = "examples.lowlevel.multiserver:main"
wigglecam-node = "wigglecam.__main__:main"
[tool.pdm]
version = { source = "file", path = "wigglecam/__version__.py" }
[tool.pdm.dev-dependencies]
test = [
"pytest",
"pytest-benchmark",
"pytest-cov",
"coverage[toml]",
"numpy",
"simplejpeg", # might be installed globally already on Pi but in older version incompatible to numpy2. used internally by picamera2
]
lint = [
"ruff"
]
[tool.pdm.scripts]
test = "pytest --basetemp=./tests_tmp/ -v ./tests/tests --cov-report=term --cov-report=xml:coverage.xml --cov"
benchmark = "pytest --basetemp=./tests_tmp/ -v ./tests/benchmarks"
[tool.ruff]
line-length = 150
extend-exclude = ["vendor"]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"W", # pycodestyle
"F", # pyflakes
"B", # bugbear
"UP", # pyupgrade
"I", # isort
#"D", # pydocstyle # add later
]
ignore = [
"B008", #used for DI injection
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pytest.ini_options]
testpaths = ["tests"]
log_cli = true
log_cli_level = "DEBUG"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
[tool.coverage.run]
# disable couldnt-parse: https://github.com/nedbat/coveragepy/issues/1392
disable_warnings = ["couldnt-parse"]
omit = ["test_*.py", "./tests/*"]
parallel = true
concurrency = ["thread", "multiprocessing"]
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm.build]
includes = ["./wigglecam","./examples"]