You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the PR is approved and merged, tag the merge commit on `main`.
109
+
Do NOT tag your local release branch: squash-merging rewrites the SHA.
107
110
108
111
```bash
109
-
git commit -am "Release $VERSION"
112
+
git checkout main && git pull
113
+
VERSION="$(uv version --short)"# sanity check: must be the release version
110
114
git tag -a "$VERSION" -m "Release $VERSION"
111
-
git push origin main "$VERSION"
115
+
git push origin "$VERSION"
112
116
```
113
117
114
-
On a tag push, the `distributions` job asserts the tag equals the
118
+
On the tag push, the `distributions` job asserts the tag equals the
115
119
`pyproject.toml` version, builds `rsconnect_python` and `rsconnect`, and
116
120
publishes to [PyPI](https://pypi.org/project/rsconnect-python/#history) and the
117
121
GitHub releases page.
118
122
119
123
### Re-arm development
120
124
121
-
After releasing, re-arm development on `main` by adding an
122
-
`Unreleased` section to the CHANGELOG.md
125
+
After releasing, re-arm development on `main` with a second PR that adds
126
+
back the `Unreleased` section to CHANGELOG.md and moves to a development
127
+
version
123
128
124
129
```bash
130
+
VERSION="$(uv version --bump patch --bump dev --dry-run --short)"# e.g. 1.29.1 -> 1.29.2.dev1
131
+
git checkout -b "rearm-$VERSION" main
125
132
sed -i '0,/^## \[/s//## Unreleased\n\n&/' docs/CHANGELOG.md
126
-
```
127
-
128
-
and then moving back to a development version
129
-
130
-
```bash
131
-
uv version --bump patch --bump dev # e.g. 1.29.1 -> 1.29.2.dev1
132
-
VERSION="$(uv version --short)"
133
+
uv version "$VERSION"
133
134
git commit -am "Begin $VERSION development"
134
-
git push origin main
135
+
git push -u origin "rearm-$VERSION"
136
+
gh pr create --title "Begin $VERSION development" --body "Re-arm development after release"
135
137
```
136
138
137
139
> **NOTE**: Pre-release versions must comply with [PEP 440](https://www.python.org/dev/peps/pep-0440/) so PyPI marks them as pre-releases. `uv version`'s `dev`/`alpha`/`beta`/`rc` bumps produce compliant strings.
0 commit comments