Skip to content

Commit

Permalink
Stop uploading new releases to wandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
horenmar committed Oct 31, 2020
1 parent 765ac08 commit aca2472
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions scripts/releaseCommon.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,15 @@ def updateVersionFile(self):
f.write( line + "\n" )

def updateReadmeFile(version):
import updateWandbox

# Wandbox no longer accepts the single-header upload, skip
# import updateWandbox

downloadParser = re.compile( r'<a href=\"https://github.com/catchorg/Catch2/releases/download/v\d+\.\d+\.\d+/catch.hpp\">' )
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:
Expand All @@ -94,8 +96,8 @@ def updateReadmeFile(version):
f = open( readmePath, 'w' )
for line in lines:
line = downloadParser.sub( r'<a href="https://github.com/catchorg/Catch2/releases/download/v{0}/catch.hpp">'.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" )


Expand Down

0 comments on commit aca2472

Please sign in to comment.