Skip to content

v5.2.3

Latest

Choose a tag to compare

@bmeares bmeares released this 02 Dec 02:46
v5.2.3
0ccbc43

v5.2.3

Fixes module-less plugin dependency parsing so version specifiers (==, >=), extras, and bracketed expressions in required are preserved intact.

  • Parse plugin required assignments 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 when required appeared on line 1 or contained nested brackets. It now parses top-level required assignments (Assign / AnnAssign) with ast + ast.literal_eval without importing the plugin module.

    required: list[str] = ['esptool==4.12.0', 'pyserial>=3.5', 'pkg[extra]==1.0']
  • Harden native CLI static required scanning 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).