From 460bf8db2c8e58aa23a4c4e57f5dd5dec8b09b17 Mon Sep 17 00:00:00 2001 From: Milan Kolar Date: Fri, 12 Mar 2021 18:11:36 +0100 Subject: [PATCH] accept version specifier --- tools/build.ps1 | 2 +- tools/create_env.ps1 | 2 +- tools/create_zip.ps1 | 2 +- tools/run_tests.ps1 | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/build.ps1 b/tools/build.ps1 index 1f3612fc7c..e0a74bbaa3 100644 --- a/tools/build.ps1 +++ b/tools/build.ps1 @@ -98,7 +98,7 @@ $pype_root = (Get-Item $script_dir).parent.FullName Set-Location -Path $pype_root $version_file = Get-Content -Path "$($pype_root)\pype\version.py" -$result = [regex]::Matches($version_file, '__version__ = "(?\d+\.\d+.\d+)"') +$result = [regex]::Matches($version_file, '__version__ = "(?\d+\.\d+.\d+.*)"') $pype_version = $result[0].Groups['version'].Value if (-not $pype_version) { Write-Host "!!! " -ForegroundColor yellow -NoNewline diff --git a/tools/create_env.ps1 b/tools/create_env.ps1 index 1ea983cdd2..ccc0cab2e7 100644 --- a/tools/create_env.ps1 +++ b/tools/create_env.ps1 @@ -105,7 +105,7 @@ Write-Host $art -ForegroundColor DarkGreen # Show-PSWarning $version_file = Get-Content -Path "$($pype_root)\pype\version.py" -$result = [regex]::Matches($version_file, '__version__ = "(?\d+\.\d+.\d+)"') +$result = [regex]::Matches($version_file, '__version__ = "(?\d+\.\d+.\d+.*)"') $pype_version = $result[0].Groups['version'].Value if (-not $pype_version) { Write-Host "!!! " -ForegroundColor yellow -NoNewline diff --git a/tools/create_zip.ps1 b/tools/create_zip.ps1 index 1780b0bb9a..900bc0d523 100644 --- a/tools/create_zip.ps1 +++ b/tools/create_zip.ps1 @@ -57,7 +57,7 @@ Write-Host $art -ForegroundColor DarkGreen # Show-PSWarning $version_file = Get-Content -Path "$($pype_root)\pype\version.py" -$result = [regex]::Matches($version_file, '__version__ = "(?\d+\.\d+.\d+)"') +$result = [regex]::Matches($version_file, '__version__ = "(?\d+\.\d+.\d+.*)"') $pype_version = $result[0].Groups['version'].Value if (-not $pype_version) { Write-Host "!!! " -ForegroundColor yellow -NoNewline diff --git a/tools/run_tests.ps1 b/tools/run_tests.ps1 index 335cf3e3c9..0f66c0079f 100644 --- a/tools/run_tests.ps1 +++ b/tools/run_tests.ps1 @@ -57,7 +57,7 @@ $pype_root = (Get-Item $script_dir).parent.FullName Set-Location -Path $pype_root $version_file = Get-Content -Path "$($pype_root)\pype\version.py" -$result = [regex]::Matches($version_file, '__version__ = "(?\d+\.\d+.\d+)"') +$result = [regex]::Matches($version_file, '__version__ = "(?\d+\.\d+.\d+.*)"') $pype_version = $result[0].Groups['version'].Value if (-not $pype_version) { Write-Host "!!! " -ForegroundColor yellow -NoNewline