Skip to content

Commit

Permalink
Tweak instructions for updating version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewphilipsmith committed Jul 1, 2022
1 parent 445c6e6 commit 9cba63d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/deploy-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: Publish Tagged Python 🐍 distributions 📦 to PyPI

on:
push:
branches:
- main
tags:
- v*

Expand Down
10 changes: 10 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,13 @@ git push --tags
```

GitHub Actions will detect the tagged commit and publish the package to PyPI accordingly.

Immediately afterwards, increase the version number of the package within the code.

```bash
poetry version patch
git commit -m "Bump version number"
git push
```

This will ensure that development builds, from non-tagged commits, will be published to [TestPyPI](https://test.pypi.org/) as an `alpha` release of the next version. For example, if the latest version on PyPI is `v1.2.3`, the next development build on TestPyPI will be `v1.2.4-alphaX` (sequentially after the latest version).

0 comments on commit 9cba63d

Please sign in to comment.