发布

  • fix: Make ladybug dependency unconditional

    frostbyte_neo 发布于 2026-08-14 14:57:36 +00:00

    The macOS-gating marker (platform_release >= '24.') cannot be
    expressed correctly across installer generations: packaging <= 24.x
    needs the invalid '24.' literal (string fallback) but crashes on valid
    literals against Linux kernel strings, while packaging >= 25 (vendored
    in current pip) dropped the string-ordering fallback, evaluated the
    marker False on macOS, and silently skipped ladybug — pip-installed
    cognee then failed at import with ModuleNotFoundError.

    Drop the marker entirely. Cost: macOS <= 14 now fails ladybug's sdist
    build loudly at install time instead of being skipped cleanly; the
    documented escape hatch is pre-installing ladybug==0.17.1 (macosx_13_0
    wheels satisfy the unchanged range). A guard test pins the requirement
    markerless so the trick cannot quietly return.

    Verified by from-scratch dry-run resolution of the built wheel: pip
    26.2.1 (packaging 26.2) and pip 25.1 (packaging 25.0) both select
    ladybug==0.18.2; uv lock regenerates cleanly.

    Also bump the dev version marker to 1.5.0.dev2.

    下载附件