Files
mcbladerf/pyproject.toml
T
rsp2k 28446c570d Release an idle device so a forgotten connect can't hold the shared radio
A client that calls bladerf_connect and never disconnects kept the USB
claim until the server exited, blocking every other tool on the shared
bladeRF. A watchdog thread now releases the device after
MCBLADERF_IDLE_TIMEOUT seconds without a tool call (default 600, 0
disables). Middleware counts tool calls in flight, so a release never
lands mid-call, and it also skips while a capture runs. The RX/TX
settings are saved first; the next device call reconnects and restores
them, sample rate included, since the radio resets that to 4 MHz on
open. bladerf_status reports auto_released in between.

Version 2026.11.15.
2026-11-15 09:36:58 -07:00

57 lines
1.3 KiB
TOML

[project]
name = "mcbladerf"
version = "2026.11.15"
description = "MCP server for Nuand BladeRF SDR control via SoapySDR"
authors = [{name = "Ryan Malloy", email = "ryan@supported.systems"}]
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.11"
keywords = ["mcp", "sdr", "bladerf", "soapysdr", "radio"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Communications :: Ham Radio",
"Topic :: Scientific/Engineering",
]
dependencies = [
"fastmcp>=2.0.0",
"numpy>=1.24",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-asyncio>=0.21",
"ruff>=0.1.0",
]
[project.scripts]
mcbladerf = "mcbladerf.server:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/mcbladerf"]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "C4", "SIM"]
ignore = ["E501"] # Line length handled by formatter
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.uv]
# Prefer system Python to match SoapySDR installation
python-preference = "system"