-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
- Loading branch information
Showing
12 changed files
with
5 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env python2 | ||
#!/usr/bin/env python3 | ||
|
||
import glob | ||
import subprocess | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from __future__ import print_function | ||
|
||
import io | ||
import os | ||
import sys | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from __future__ import print_function | ||
|
||
import os | ||
import sys | ||
import shutil | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from __future__ import print_function | ||
import releaseCommon | ||
|
||
v = releaseCommon.Version() | ||
v.incrementBuildNumber() | ||
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() ) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from __future__ import print_function | ||
import os | ||
from scriptCommon import catchPath | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from __future__ import print_function | ||
import releaseCommon | ||
|
||
v = releaseCommon.Version() | ||
v.incrementMajorVersion() | ||
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() ) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from __future__ import print_function | ||
import releaseCommon | ||
|
||
v = releaseCommon.Version() | ||
v.incrementMinorVersion() | ||
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() ) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
#!/usr/bin/env python3 | ||
|
||
from __future__ import print_function | ||
import releaseCommon | ||
|
||
v = releaseCommon.Version() | ||
v.incrementPatchNumber() | ||
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() ) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,4 @@ | ||
import os | ||
import sys | ||
import subprocess | ||
|
||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters