/
pyproject.toml
81 lines (71 loc) · 1.95 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
[project]
name = "yaroc"
version = "0.1.11"
authors = [
{name = "Lukáš Poláček", email = "lukas@polacek.email" }
]
description = "Yet Another ROC"
keywords = ["orienteering", "online control"]
requires-python = ">=3.11"
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
'aiohttp-retry==2.8.3',
'aiohttp==3.9.*',
'aiomqtt==2.1.*',
'dbus-next==0.2.*; platform_system == "Linux"',
'dependency-injector-fork==4.42.*',
'gpiozero==1.6.*',
'pillow==10.3.*',
'protobuf==4.25.*',
'psutil==5.9.*',
'pyserial-asyncio==0.6',
'RPi.GPIO==0.7.1; platform_machine == "armv7l" or platform_machine == "aarch64"',
'usb-monitor==1.*',
'waveshare-epaper==1.2.0; platform_machine == "armv7l" or platform_machine == "aarch64"',
]
[project.optional-dependencies] # Optional
dev = [
"ruff",
"mypy",
"pytest",
"types-Pillow",
"types-protobuf",
"types-psutil",
]
lsp = [
"ruff-lsp",
"pylsp-mypy",
]
[project.scripts]
mqtt-forwarder = "yaroc.scripts.mqtt_forwarder:main"
send-punch = "yaroc.scripts.send_punch:main"
[build-system]
requires = ["maturin>=1.3,<2.0"]
build-backend = "maturin"
[tool.maturin]
python-source = "python"
module-name = "yaroc.rs"
features = ["pyo3/extension-module"]
[tool.ruff]
line-length = 100
exclude = ["*_pb2.py", "*_pb2.pyi"]
[tool.ruff.format]
skip-magic-trailing-comma = false
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I"]
fixable = ["ALL"]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[[tool.mypy.overrides]]
module = "epaper.*,gpiozero.*,RPi.*,serial.*,serial_asyncio.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "usbmonitor.*,pyudev.*"
ignore_missing_imports = true