Commit 2adb9a9
Route pre-releases to TestPyPI and full releases to PyPI
The single upload job published everything to PyPI, so there was no way to
rehearse an upload without consuming the real version number -- and neither
index lets a version be reused, even after deletion.
Now the GitHub release decides. A release tagged v* publishes to TestPyPI if it
is marked a pre-release and to PyPI if it is not; the two conditions are
mutually exclusive, so nothing lands on both. Tagging v1.10.0rc1 as a
pre-release therefore exercises the whole path -- OIDC, metadata, wheel tags,
upload -- and leaves 1.10.0 untouched. It is also a legitimate pre-release
rather than a wasted number, since 1.10.0rc1 sorts before 1.10.0.
The v-prefix check is unchanged and still applies to both: binaries-* releases
carry prebuilt archives, not a Python package, and must never reach an index.
Verified that v1.10.0rc1 resolves to 1.10.0rc1 under the configured tag_regex.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 963cfb5 commit 2adb9a9
2 files changed
Lines changed: 67 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
121 | 157 | | |
122 | 158 | | |
123 | 159 | | |
124 | 160 | | |
125 | 161 | | |
126 | 162 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | 163 | | |
133 | 164 | | |
134 | 165 | | |
| 166 | + | |
135 | 167 | | |
136 | 168 | | |
137 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
232 | | - | |
| 231 | + | |
233 | 232 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
245 | 250 | | |
246 | | - | |
247 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
248 | 260 | | |
249 | | - | |
250 | | - | |
251 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
252 | 265 | | |
253 | 266 | | |
254 | 267 | | |
| |||
0 commit comments