Skip to content

Commit dc9d522

Browse files
author
Eric Kolve
committed
adding tasks
1 parent 3a7c978 commit dc9d522

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tasks.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ def build_pip(context):
2424
latest_version = title.text
2525
break
2626

27-
current_maj, current_min, current_sub = latest_version.split('.')
28-
next_maj, next_min, next_sub = git_tag_version.split('.')
27+
current_maj, current_min, current_sub = list(map(int, latest_version.split('.')))
28+
next_maj, next_min, next_sub = list(map(int, git_tag_version.split('.')))
2929

3030
if (next_maj > current_maj) or \
3131
(next_maj >= current_maj and next_min > current_min) or \
@@ -34,7 +34,6 @@ def build_pip(context):
3434
else:
3535
raise Exception("Invalid version: %s is not greater than latest version %s" % (git_tag_version, latest_version))
3636

37-
3837

3938
@task
4039
def deploy_pip(context):

0 commit comments

Comments
 (0)