Skip to content

Commit 33821c3

Browse files
committed
Update to 0.7.0a1
1 parent ec45936 commit 33821c3

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

objectbox/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
]
3232

3333
# Python binding version
34-
version = Version(0, 6, 1)
34+
version = Version(0, 7, 0, alpha=1)
3535

3636

3737
def version_info():

objectbox/version.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,23 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
from typing import *
16+
1517

1618
class Version:
17-
def __init__(self, major: int, minor: int, patch: int, label: str = ""):
19+
def __init__(self, major: int, minor: int, patch: int,
20+
alpha: Optional[int] = None,
21+
beta: Optional[int] = None):
1822
self.major = major
1923
self.minor = minor
2024
self.patch = patch
21-
self.label = label
25+
self.alpha = alpha
26+
self.beta = beta
2227

2328
def __str__(self):
2429
result = ".".join(map(str, [self.major, self.minor, self.patch]))
25-
if len(self.label) > 0:
26-
result += "-" + self.label
30+
if self.alpha is not None:
31+
result += f"a{self.alpha}"
32+
if self.beta is not None:
33+
result += f"b{self.beta}"
2734
return result

0 commit comments

Comments
 (0)