-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
147 lines (128 loc) · 3.5 KB
/
Copy pathpyproject.toml
File metadata and controls
147 lines (128 loc) · 3.5 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
[project]
name = "sciot"
description = "Split computing on IoT"
dynamic = ["version"] # This relies on git tags for versioning
authors = [
{ name = "Fabio Bove", email = "fabio.bove.dr@gmail.com" },
{ name = "Jun Wu Wang", email = "junwuwang@studenti.unimore.it" },
{ name = "Luca Bedogni", email = "luca.bedogni@unimore.it" },
{ name = "Francesco Franco", email = "francesco.franco@unimore.it" },
{ name = "Lorenzo Lamazzi", email = "lorenzo.lamazzi@unimore.it" },
{ name = "Matteo Trinetta", email = "matteo.trinetta@unimore.it" }
]
readme = "README.md"
license = { file = "LICENSE" }
keywords = ["flask-app", "esp32", "split-computing"]
requires-python = ">=3.13"
dependencies = [
# Shared by the server and every Python client profile.
"numpy",
"pyyaml>=6.0.2",
"pillow",
]
[project.scripts]
sciot = "sciot.cli:main"
sciot-server = "sciot.cli:server_main"
sciot-client = "sciot.cli:client_main"
[project.optional-dependencies]
# Edge server runtime. Install with:
# uv sync --extra server --no-dev
server = [
"fastapi>=0.115.7",
"ntplib>=0.4.0",
"paho-mqtt==2.1.0",
"uvicorn",
"websockets",
"google-cloud-firestore>=2.21.0",
"tensorflow",
]
# Static-image HTTP client. Install with:
# uv sync --extra client-static --no-dev
client-static = [
"psutil",
"requests",
"urllib3",
"tensorflow",
]
# Laptop webcam client and its benchmark variant. Install with:
# uv sync --extra client-laptop --no-dev
client-laptop = [
"opencv-python",
"psutil",
"requests",
"urllib3",
"tensorflow",
]
# Raspberry Pi camera client and its benchmark variant. Picamera2 is installed
# from Raspberry Pi OS rather than PyPI because its python-prctl dependency
# prevents cross-platform lockfile generation. Install this profile with:
# uv sync --extra client-raspberry-pi --no-dev
client-raspberry-pi = [
"psutil",
"requests",
"urllib3",
"tensorflow",
"fastapi",
]
# Offline analysis, dashboards, plots, and simulation reporting.
analysis = [
"h5py>=3.12.0",
"matplotlib",
"pandas~=2.2.2",
"plotly",
"scipy~=1.14.0",
"seaborn>=0.13.2",
"snakeviz",
"streamlit",
"streamlit-autorefresh",
"tqdm~=4.66.4",
"ipykernel",
]
# Large dataset/research tooling is intentionally isolated from all runtimes.
research = [
"fiftyone",
]
test = [
"httpx",
"packaging",
"pytest==7.2.1",
"pytest-cov==5.0.0",
"pytest-mock==3.14.0",
"pytest-md==0.2.0"
]
dev = [
"ruff>=0.9.3",
"ipykernel>=7.1.0",
]
[tool.setuptools]
py-modules = []
[project.urls]
Homepage = "https://github.com/UBICO/SCIoT"
Issues = "https://github.com/UBICO/SCIoT/issues"
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
pythonpath = [
"src"
]
testpaths = [
"tests"
]
markers = [
"external_server: tests that require a manually running SCIoT server or broker",
"model_artifact: tests that require full external model artifacts"
]
# Setuptools git versioning configuration
[tool.setuptools-git-versioning]
enabled = true
[tool.uv]
required-environments = [
"sys_platform == 'darwin' and platform_machine == 'arm64'",
"sys_platform == 'linux' and platform_machine == 'x86_64'",
"sys_platform == 'linux' and platform_machine == 'aarch64'",
]
[build-system]
requires = ["setuptools>=61.0", "setuptools-git-versioning>=2.0,<3", "wheel"]
build-backend = "setuptools.build_meta"
[tool.coverage.report]
omit = ["*tests*", "commons.py", "*config.py", "!src/commons.py", "__init__.py"]