mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 05:16:10 +01:00
Cleanup the helper scripts
* Remove from __future__ import print_function, because we no longer support Python2. * Clean out unused parts of tools/scripts/scriptCommon.py * Move appveyorMergeCoverageScript to Python3 * Update user reporting in *release scripts * Cleanup module imports
This commit is contained in:
parent
d1ef461471
commit
297a17593f
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python2
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import glob
|
import glob
|
||||||
import subprocess
|
import subprocess
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import io
|
import io
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import shutil
|
import shutil
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
import releaseCommon
|
import releaseCommon
|
||||||
|
|
||||||
v = releaseCommon.Version()
|
v = releaseCommon.Version()
|
||||||
v.incrementBuildNumber()
|
v.incrementBuildNumber()
|
||||||
releaseCommon.performUpdates(v)
|
releaseCommon.performUpdates(v)
|
||||||
|
|
||||||
print( "Updated Version.hpp, README and Conan to v{0}".format( v.getVersionString() ) )
|
print( "Updated files to v{0}".format( v.getVersionString() ) )
|
||||||
|
@ -21,8 +21,6 @@
|
|||||||
# to add the 'Introduced in Catch ...' snippets to the relevant pages.
|
# to add the 'Introduced in Catch ...' snippets to the relevant pages.
|
||||||
#
|
#
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
import os
|
import os
|
||||||
from scriptCommon import catchPath
|
from scriptCommon import catchPath
|
||||||
|
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
import releaseCommon
|
import releaseCommon
|
||||||
|
|
||||||
v = releaseCommon.Version()
|
v = releaseCommon.Version()
|
||||||
v.incrementMajorVersion()
|
v.incrementMajorVersion()
|
||||||
releaseCommon.performUpdates(v)
|
releaseCommon.performUpdates(v)
|
||||||
|
|
||||||
print( "Updated Version.hpp, README and Conan to v{0}".format( v.getVersionString() ) )
|
print( "Updated files to v{0}".format( v.getVersionString() ) )
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
import releaseCommon
|
import releaseCommon
|
||||||
|
|
||||||
v = releaseCommon.Version()
|
v = releaseCommon.Version()
|
||||||
v.incrementMinorVersion()
|
v.incrementMinorVersion()
|
||||||
releaseCommon.performUpdates(v)
|
releaseCommon.performUpdates(v)
|
||||||
|
|
||||||
print( "Updated Version.hpp, README and Conan to v{0}".format( v.getVersionString() ) )
|
print( "Updated files to v{0}".format( v.getVersionString() ) )
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
import releaseCommon
|
import releaseCommon
|
||||||
|
|
||||||
v = releaseCommon.Version()
|
v = releaseCommon.Version()
|
||||||
v.incrementPatchNumber()
|
v.incrementPatchNumber()
|
||||||
releaseCommon.performUpdates(v)
|
releaseCommon.performUpdates(v)
|
||||||
|
|
||||||
print( "Updated Version.hpp, README and Conan to v{0}".format( v.getVersionString() ) )
|
print( "Updated files to v{0}".format( v.getVersionString() ) )
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import re
|
import re
|
||||||
import string
|
import string
|
||||||
import glob
|
|
||||||
import fnmatch
|
import fnmatch
|
||||||
|
|
||||||
from scriptCommon import catchPath
|
from scriptCommon import catchPath
|
||||||
|
@ -1,31 +1,4 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import subprocess
|
|
||||||
|
|
||||||
|
|
||||||
catchPath = os.path.dirname(os.path.dirname(os.path.realpath( os.path.dirname(sys.argv[0]))))
|
catchPath = os.path.dirname(os.path.dirname(os.path.realpath( os.path.dirname(sys.argv[0]))))
|
||||||
|
|
||||||
def getBuildExecutable():
|
|
||||||
if os.name == 'nt':
|
|
||||||
dir = os.environ.get('CATCH_DEV_OUT_DIR', "cmake-build-debug/projects/SelfTest.exe")
|
|
||||||
return dir
|
|
||||||
else:
|
|
||||||
dir = os.environ.get('CATCH_DEV_OUT_DIR', "cmake-build-debug/projects/SelfTest")
|
|
||||||
return dir
|
|
||||||
|
|
||||||
|
|
||||||
def runAndCapture( args ):
|
|
||||||
child = subprocess.Popen(" ".join( args ), shell=True, stdout=subprocess.PIPE)
|
|
||||||
lines = []
|
|
||||||
line = ""
|
|
||||||
while True:
|
|
||||||
out = child.stdout.read(1)
|
|
||||||
if out == '' and child.poll():
|
|
||||||
break
|
|
||||||
if out != '':
|
|
||||||
if out == '\n':
|
|
||||||
lines.append( line )
|
|
||||||
line = ""
|
|
||||||
else:
|
|
||||||
line = line + out
|
|
||||||
return lines
|
|
||||||
|
@ -11,8 +11,6 @@
|
|||||||
# https://github.com/rasbt/markdown-toclify
|
# https://github.com/rasbt/markdown-toclify
|
||||||
#
|
#
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
|
Loading…
Reference in New Issue
Block a user