Repository navigation
v5.2.3
Fixes module-less plugin dependency parsing so version specifiers (==, >=), extras, and bracketed expressions in required are preserved intact.
-
Parse plugin
requiredassignments with Python AST instead of string slicing.
Plugin.get_dependencies()previously stripped the first=inside the list literal when reading unimported plugins—turning'pkg==1.2.3'into'pkg=1.2.3'and'pkg>=2.0'into'pkg>2.0'—and failed whenrequiredappeared on line 1 or contained nested brackets. It now parses top-levelrequiredassignments (Assign/AnnAssign) withast+ast.literal_evalwithout importing the plugin module.required: list[str] = ['esptool==4.12.0', 'pyserial>=3.5', 'pkg[extra]==1.0']
-
Harden native CLI static
requiredscanning to match.
meerschaum-cli's fallback source scanner (plugin_files::static_required) now skips docstrings, comments, indented blocks, and similarly prefixed names (required_other), supports line-1 declarations and tuple literals, and refuses to scan past dynamic assignments into later brackets.
Installation
- Python:
pip install meerschaum==5.2.3 - Rust CLI:
cargo install meerschaum --version 5.2.3 --locked(Rust 1.95 or newer) - Standalone binaries: Attached below with
SHA256SUMS. Linux binaries require glibc 2.28 or newer; macOS binaries are unsigned (xattr -d com.apple.quarantine mrsm-5.2.3-...on first run).