Skip to content

Commit

Permalink
Bump Kiota and dependencies of the Python SDK (#4176)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaTP authored Jan 5, 2024
1 parent 79091fa commit 5db7700
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 22 deletions.
2 changes: 1 addition & 1 deletion python-sdk/kiota-version.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<PackageReference Include="Microsoft.OpenApi.Kiota.Builder" Version="1.7.0" />
<PackageReference Include="Microsoft.OpenApi.Kiota.Builder" Version="1.9.1" />
</ItemGroup>
</Project>
32 changes: 16 additions & 16 deletions python-sdk/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions python-sdk/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ keywords = ["apicurio", "registry"]

[tool.poetry.dependencies]
python = "^3.9"
microsoft-kiota-abstractions = "^0.8.6"
microsoft-kiota-http = "^0.6.3"
microsoft-kiota-serialization-json = "^0.4.1"
microsoft-kiota-serialization-text = "^0.2.1"
microsoft-kiota-abstractions = "^1.0.0"
microsoft-kiota-http = "^1.2.0"
microsoft-kiota-serialization-json = "^1.0.0"
microsoft-kiota-serialization-text = "^1.0.0"

[tool.poetry.group.test.dependencies]
pytest = "^7.3.1"
Expand Down
5 changes: 4 additions & 1 deletion python-sdk/tests/basic_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import sys
import requests
import json
from kiota_abstractions.headers_collection import HeadersCollection
from kiota_abstractions.authentication.anonymous_authentication_provider import (
AnonymousAuthenticationProvider,
)
Expand Down Expand Up @@ -119,9 +120,11 @@ async def test_issue_3465():
canonical=True, if_exists="RETURN_OR_UPDATE"
)

artifact_id_headers = HeadersCollection()
artifact_id_headers.add("X-Registry-ArtifactId", "foo")
request_configuration = (
ArtifactsRequestBuilder.ArtifactsRequestBuilderPostRequestConfiguration(
headers={"X-Registry-ArtifactId": "foo"}, query_parameters=query_params
headers=artifact_id_headers, query_parameters=query_params
)
)

Expand Down

0 comments on commit 5db7700

Please sign in to comment.