diff --git a/release/changelog_since_last_release.rst b/release/changelog_since_last_release.rst index 73834874f532291d0bc045e469b975de7aa121cd..42e35436a226e9b0a85bc66b2d98c9919cded4c2 100644 --- a/release/changelog_since_last_release.rst +++ b/release/changelog_since_last_release.rst @@ -178,12 +178,14 @@ * minor * Migrate to conda based CI * bob.db.asvspoof - * v1.0.3 (Sep 22, 2017 14:20) + * v1.1.7 (Sep 22, 2017 14:20) + * Docs updates * minor * Migrate to conda based CI - * Removed redundant debug_asvspoof2017 script + * Removed redundant debug_asvspoof script * bob.db.asvspoof2017 * v1.0.3 (Sep 22, 2017 14:20) + * Docs updates * minor * Migrate to conda based CI * Removed redundant debug_asvspoof2017 script diff --git a/release/release_bob.py b/release/release_bob.py index ad58c9e6a84e5441cced5a55d3312c4b8f404c5e..56068bd3c51e93d811a3a0d2016a2bed7e819afb 100755 --- a/release/release_bob.py +++ b/release/release_bob.py @@ -13,7 +13,7 @@ Usage: Arguments: <private_token> Private token used to access GitLab. - + Options: -h --help Show this screen. --version Show version. @@ -84,7 +84,11 @@ def get_parsed_tag(gitpkg, tag): # if we bump the version, we need to find the latest released version for this package if 'patch' == tag or 'minor' == tag or 'major' == tag: - latest_tag = gitpkg.tags.list(per_page=1, page=1)[0] + latest_tag = gitpkg.tags.list(per_page=1, page=1) + # if there were no tags yet, assume the first version + if not latest_tag: + return 'v1.0.0' + latest_tag = latest_tag[0] latest_tag_name = latest_tag.name # check that it has expected format v#.#.# # latest_tag_name = Version(latest_tag_name)