Skip to content

Commit

Permalink
Add GetPackageInstallNotes function
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu committed Jan 5, 2021
1 parent 640903b commit c5d0dbe
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -225,16 +225,17 @@ function GetExistingPackageVersions ($PackageName, $GroupId=$null)
}
}

function SetPackageVersion ($PackageName, $Version, $ServiceName, $ReleaseDate, $BuildType=$null, $GroupName=$null)
function SetPackageVersion ($PackageName, $Version, $ServiceDirectory, $ReleaseDate, $BuildType=$null, $GroupId=$null)
{
if($null -eq $ReleaseDate)
{
$ReleaseDate = Get-Date -Format "yyyy-MM-dd"
}
pip install -r "$EngDir/versioning/requirements.txt" -q -I
python "$EngDir/versioning/version_set.py" --package-name $PackageName --new-version $Version --service $ServiceName --release-date $ReleaseDate
python "$EngDir/versioning/version_set.py" --package-name $PackageName --new-version $Version --service $ServiceDirectory --release-date $ReleaseDate
}

function GetPackageInstallNotes ($package, $version) {
return npm install $package
function GetPackageInstallNote ($PackageName, $Version, $GroupId=$null)
{
return "pip install ${PackageName}==${Version}"
}

0 comments on commit c5d0dbe

Please sign in to comment.