Skip to content

Commit 739df04

Browse files
Develop (#15)
fixed #14
1 parent ae7e3d1 commit 739df04

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
<!-- towncrier release notes start -->
44

5+
## [0.0.8](https://github.com/Nagidal/hatch-semver/tree/0.0.8) - 2022-11-10
6+
7+
8+
### Bugfixes
9+
10+
- Fixed another ValueError when bumping major version [#14](https://github.com/Nagidal/hatch-semver/issues/14)
11+
12+
513
## [0.0.7](https://github.com/Nagidal/hatch-semver/tree/0.0.7) - 2022-11-10
614

715

src/hatch_semver/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
__maintainer__ = __author__
99
__maintainer_email__ = __author_email__
1010
__release_date__ = date(year=2022, month=11, day=10)
11-
__version__ = "0.0.7"
11+
__version__ = "0.0.8"
1212

src/hatch_semver/semver_scheme.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ def update(self, desired_version, original_version, version_data) -> str:
2020
parts = desired_version.replace("micro", "patch").replace("fix", "patch").split(",")
2121

2222
for part in parts:
23-
next_version = getattr(original, "bump_" + part)()
24-
original = next_version
25-
if part == "minor":
26-
next_version = original.bump_minor()
23+
if part in ("major", "minor", "patch"):
24+
next_version = getattr(original, "bump_" + part)()
2725
original = next_version
2826
elif part in ("post", "rev", "r"):
2927
raise ValeError(f"Semver has no concept of a post-release. Use 'build' instead")

0 commit comments

Comments
 (0)