Skip to content

Commit

Permalink
updated poetry setup scripts (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
vimayya authored Aug 10, 2022
1 parent 0aaf4e1 commit f843cbe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
3 changes: 3 additions & 0 deletions TestRunner.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,9 @@ function Invoke-TestRunner {
$outputDir = Resolve-Path $runnerOutputPath
Push-Location ./src/edfi-performance-test
try {
Write-DebugLog "Executing: poetry install" -LogLevel $logLevel
&poetry install

$command = "poetry run python edfi_performance_test --baseUrl $url --key $key --secret $secret --output $outputDir --testType $testSuite"
if ($clientCount) {
$command += " --clientCount $clientCount"
Expand Down
15 changes: 6 additions & 9 deletions eng/install-test-runner-prerequisites.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,20 @@ function Install-Poetry {
# Ensure pip is on the latest version
python -m pip install --upgrade pip

# Install poetry
# Poetry's native installation process encounters SSL errors
# in some environments. `pip install` is a reasonable alternative
# that has been shown to work in our situation.
pip install --user poetry
# Update local and global PATH variables
$addition = "$env:APPDATA\Python\Python39\Scripts\"
$addition = "$env:USERPROFILE\.pyenv\pyenv-win\versions\3.9.4\Scripts"
$env:PATH="$env:PATH;$addition"

$value = [Environment]::GetEnvironmentVariable("PATH", "Machine")
$value = "$value;$addition"
[Environment]::SetEnvironmentVariable("PATH", $value, "Machine")
refreshenv

Push-Location ..\src\edfi-paging-test
poetry install
Pop-Location
# Install poetry
# Poetry's native installation process encounters SSL errors
# in some environments. `pip install` is a reasonable alternative
# that has been shown to work in our situation.
pip install --user poetry
}


Expand Down

0 comments on commit f843cbe

Please sign in to comment.