[tor-commits] [sbws/master] fix: scripts: Stop releasing from -dev0 version

juga at torproject.org juga at torproject.org
Tue Aug 11 13:52:52 UTC 2020


commit 12001ae613d0a9da6425229d396eee12e622960f
Author: juga0 <juga at riseup.net>
Date:   Fri Jul 17 10:43:52 2020 +0000

    fix: scripts: Stop releasing from -dev0 version
    
    since now sbws version is calculated from last release tag.
---
 scripts/maint/release.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/scripts/maint/release.py b/scripts/maint/release.py
index fba204e..7433ce8 100755
--- a/scripts/maint/release.py
+++ b/scripts/maint/release.py
@@ -21,7 +21,7 @@ All in sequence and doesn't recover from any previous step.
 
 It assumes that:
 - gitchangelog and semantic_version are installed
-- the next prerelease version is the release version + "-dev0"
+- the program version can be obtained with ``sbws.__version__``
 - the official tarball releases are at gitlab.torproject.org
 - the key to sign the release is only one and is available in the system
 
@@ -44,8 +44,6 @@ import sbws
 
 
 def obtain_release_version(version):
-    # Ensure this is a prerelease version (eg 1.0.3-dev0)
-    assert version.prerelease
     release_type_dict = {
         1: version.next_patch(),
         2: version.next_minor(),





More information about the tor-commits mailing list