Commit Graph

3 Commits

Author SHA1 Message Date
Dery Ferdika a1e4dabba4 test(python): probe python3/python and skip when unavailable (#59)
python-ast-weave/pyc-weave tests hardcoded execFileSync('python3') which
on Windows resolves to the Microsoft Store stub (fails) even when Python
is installed as 'python'. Add a shared tests/helpers/python-interpreter.ts
probe (python3, fallback python, requires >=3.8) and it.skipIf guards so
the suite skips instead of failing; python3() accessor throws loudly if
misused outside a guarded test.
2026-11-02 20:32:34 +08:00
Timo Zhang 970813a064 fix(python): cover CPython 3.14 pyc magic on Ubuntu 26 runners (#55)
MAGIC_LAYOUT now includes 3.11 early (3450–3495), 3.14 (3600–3627), and
3.15 headroom so weave_decoys remmarshal works on GHA ubuntu-latest 26.
2026-11-02 02:17:18 +08:00
Timo Zhang a426ca4a17 feat(python): remmarshal .pyc customer-def weave_decoys (v1.6.4) (#54)
Extend weave_decoys beyond .py AST into CPython .pyc: decode marshal with
FLAG_REF early-reserve (containers + CODE), copy shared co_consts before
mutate, append unused decoy TYPE_CODE into module and customer defs while
preserving co_code and trailer canaries. Planner maturity python-pyc=woven.
2026-11-02 02:14:21 +08:00