Wire up LTspice as a second simulation engine using mcltspice (Wine-based LTspice runner). The backend architecture already had the ABC + factory pattern; this connects the ltspice branch. - Extract shared raw_to_waveform() into raw_convert.py with Protocol typing so both ngspice and mcltspice RawFile objects work without coupling - Add LtspiceEngine with deferred mcltspice import for graceful degradation - Register "ltspice" in get_engine() with availability check (mcltspice + Wine + LTspice.exe must all be present) - Add startup validation log for LTspice availability - Add mcltspice as optional dependency: pip install spicebook[ltspice] - Integration tests auto-skip when LTspice is unavailable (Docker/CI)
48 lines
949 B
TOML
48 lines
949 B
TOML
[project]
|
|
name = "spicebook"
|
|
version = "2026.02.13"
|
|
description = "Notebook interface for SPICE circuit simulation"
|
|
requires-python = ">=3.12"
|
|
authors = [{name = "Ryan Malloy", email = "ryan@supported.systems"}]
|
|
|
|
dependencies = [
|
|
"fastapi>=0.115.0",
|
|
"uvicorn[standard]>=0.30.0",
|
|
"pydantic>=2.0",
|
|
"numpy>=1.24.0",
|
|
"websockets>=12.0",
|
|
"schemdraw>=0.19",
|
|
"fastmcp>=3.0.0",
|
|
"httpx>=0.28.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
ltspice = ["mcltspice>=2026.02.14"]
|
|
dev = [
|
|
"pytest>=8.0",
|
|
"pytest-asyncio>=0.23",
|
|
"httpx>=0.27",
|
|
"ruff>=0.8",
|
|
]
|
|
|
|
[project.scripts]
|
|
spicebook = "spicebook.main:main"
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/spicebook"]
|
|
|
|
[tool.ruff]
|
|
target-version = "py312"
|
|
line-length = 100
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "W"]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|