Repository navigation
Commit e39d52a
fix: derive __version__ from package metadata so it cannot drift
The published wheel reported a version older than itself: oneclaw 0.59.8 said
__version__ == "0.59.6", langchain-1claw 0.2.3 said "0.2.2", and
1claw-crewai-tools 0.3.3 said "0.3.0". Two hand-maintained copies of the same
number, and releases bumped one of them.
__version__ now reads the installed distribution metadata, so pyproject.toml is
the only place a version is written. A test asserts the two agree, and fails if
a literal is ever put back.
Caught by installing the freshly published wheel from PyPI and importing it —
which is worth doing after a release rather than trusting that a green publish
job means the artifact is right.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019d5ks2kCa4eXD1ftdkECPu1 parent ef61fff commit e39d52a
2 files changed
Lines changed: 38 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
23 | 31 | | |
24 | 32 | | |
25 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments