From aca2472d40250cd288f88073f268e4308a0300ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sat, 31 Oct 2020 18:18:48 +0100 Subject: [PATCH] Stop uploading new releases to wandbox --- scripts/releaseCommon.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/scripts/releaseCommon.py b/scripts/releaseCommon.py index 283337d4..1c115c52 100644 --- a/scripts/releaseCommon.py +++ b/scripts/releaseCommon.py @@ -79,13 +79,15 @@ class Version: f.write( line + "\n" ) def updateReadmeFile(version): - import updateWandbox + + # Wandbox no longer accepts the single-header upload, skip + # import updateWandbox downloadParser = re.compile( r'' ) - success, wandboxLink = updateWandbox.uploadFiles() - if not success: - print('Error when uploading to wandbox: {}'.format(wandboxLink)) - exit(1) + # success, wandboxLink = updateWandbox.uploadFiles() + # if not success: + # print('Error when uploading to wandbox: {}'.format(wandboxLink)) + # exit(1) f = open( readmePath, 'r' ) lines = [] for line in f: @@ -94,8 +96,8 @@ def updateReadmeFile(version): f = open( readmePath, 'w' ) for line in lines: line = downloadParser.sub( r''.format(version.getVersionString()) , line) - if '[![Try online](https://img.shields.io/badge/try-online-blue.svg)]' in line: - line = '[![Try online](https://img.shields.io/badge/try-online-blue.svg)]({0})'.format(wandboxLink) +# if '[![Try online](https://img.shields.io/badge/try-online-blue.svg)]' in line: +# line = '[![Try online](https://img.shields.io/badge/try-online-blue.svg)]({0})'.format(wandboxLink) f.write( line + "\n" )