-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (78 loc) · 2.04 KB
/
pyproject.toml
File metadata and controls
92 lines (78 loc) · 2.04 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
[build-system]
requires = ["setuptools>=82.0.1", "wheel>=0.46.3"]
build-backend = "setuptools.build_meta"
[project]
name = "printguard"
version = "0.3.4"
description = "Headless MJPEG to MQTT print monitoring service"
authors = [
{ name = "Oliver Bravery", email = "dev@oliverbravery.uk" }
]
readme = "README.md"
requires-python = ">=3.12"
license = "GPL-2.0-only"
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Home Automation",
"Topic :: Internet :: WWW/HTTP",
]
dependencies = [
"numpy>=2.4,<3",
"opencv-python-headless>=4.13,<5",
"onnxruntime>=1.24,<2",
"pillow>=12.1,<13",
"paho-mqtt>=2.1,<3",
]
[project.urls]
Homepage = "https://github.com/Meightem/PrintGuard"
Repository = "https://github.com/Meightem/PrintGuard"
Issues = "https://github.com/Meightem/PrintGuard/issues"
[project.optional-dependencies]
dev = [
"build>=1.4,<2",
"mypy>=1.19,<2",
"pip-tools>=7.5,<8",
"pytest>=9.0,<10",
"pytest-cov>=7.1,<8",
"ruff>=0.15,<1",
]
model-build = [
"huggingface_hub>=1.7,<2",
]
[project.scripts]
printguard = "printguard.main:run"
printguard-healthcheck = "printguard.health:run_healthcheck"
[tool.pytest.ini_options]
addopts = "-ra"
testpaths = ["tests"]
[tool.black]
line-length = 88
[tool.ruff]
target-version = "py312"
line-length = 88
[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP"]
[tool.mypy]
python_version = "3.12"
files = ["printguard", "tests"]
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = ["cv2", "onnxruntime", "paho.mqtt.client"]
ignore_missing_imports = true
[tool.coverage.run]
branch = true
source = ["printguard"]
[tool.coverage.report]
show_missing = true
skip_covered = false
[tool.setuptools.packages.find]
include = ["printguard", "printguard.*"]