diff options
| author | Martin Hořeňovský | 2018-11-26 20:47:40 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2018-11-26 20:47:40 +0100 |
| commit | 34dcd2c436675b84e81a45e2b052ccc96daa14f0 (patch) | |
| tree | a10ac022be5357dc3a271165c94da87512f5d5de /scripts | |
| parent | 16656c4c9e9facd9c1caba982247302e6f5e1949 (diff) | |
| download | catch3-34dcd2c436675b84e81a45e2b052ccc96daa14f0.tar.gz | |
Remove remains of the old conan things from release script
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/releaseCommon.py | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/scripts/releaseCommon.py b/scripts/releaseCommon.py index 1a8ee2c8..9cdc4f6c 100644 --- a/scripts/releaseCommon.py +++ b/scripts/releaseCommon.py @@ -12,8 +12,6 @@ rootPath = os.path.join( catchPath, 'include/' ) versionPath = os.path.join( rootPath, "internal/catch_version.cpp" ) definePath = os.path.join(rootPath, 'catch.hpp') readmePath = os.path.join( catchPath, "README.md" ) -conanPath = os.path.join(catchPath, 'conanfile.py') -conanTestPath = os.path.join(catchPath, 'test_package', 'conanfile.py') cmakePath = os.path.join(catchPath, 'CMakeLists.txt') class Version: @@ -98,35 +96,6 @@ def updateReadmeFile(version): line = '[]({0})'.format(wandboxLink) f.write( line + "\n" ) -def updateConanFile(version): - conanParser = re.compile( r' version = "\d+\.\d+\.\d+.*"') - f = open( conanPath, 'r' ) - lines = [] - for line in f: - m = conanParser.match( line ) - if m: - lines.append( ' version = "{0}"'.format(format(version.getVersionString())) ) - else: - lines.append( line.rstrip() ) - f.close() - f = open( conanPath, 'w' ) - for line in lines: - f.write( line + "\n" ) - -def updateConanTestFile(version): - conanParser = re.compile( r' requires = \"Catch\/\d+\.\d+\.\d+.*@%s\/%s\" % \(username, channel\)') - f = open( conanTestPath, 'r' ) - lines = [] - for line in f: - m = conanParser.match( line ) - if m: - lines.append( ' requires = "Catch/{0}@%s/%s" % (username, channel)'.format(format(version.getVersionString())) ) - else: - lines.append( line.rstrip() ) - f.close() - f = open( conanTestPath, 'w' ) - for line in lines: - f.write( line + "\n" ) def updateCmakeFile(version): with open(cmakePath, 'r') as file: @@ -173,6 +142,4 @@ def performUpdates(version): shutil.copyfile(sourceFile, destFile) updateReadmeFile(version) - updateConanFile(version) - updateConanTestFile(version) updateCmakeFile(version) |