-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from florisla/example-semantic
Change format on disk + cosmetics in the MarkDown
- Loading branch information
Showing
18 changed files
with
96 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,4 @@ values = | |
[bumpversion:part:build] | ||
first_value = 1 | ||
|
||
[bumpversion:file:VERSION] | ||
[bumpversion:file:VERSION.txt] |
File renamed without changes.
1 change: 1 addition & 0 deletions
1
docs/examples/semantic-versioning/1.0.0/bump-patch/ARGUMENTS.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.0.1-dev1 |
19 changes: 19 additions & 0 deletions
19
docs/examples/semantic-versioning/1.0.1-dev1/.bumpversion.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[bumpversion] | ||
current_version = 1.0.0 | ||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)([-](?P<release>(dev|rc))+(?P<build>\d+))? | ||
serialize = | ||
{major}.{minor}.{patch}-{release}{build} | ||
{major}.{minor}.{patch} | ||
|
||
[bumpversion:part:release] | ||
first_value = dev | ||
optional_value = ga | ||
values = | ||
dev | ||
rc | ||
ga | ||
|
||
[bumpversion:part:build] | ||
first_value = 1 | ||
|
||
[bumpversion:file:VERSION.txt] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.0.0 |
1 change: 1 addition & 0 deletions
1
docs/examples/semantic-versioning/1.0.1-dev1/bump-build/ARGUMENTS.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build |
1 change: 1 addition & 0 deletions
1
docs/examples/semantic-versioning/1.0.1-dev1/bump-build/VERSION.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.0.1-dev2 |
1 change: 1 addition & 0 deletions
1
docs/examples/semantic-versioning/1.0.1-dev1/bump-release/ARGUMENTS.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
release |
1 change: 1 addition & 0 deletions
1
docs/examples/semantic-versioning/1.0.1-dev1/bump-release/VERSION.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.0.1-rc1 |
19 changes: 19 additions & 0 deletions
19
docs/examples/semantic-versioning/1.0.1-rc1/.bumpversion.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[bumpversion] | ||
current_version = 1.0.0 | ||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)([-](?P<release>(dev|rc))+(?P<build>\d+))? | ||
serialize = | ||
{major}.{minor}.{patch}-{release}{build} | ||
{major}.{minor}.{patch} | ||
|
||
[bumpversion:part:release] | ||
first_value = dev | ||
optional_value = ga | ||
values = | ||
dev | ||
rc | ||
ga | ||
|
||
[bumpversion:part:build] | ||
first_value = 1 | ||
|
||
[bumpversion:file:VERSION.txt] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.0.0 |
1 change: 1 addition & 0 deletions
1
docs/examples/semantic-versioning/1.0.1-rc1/bump-build/ARGUMENTS.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build |
1 change: 1 addition & 0 deletions
1
docs/examples/semantic-versioning/1.0.1-rc1/bump-build/VERSION.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.0.1-rc2 |
1 change: 1 addition & 0 deletions
1
docs/examples/semantic-versioning/1.0.1-rc1/bump-release/ARGUMENTS.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
release |
1 change: 1 addition & 0 deletions
1
docs/examples/semantic-versioning/1.0.1-rc1/bump-release/VERSION.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Semantic versioning example | ||
|
||
bumpversion flow: | ||
|
||
1.0.0 => 1.0.1-dev1 => 1.0.1-dev2 = > 1.0.1-rc1 => 1.0.1-rc2 => 1.0.1 | ||
patch build release build release | ||
|
||
## Details | ||
|
||
Start with an initial release, say `1.0.0`. | ||
|
||
1. Create a new release, starting with a development build. | ||
|
||
$ bumpversion patch | ||
=> 1.0.1-dev1 | ||
|
||
2. Every time you build, bump `build`. | ||
|
||
$ bumpversion build | ||
=> 1.0.1-dev2 | ||
|
||
3. Go to release candidate by bumping `release`. | ||
|
||
$ bumpversion release | ||
=> 1.0.1-rc1 | ||
|
||
4. With every new build, bump `build`. | ||
|
||
$ bumpversion build | ||
=> 1.0.1-rc2 | ||
|
||
4. Finally, bump `release` to generate a final release for the current | ||
`major` / `minor` / `patch` version. | ||
|
||
$ bumpversion release | ||
=> 1.0.1 | ||
|
||
|
||
## Notes | ||
|
||
* Once the final release has been reached, it is not possible to bump | ||
the `release` before bumping `patch` again. Trying to bump the release | ||
while in final release state will issue | ||
`ValueError: The part has already the maximum value among ['dev', 'rc', 'ga'] and cannot be bumped`. | ||
|
This file was deleted.
Oops, something went wrong.