Commit b7ba358
committed
fix: ensure workflows checkout exact tag for clean version detection
- Add ref: ${{ github.ref }} to checkout action to ensure we're on the exact tag
- Add git state verification step to confirm we're on exact tag
- Add setuptools-scm verification to display detected version in logs
This fixes the issue where setuptools-scm was detecting 2.2.2.post1.dev0
instead of clean 2.2.2 because the checkout wasn't at the exact tag commit.
With this fix, wheels will be built with clean version numbers (e.g., 2.2.2)
instead of post-release dev versions (e.g., 2.2.2.post1.dev0).1 parent 6a2755c commit b7ba358
1 file changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
40 | 49 | | |
41 | 50 | | |
42 | 51 | | |
| |||
48 | 57 | | |
49 | 58 | | |
50 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
51 | 63 | | |
52 | 64 | | |
53 | 65 | | |
| |||
104 | 116 | | |
105 | 117 | | |
106 | 118 | | |
| 119 | + | |
107 | 120 | | |
108 | 121 | | |
109 | 122 | | |
| |||
119 | 132 | | |
120 | 133 | | |
121 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
122 | 143 | | |
123 | 144 | | |
124 | 145 | | |
| |||
130 | 151 | | |
131 | 152 | | |
132 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
133 | 157 | | |
134 | 158 | | |
135 | 159 | | |
| |||
0 commit comments