Skip to content

Commit b73f7e2

Browse files
committed
version: support for release candidates #56
1 parent 86758fb commit b73f7e2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

objectbox/version.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,21 @@
1818
class Version:
1919
def __init__(self, major: int, minor: int, patch: int,
2020
alpha: Optional[int] = None,
21-
beta: Optional[int] = None):
21+
beta: Optional[int] = None,
22+
rc: Optional[int] = None):
2223
self.major = major
2324
self.minor = minor
2425
self.patch = patch
2526
self.alpha = alpha
2627
self.beta = beta
28+
self.rc = rc
2729

2830
def __str__(self):
2931
result = ".".join(map(str, [self.major, self.minor, self.patch]))
3032
if self.alpha is not None:
3133
result += f"a{self.alpha}"
3234
if self.beta is not None:
3335
result += f"b{self.beta}"
36+
if self.rc is not None:
37+
result += f"rc{self.rc}"
3438
return result

0 commit comments

Comments
 (0)