-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
154 lines (135 loc) · 6.19 KB
/
pyproject.toml
File metadata and controls
154 lines (135 loc) · 6.19 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
148
149
150
151
152
153
154
[build-system]
requires = ["setuptools>=80"]
build-backend = "setuptools.build_meta"
[project]
name = "arena-interface"
dynamic = ["version"]
description = "Python interface and CLI for the Reiser Lab ArenaController."
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.11"
license = "BSD-3-Clause"
license-files = ["LICENSE"]
authors = [{ name = "Peter Polidoro", email = "peter@polidoro.io" }]
keywords = ["arena", "arenacontroller", "cli", "ethernet", "serial"]
classifiers = [
"Environment :: Console",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering",
"Typing :: Typed",
]
dependencies = [
"click>=8.1",
"pyserial>=3.5",
]
[project.optional-dependencies]
dev = [
"build>=1.2",
"pytest>=8.0",
"ruff>=0.11",
"twine>=5.1",
]
[project.urls]
Homepage = "https://github.com/janelia-python/arena_interface_python"
Repository = "https://github.com/janelia-python/arena_interface_python"
Issues = "https://github.com/janelia-python/arena_interface_python/issues"
Changelog = "https://github.com/janelia-python/arena_interface_python/blob/main/CHANGELOG.md"
Firmware = "https://github.com/janelia-arduino/ArenaController"
[project.scripts]
arena-interface = "arena_interface.cli:cli"
arena-interface-perf-summary = "arena_interface.perf_summary_cli:main"
[tool.setuptools]
package-dir = { "" = "src" }
include-package-data = false
[tool.setuptools.dynamic]
version = { attr = "arena_interface.__about__.__version__" }
[tool.setuptools.package-data]
arena_interface = ["py.typed"]
[tool.setuptools.packages.find]
where = ["src"]
include = ["arena_interface*"]
namespaces = false
[tool.pytest.ini_options]
addopts = "-q"
testpaths = ["tests"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP"]
[tool.pixi.workspace]
name = "arena-interface-python"
version = "7.0.1"
description = "Python interface and benchmark tooling for ArenaController."
authors = ["Peter Polidoro <peter@polidoro.io>"]
channels = ["conda-forge"]
platforms = ["linux-64", "osx-64", "osx-arm64", "win-64"]
[tool.pixi.dependencies]
git = "*"
pyserial = ">=3.5,<4"
click = ">=8.3.1,<9"
schedule = ">=1.2.2,<2"
[tool.pixi.pypi-dependencies]
"arena-interface" = { path = ".", editable = true }
[tool.pixi.environments]
default = { features = ["dev"], solve-group = "default" }
[tool.pixi.tasks]
python = "python"
help = "arena-interface --help"
version-show = "python scripts/bump_version.py --current"
version-bump = "python scripts/bump_version.py"
all-off = "arena-interface all-off"
all-on = "arena-interface all-on"
format = "ruff format ."
lint = "ruff check ."
test = "pytest"
check = [{ task = "lint" }, { task = "test" }]
build = "python -m build"
check-dist = "python -m twine check dist/*"
release-check = [{ task = "check" }, { task = "build" }, { task = "check-dist" }]
archive = "git archive --format=zip --output=../arena_interface_python.zip HEAD"
qtools-install = "python tools/quantum_leaps_tools.py qtools-install"
qspy = "python tools/quantum_leaps_tools.py qspy"
bench = "arena-interface bench"
bench-full = "arena-interface bench --stream-path patterns/pat0004.pat"
bench-max-rate = "arena-interface bench --stream-path patterns/pat0004.pat --stream-max-rate"
bench-max-rate-smoke = "arena-interface bench --cmd-iters 250 --spf-seconds 2 --stream-path patterns/pat0004.pat --stream-seconds 2 --stream-max-rate --stream-max-rate-seconds 2"
bench-smoke = "arena-interface bench --cmd-iters 250 --spf-seconds 2 --stream-path patterns/pat0004.pat --stream-seconds 2"
bench-persistent = "arena-interface bench --cmd-connect-mode persistent"
bench-new-connection = "arena-interface bench --cmd-connect-mode new_connection"
bench-no-quickack = "arena-interface --no-tcp-quickack bench"
bench-windows-like = "arena-interface --no-tcp-quickack bench"
bench-full-windows-like = "arena-interface --no-tcp-quickack bench --stream-path patterns/pat0004.pat"
bench-no-nodelay = "arena-interface --no-tcp-nodelay bench"
bench-full-no-nodelay = "arena-interface --no-tcp-nodelay bench --stream-path patterns/pat0004.pat"
bench-no-latency-tuning = "arena-interface --no-tcp-nodelay --no-tcp-quickack bench"
bench-full-no-latency-tuning = "arena-interface --no-tcp-nodelay --no-tcp-quickack bench --stream-path patterns/pat0004.pat"
bench-frame-default = "arena-interface bench --stream-path patterns/pat0004.pat --label linux-default --json-out bench_artifacts/frame_rate_results.jsonl"
bench-frame-windows-like = "arena-interface --no-tcp-quickack bench --stream-path patterns/pat0004.pat --label windows-like --json-out bench_artifacts/frame_rate_results.jsonl"
bench-frame-no-nodelay = "arena-interface --no-tcp-nodelay bench --stream-path patterns/pat0004.pat --label no-nodelay --json-out bench_artifacts/frame_rate_results.jsonl"
bench-frame-no-latency-tuning = "arena-interface --no-tcp-nodelay --no-tcp-quickack bench --stream-path patterns/pat0004.pat --label no-latency-tuning --json-out bench_artifacts/frame_rate_results.jsonl"
bench-frame-rate-compare = [
{ task = "bench-frame-default" },
{ task = "bench-frame-windows-like" },
{ task = "bench-frame-no-nodelay" },
{ task = "bench-frame-no-latency-tuning" },
]
bench-socket-matrix = "python scripts/bench_matrix.py"
bench-frame-rate-matrix = "python scripts/bench_matrix.py --stream-path patterns/pat0004.pat --json-out bench_artifacts/frame_rate_matrix.jsonl"
perf-summary = "arena-interface-perf-summary"
perf-summary-frame-rate = "arena-interface-perf-summary --jsonl bench_artifacts/frame_rate_results.jsonl --baseline linux-default --json-out bench_artifacts/frame_rate_summary.json"
perf-summary-frame-rate-matrix = "arena-interface-perf-summary --jsonl bench_artifacts/frame_rate_matrix.jsonl --baseline default --json-out bench_artifacts/frame_rate_matrix_summary.json"
[tool.pixi.target.linux-64.dependencies]
make = "*"
c-compiler = "*"
[tool.pixi.target.osx-64.dependencies]
make = "*"
c-compiler = "*"
[tool.pixi.target.osx-arm64.dependencies]
make = "*"
c-compiler = "*"