mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Stop uploading new releases to wandbox
This commit is contained in:
		@@ -79,13 +79,15 @@ class Version:
 | 
				
			|||||||
            f.write( line + "\n" )
 | 
					            f.write( line + "\n" )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def updateReadmeFile(version):
 | 
					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\">' )
 | 
					    downloadParser = re.compile( r'<a href=\"https://github.com/catchorg/Catch2/releases/download/v\d+\.\d+\.\d+/catch.hpp\">' )
 | 
				
			||||||
    success, wandboxLink = updateWandbox.uploadFiles()
 | 
					    # success, wandboxLink = updateWandbox.uploadFiles()
 | 
				
			||||||
    if not success:
 | 
					    # if not success:
 | 
				
			||||||
        print('Error when uploading to wandbox: {}'.format(wandboxLink))
 | 
					    #     print('Error when uploading to wandbox: {}'.format(wandboxLink))
 | 
				
			||||||
        exit(1)
 | 
					    #     exit(1)
 | 
				
			||||||
    f = open( readmePath, 'r' )
 | 
					    f = open( readmePath, 'r' )
 | 
				
			||||||
    lines = []
 | 
					    lines = []
 | 
				
			||||||
    for line in f:
 | 
					    for line in f:
 | 
				
			||||||
@@ -94,8 +96,8 @@ def updateReadmeFile(version):
 | 
				
			|||||||
    f = open( readmePath, 'w' )
 | 
					    f = open( readmePath, 'w' )
 | 
				
			||||||
    for line in lines:
 | 
					    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)
 | 
					        line = downloadParser.sub( r'<a href="https://github.com/catchorg/Catch2/releases/download/v{0}/catch.hpp">'.format(version.getVersionString()) , line)
 | 
				
			||||||
        if '[]' in line:
 | 
					#        if '[]' in line:
 | 
				
			||||||
            line = '[]({0})'.format(wandboxLink)
 | 
					#            line = '[]({0})'.format(wandboxLink)
 | 
				
			||||||
        f.write( line + "\n" )
 | 
					        f.write( line + "\n" )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user