Skip to content

Commit

Permalink
Update Language Settings File
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu committed Aug 28, 2020
1 parent 9f4bbb0 commit ed2b280
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $PackageRepository = "PyPI"
$packagePattern = "*.zip"
$MetadataUri = "https://raw.githubusercontent.com/Azure/azure-sdk/master/_data/releases/latest/python-packages.csv"

function Extract-python-PkgProperties ($pkgPath, $serviceName, $pkgName)
function Get-python-PackageInfoFromRepo ($pkgPath, $serviceName, $pkgName)
{
$pkgName = $pkgName.Replace('_', '-')
if (Test-Path (Join-Path $pkgPath "setup.py"))
Expand All @@ -25,7 +25,7 @@ function Extract-python-PkgProperties ($pkgPath, $serviceName, $pkgName)
function IsPythonPackageVersionPublished($pkgId, $pkgVersion) {
try
{
$existingVersion = (Invoke-RestMethod -MaximumRetryCount 3 -Method "Get" -uri "https://pypi.org/pypi/$pkgId/$pkgVersion/json").info.version
$existingVersion = (Invoke-RestMethod -MaximumRetryCount 3 -RetryIntervalSec 10 -Method "Get" -uri "https://pypi.org/pypi/$pkgId/$pkgVersion/json").info.version
# if existingVersion exists, then it's already been published
return $True
}
Expand All @@ -47,7 +47,7 @@ function IsPythonPackageVersionPublished($pkgId, $pkgVersion) {
}

# Parse out package publishing information given a python sdist of ZIP format.
function Parse-python-Package($pkg, $workingDirectory) {
function Get-python-PackageInfoFromPackageFile ($pkg, $workingDirectory) {
$pkg.Basename -match $SDIST_PACKAGE_REGEX | Out-Null

$pkgId = $matches["package"]
Expand Down Expand Up @@ -84,7 +84,7 @@ function Parse-python-Package($pkg, $workingDirectory) {
}

# Stage and Upload Docs to blob Storage
function StageAndUpload-python-Docs()
function Publish-python-GithubIODocs ()
{
$PublishedDocs = Get-ChildItem "$DocLocation" | Where-Object -FilterScript {$_.Name.EndsWith(".zip")}

Expand Down

0 comments on commit ed2b280

Please sign in to comment.