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
- Fixed typos and errors in the documentation [#59](https://github.com/Nagidal/hatch-semver/issues/59)
11
+
- Set correct project homepage in `pyproject.toml`. It should be now linked from [PyPI](https://pypi.org/project/hatch-semver/). [#64](https://github.com/Nagidal/hatch-semver/issues/64)
12
+
13
+
14
+
### Development Details
15
+
16
+
- Set current date in `__about__.py`[#61](https://github.com/Nagidal/hatch-semver/issues/61)
17
+
- Wrote a test for current date in `__about__.py`[#62](https://github.com/Nagidal/hatch-semver/issues/62)
18
+
- Wrote a test for current version in the changelog [#63](https://github.com/Nagidal/hatch-semver/issues/63)
- Fixed typos and errors in the documentation [#59](https://github.com/Nagidal/hatch-semver/issues/59)
11
+
- Set correct project homepage in `pyproject.toml`. It should be now linked from [PyPI](https://pypi.org/project/hatch-semver/). [#64](https://github.com/Nagidal/hatch-semver/issues/64)
12
+
13
+
14
+
### Development Details
15
+
16
+
- Set current date in `__about__.py`[#61](https://github.com/Nagidal/hatch-semver/issues/61)
17
+
- Wrote a test for current date in `__about__.py`[#62](https://github.com/Nagidal/hatch-semver/issues/62)
18
+
- Wrote a test for current version in the changelog [#63](https://github.com/Nagidal/hatch-semver/issues/63)
@@ -177,7 +177,7 @@ Similar to the [alpha and beta][ab-short] shortcuts, `dev` is not an alias, so d
177
177
178
178
Similar to [python-semver's][python-semver] inability to bump alphanumeric pre-release identifiers, alphanumeric build identifiers will also not be bumped.
179
179
The returned result is the exact same version.
180
-
A ValidationError is not raised because when bumping or changing build identifiers equal precedece of the old and new version is sufficient.
180
+
A ValidationError is not raised because when bumping or changing build identifiers, equal precedece of the old and new version is sufficient.
181
181
182
182
| Old Version | Command | validate-bump | New Version |
@@ -189,7 +189,7 @@ You can chain commands together by comma like this: `<command1>,<command2>,<comm
189
189
They are executed one by one in the specified sequence. Some straight-forward and most common examples of chained commands are presented in the [pre-release][chained-pre] section.
190
190
191
191
The bump validation check is performed only after the last command is executed.
192
-
It is therefore OK to temporarily violate the version precedence rule for the intermediate versions as long as the last resulting version passes the validation agains the old version.
192
+
It is therefore OK to temporarily violate the version precedence rule for the intermediate versions as long as the last resulting version passes the validation against the old version.
193
193
194
194
| Old Version | Command | validate-bump | New Version |
@@ -17,15 +17,15 @@ If you have used the hatch [standard][hatch_versioning] versioning scheme plugin
17
17
When bumping only the pre-release segment of a version which has not yet any pre-release segment, hatch-semver automatically bumps the patch version.
18
18
It also automatically adds a purely numeric identifier *1* through which bumping becomes possible. Without a numeric identifier, this pre-release [could not be bumped][unbumpable].
19
19
20
-
| Old version |command| Standard Plugin | Semver Plugin | Comment |
20
+
| Old version |Command| Standard Plugin | Semver Plugin | Comment |
|`1.0.0`|`alpha`|`1.0.0a0`|`1.0.1-alpha.1`| patch version auto-bumped |
23
23
|`1.0.0`|`beta`|`1.1.0b0`|`1.0.1-beta.1`| patch version auto-bumped |
24
-
|`1.0.0`|`rc`<br>`pre`|`1.1.0rc0`|`1.0.1-rc.1`| patch version auto-bumped |
24
+
|`1.0.0`|`rc`|`1.1.0rc0`|`1.0.1-rc.1`| patch version auto-bumped |
25
25
26
-
The patch segment of the [version core][bnf] is not bumped, if prerelease is bumped in a [chained command][chain] where a version core bump has occurred before.
26
+
The patch segment of the [version core][bnf] is not bumped, if pre-release is bumped in a [chained command][chain] where a version core bump has occurred before.
27
27
28
-
| Old version |command| Standard Plugin | Semver Plugin | Comment |
28
+
| Old version |Command| Standard Plugin | Semver Plugin | Comment |
Hatch's [standard][hatch_versioning]'s versioning scheme's `rev`, `r`, `post` commands are not supported.
53
53
There is no concept of a revision or a post-release in [Semver][semver].
54
-
However, with `build=post`, for instance you could accomplish add the build identifiers *post* and *1* which would be similar to a PEP 440 post-release.
54
+
However, with `build=post`, for instance you could add the build identifiers *post* and *1* which would be similar to a PEP 440 post-release.
55
55
Like in PEP 440, also in Semver build identifiers have the same precedence.
56
56
57
-
The abbreviations `a`, `b`, and `c` for `alpha`, `beta`, `rc`, and `preview` are also not supported and will result in [python-semver][python-semver] throwing a `ValueError` with *... is not a valid SemVer string*. Hatch-semver actually uses `pre` as an alias for [prerelease][prerelease].
57
+
The abbreviations `a`, `b`, and `c` for `alpha`, `beta`, `rc`, and `preview`,respectively, are also not supported and will result in [python-semver][python-semver] throwing a `ValueError` with *... is not a valid SemVer string*. Hatch-semver actually uses `pre` as an alias for [pre-release][prerelease].
58
58
59
59
Semver allows custom identifiers in prereleases, so if you really wanted an `a0` pre-release, you could achieve it by bumping to a specific version, i.e. `hatch version 1.2.3-a0` although such alphanumeric identifiers [cannot be bumped][unbumpable] by [python-semver].
60
60
Better go with `1.2.3-a.1` which could be bumped to `1.2.3-a.2`, `1.2.3-a.3` etc.
0 commit comments