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
To do a release and publish a new version to [PyPI](https://pypi.org/project/tableauserverclient/),
220
+
follow these steps:
221
+
222
+
1. Do a `development` to `master` branch merge. This should be a regular merge
223
+
(not a squash) to ensure all individual commits are visible.
224
+
225
+
1. (Optional) Do a test publish to PyPI without creating the next version tag.
226
+
This will create a pre-release package with a version like `0.30.post0.dev`.
227
+
228
+
1. On a local clone of the repo, create and push the tag for the *next* version
229
+
(in this example it's "v0.31"):
230
+
231
+
```shell
232
+
git fetch
233
+
git fetch --tags
234
+
git checkout master
235
+
git pull
236
+
git log # confirm most recent commit on master is the new release commit
237
+
git tag -a v0.31 -m 'Release v0.31'
238
+
git push origin tag v0.31
239
+
```
240
+
241
+
1. Publish the updated release to PyPI by running the [Publish](https://github.com/tableau/server-client-python/actions/workflows/publish-pypi.yml)
242
+
job and choosing the `master` branch.
243
+
244
+
1. The job should just take a few minutes to complete, then check the updated
245
+
package exists on [PyPI](https://pypi.org/project/tableauserverclient/).
246
+
247
+
1. Create a release in GitHub with the title like "v0.31" and release notes
248
+
with changes from the last release. You can try the automatic generation
249
+
of notes, or just create a list of merged PR titles with reference PR numbers.
0 commit comments