Commit 6b7615d3 by Ilia Kurenkov

Add link to SemVer and examples for bump rules

parent 621f698a
...@@ -415,9 +415,23 @@ This command shows the current version of the project or bumps the version of ...@@ -415,9 +415,23 @@ This command shows the current version of the project or bumps the version of
the project and writes the new version back to `pyproject.toml` if a valid the project and writes the new version back to `pyproject.toml` if a valid
bump rule is provided. bump rule is provided.
The new version should ideally be a valid semver string or a valid bump rule: The new version should ideally be a valid [semver](https://semver.org/) string or a valid bump rule:
`patch`, `minor`, `major`, `prepatch`, `preminor`, `premajor`, `prerelease`. `patch`, `minor`, `major`, `prepatch`, `preminor`, `premajor`, `prerelease`.
The table below illustrates the effect of these rules with concrete examples.
| rule | before | after |
|------------|---------------|---------------|
| major | 1.3.0 | 2.0.0 |
| minor | 2.1.4 | 2.2.0 |
| patch | 4.1.1 | 4.1.2 |
| premajor | 1.0.2 | 2.0.0-alpha.0 |
| preminor | 1.0.2 | 1.1.0-alpha.0 |
| prepatch | 1.0.2 | 1.0.3-alpha.0 |
| prerelease | 1.0.2 | 1.0.3-alpha.0 |
| prerelease | 1.0.3-alpha.0 | 1.0.3-alpha.1 |
| prerelease | 1.0.3-beta.0 | 1.0.3-beta.1 |
## export ## export
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment