Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Update Changelog #15992

Merged
merged 6 commits into from
Jan 7, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Remove changes unrelated to update changelog
chidozieononiwu committed Jan 6, 2021
commit ab3f9f970380b565f4686bfa6f4b4e00b2c1d85c
22 changes: 1 addition & 21 deletions eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@ $PackageRepository = "PyPI"
$packagePattern = "*.zip"
$MetadataUri = "https://raw.githubusercontent.com/Azure/azure-sdk/master/_data/releases/latest/python-packages.csv"
$BlobStorageUrl = "https://azuresdkdocs.blob.core.windows.net/%24web?restype=container&comp=list&prefix=python%2F&delimiter=%2F"
$PACKAGE_INSTALL_NOTES_REGEX = "pip\sinstall\s(?<PackageName>.*)==(?<Version>.*)"

function Get-python-PackageInfoFromRepo ($pkgPath, $serviceDirectory, $pkgName)
{
@@ -211,20 +210,6 @@ function Find-python-Artifacts-For-Apireview($artifactDir, $artifactName)
return $packages
}

function GetExistingPackageVersions ($PackageName, $GroupId=$null)
{
try
{
$existingVersion = Invoke-RestMethod -Method GET -Uri "https://pypi.python.org/pypi/${PackageName}/json"
return ($existingVersion.releases | Get-Member -MemberType NoteProperty).Name
}
catch
{
LogError "Failed to retrieve package versions. `n$_"
return $null
}
}

function SetPackageVersion ($PackageName, $Version, $ServiceDirectory, $ReleaseDate, $BuildType=$null, $GroupId=$null)
{
if($null -eq $ReleaseDate)
@@ -233,9 +218,4 @@ function SetPackageVersion ($PackageName, $Version, $ServiceDirectory, $ReleaseD
}
pip install -r "$EngDir/versioning/requirements.txt" -q -I
python "$EngDir/versioning/version_set.py" --package-name $PackageName --new-version $Version --service $ServiceDirectory --release-date $ReleaseDate
}

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