mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2026-02-02 15:45:11 +01:00
add example for part BUILD
This commit is contained in:
parent
1e4cd7cf34
commit
6dbf3fcc4a
1 changed files with 17 additions and 1 deletions
18
README.md
18
README.md
|
|
@ -328,7 +328,7 @@ PEP440 : 2020.41
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### Auto Increment Parts: `BUILD`/`INC0`/`INC1`
|
### Auto Increment Parts: `INC0`/`INC1`/`BUILD`
|
||||||
|
|
||||||
These parts are incremented automatically, and do not use/require a CLI flag: `BUILD`/`INC0`/`INC1`.
|
These parts are incremented automatically, and do not use/require a CLI flag: `BUILD`/`INC0`/`INC1`.
|
||||||
|
|
||||||
|
|
@ -350,6 +350,21 @@ $ bumpver test '2020.10.1' 'YYYY.MM[.INC0]' --date 2020-11-01
|
||||||
New Version: 2020.11
|
New Version: 2020.11
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can the `BUILD` part to [maintain lexical ordering][url_pypi_lexid] of version numbers. This means that the expression `older < newer` will always be true, whether you are dealing with integers or strings, whether you are using software that understands how to parse version numbers or not.
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ bumpver test '2020.1001' 'YYYY.BUILD'
|
||||||
|
New Version: 2020.1002
|
||||||
|
|
||||||
|
$ bumpver test '2020.1002' 'YYYY.BUILD'
|
||||||
|
New Version: 2020.1003
|
||||||
|
|
||||||
|
$ bumpver test '2020.1999' 'YYYY.BUILD'
|
||||||
|
New Version: 2020.22000
|
||||||
|
```
|
||||||
|
|
||||||
|
[url_pypi_lexid]: https://pypi.org/project/lexid/
|
||||||
|
|
||||||
|
|
||||||
### Persistent Parts: `BUILD`/`TAG`/`PYTAG`
|
### Persistent Parts: `BUILD`/`TAG`/`PYTAG`
|
||||||
|
|
||||||
|
|
@ -377,6 +392,7 @@ New Version: v2020.1052
|
||||||
PEP440 : 2020.1052
|
PEP440 : 2020.1052
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### Explicit `--set-version`
|
### Explicit `--set-version`
|
||||||
|
|
||||||
If the various automatic version incrementing methods don't work for you, you can explicitly do `--set-version=<version>`.
|
If the various automatic version incrementing methods don't work for you, you can explicitly do `--set-version=<version>`.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue