gabriel / muse public
fix BREAKING task/dynamic-version #1 / 1
AI Agent gabriel · 117 days ago · May 20, 2026 · Diff

fix: read version from pyproject.toml in editable installs

Editable installs stamp the dist-info once at pip install time. Bumping pyproject.toml was never reflected in muse --version without reinstalling. Now _version.py reads pyproject.toml directly when it exists (editable mode); packaged installs fall through to importlib.metadata. The two install paths never interfere.

sha256:3b575b5402ee6446002a6236c9942e650a6d2861646f1e6e08e4e885a5e48e93 sha
+7 ~1 −3 symbols
sha256:154d7bcbaede5d8c3213ea9fed13889fdce035979ee0651fc274fd8e15edb414 snapshot
+7
symbols added
~1
symbol modified
−3
symbols removed
0
dead code introduced
Semantic Changes 11 symbols
~ muse/__init__.py .py 4 symbols added, 2 symbols removed
PackageNotFoundError import import PackageNotFoundError L3–3
version import import version L3–3
+ __version__ variable variable __version__ L22–22
+ _read_version function function _read_version L6–20
+ _pathlib import import _pathlib L3–3
+ _re import import _re L4–4
~ muse/_version.py .py 3 symbols added, 1 symbol removed, 1 symbol modified
version import import version L8–8
+ _read_version function function _read_version L17–27
+ _pathlib import import _pathlib L13–13
+ _re import import _re L14–14
← Older Oldest on task/dynamic-version
All commits
Newer → Latest on task/dynamic-version

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:3b575b5402ee6446002a6236c9942e650a6d2861646f1e6e08e4e885a5e48e93 --body "your comment"