Commit f67c9cf
### What changes were proposed in this pull request?
Remove the `testpypi` environment from the `publish.yml` workflow and
replace it with native PyPI pre-release versioning. The workflow now
accepts an optional `version` input: if it ends with `.devN` or `.rcN`,
the version is patched via `uv version` before building and publishing
to PyPI; otherwise the version in `pyproject.toml` is used directly for
a production release.
### Why are the changes needed?
- TestPyPI requires a separate trusted publisher configuration and has
storage limits that need manual cleanup
- Pre-release packages on PyPI (`.dev`, `.rc`) are already hidden from
default installs (`pip install` won't pick them up without `--pre`),
making TestPyPI unnecessary
- Reduces workflow complexity: one target registry, one publish command
### Does this PR introduce _any_ user-facing change?
- The `environment` input (testpypi / pypi) is removed from the `Publish
to PyPI` workflow dispatch
- A pre-release can now be published by providing a version like
`0.1.0.dev1` or `0.1.0.rc1` in the `version` input
### How was this patch tested?
Workflow logic change only — no code changes. Validated by reviewing the
updated YAML and confirming the bash version check regex (`\.devN` /
`.rcN`) matches expected inputs.
Fix: #27
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a36c0f1 commit f67c9cf
1 file changed
+11
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | 24 | | |
33 | 25 | | |
34 | 26 | | |
| |||
38 | 30 | | |
39 | 31 | | |
40 | 32 | | |
41 | | - | |
42 | | - | |
| 33 | + | |
| 34 | + | |
43 | 35 | | |
44 | 36 | | |
45 | 37 | | |
| |||
57 | 49 | | |
58 | 50 | | |
59 | 51 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
64 | 56 | | |
65 | 57 | | |
66 | | - | |
67 | | - | |
| 58 | + | |
| 59 | + | |
68 | 60 | | |
69 | 61 | | |
70 | | - | |
| 62 | + | |
71 | 63 | | |
72 | 64 | | |
73 | 65 | | |
| |||
77 | 69 | | |
78 | 70 | | |
79 | 71 | | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 72 | + | |
0 commit comments