Repository navigation
Commit 4b2a7fc
committed
fix: expose the release version in editable imports
Salt parses `git.__version__` when enabling its GitPython provider. Source
imports retain the build placeholder `"git"`, so an editable installation
reports valid distribution metadata but Salt rejects the provider and skips
its real fileserver tests.
Read the checkout's `VERSION` only when the public value is still unstamped.
Built wheels and source distributions continue to use the existing release
stamping; repository discovery and backend selection are unchanged.
The regression failed with `"git"` before this change. All 34 downstream
compatibility regressions pass with both CLI and Gix. Ruff lint/format,
mypy for `git/__init__.py`, and `git diff --check` pass.1 parent 2054235 commit 4b2a7fc
3 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
| |||
0 commit comments