Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-azure-core-experimental for
openSUSE:Factory checked in at 2026-10-14 18:47:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-azure-core-experimental (Old)
and
/work/SRC/openSUSE:Factory/.python-azure-core-experimental.new.3698736 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-azure-core-experimental"
Wed Oct 14 18:47:47 2026 rev:3 rq:1384779 version:1.0.0~b4
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-azure-core-experimental/python-azure-core-experimental.changes
2024-04-07 22:06:41.892123405 +0200
+++
/work/SRC/openSUSE:Factory/.python-azure-core-experimental.new.3698736/python-azure-core-experimental.changes
2026-10-14 18:48:00.001287498 +0200
@@ -1,0 +2,10 @@
+Wed Oct 14 11:20:46 UTC 2026 - John Paul Adrian Glaubitz
<[email protected]>
+
+- New upstream release
+ + Version 1.0.0b4
+ + For detailed information about changes see the
+ CHANGELOG.md file provided with this package
+- Drop extra LICENSE.txt as upstream now ships its own
+- Rename LICENSE.txt to LICENSE in %files section
+
+-------------------------------------------------------------------
Old:
----
LICENSE.txt
azure-core-experimental-1.0.0b3.zip
New:
----
azure-core-experimental-1.0.0b4.zip
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-azure-core-experimental.spec ++++++
--- /var/tmp/diff_new_pack.I7toZJ/_old 2026-10-14 18:48:01.527351368 +0200
+++ /var/tmp/diff_new_pack.I7toZJ/_new 2026-10-14 18:48:01.528351410 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-azure-core-experimental
#
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,18 +16,17 @@
#
-%define realversion 1.0.0b3
+%define realversion 1.0.0b4
%{?sle15_python_module_pythons}
Name: python-azure-core-experimental
-Version: 1.0.0~b3
+Version: 1.0.0~b4
Release: 0
Summary: Microsoft Azure Core Experimental Library for Python
License: MIT
Group: Development/Languages/Python
URL: https://github.com/Azure/azure-sdk-for-python
Source:
https://files.pythonhosted.org/packages/source/a/azure-core-experimental/azure-core-experimental-%{realversion}.zip
-Source1: LICENSE.txt
BuildRequires: %{python_module azure-core < 2.0.0}
BuildRequires: %{python_module azure-core >= 1.25.0}
BuildRequires: %{python_module azure-nspkg >= 3.0.0}
@@ -58,7 +57,6 @@
%setup -q -n azure-core-experimental-%{realversion}
%build
-install -m 644 %{SOURCE1} %{_builddir}/azure-core-experimental-%{realversion}
%pyproject_wheel
%install
@@ -71,7 +69,7 @@
%files %{python_files}
%doc CHANGELOG.md README.md
-%license LICENSE.txt
+%license LICENSE
%{python_sitelib}/azure/core/experimental
%{python_sitelib}/azure_core_experimental-*.dist-info
++++++ azure-core-experimental-1.0.0b3.zip ->
azure-core-experimental-1.0.0b4.zip ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-core-experimental-1.0.0b3/CHANGELOG.md
new/azure-core-experimental-1.0.0b4/CHANGELOG.md
--- old/azure-core-experimental-1.0.0b3/CHANGELOG.md 2023-07-10
02:16:32.000000000 +0200
+++ new/azure-core-experimental-1.0.0b4/CHANGELOG.md 2023-08-07
20:24:02.000000000 +0200
@@ -1,5 +1,12 @@
# Release History
+## 1.0.0b4 (2023-08-03)
+
+### Bugs Fixed
+
+- Create new httpx client when used without "with"
([#31362](https://github.com/Azure/azure-sdk-for-python/pull/31370))
+- Fix httpx sample with right API name
+
## 1.0.0b3 (2023-07-06)
### Bug Fixes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-core-experimental-1.0.0b3/PKG-INFO
new/azure-core-experimental-1.0.0b4/PKG-INFO
--- old/azure-core-experimental-1.0.0b3/PKG-INFO 2023-07-10
02:17:40.000000000 +0200
+++ new/azure-core-experimental-1.0.0b4/PKG-INFO 2023-08-07
20:25:02.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: azure-core-experimental
-Version: 1.0.0b3
+Version: 1.0.0b4
Summary: Microsoft Azure Core Experimental Library for Python
Home-page:
https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-experimental
Author: Microsoft Corporation
@@ -49,6 +49,13 @@
# Release History
+## 1.0.0b4 (2023-08-03)
+
+### Bugs Fixed
+
+- Create new httpx client when used without "with"
([#31362](https://github.com/Azure/azure-sdk-for-python/pull/31370))
+- Fix httpx sample with right API name
+
## 1.0.0b3 (2023-07-06)
### Bug Fixes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-core-experimental-1.0.0b3/azure/core/experimental/_version.py
new/azure-core-experimental-1.0.0b4/azure/core/experimental/_version.py
--- old/azure-core-experimental-1.0.0b3/azure/core/experimental/_version.py
2023-07-10 02:16:32.000000000 +0200
+++ new/azure-core-experimental-1.0.0b4/azure/core/experimental/_version.py
2023-08-07 20:24:02.000000000 +0200
@@ -3,4 +3,4 @@
# Licensed under the MIT License.
# ------------------------------------
-VERSION = "1.0.0b3"
+VERSION = "1.0.0b4"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-core-experimental-1.0.0b3/azure/core/experimental/transport/__init__.py
new/azure-core-experimental-1.0.0b4/azure/core/experimental/transport/__init__.py
---
old/azure-core-experimental-1.0.0b3/azure/core/experimental/transport/__init__.py
2023-07-10 02:16:32.000000000 +0200
+++
new/azure-core-experimental-1.0.0b4/azure/core/experimental/transport/__init__.py
2023-08-07 20:24:02.000000000 +0200
@@ -43,21 +43,21 @@
from ._pyodide import PyodideTransport
return PyodideTransport
- except ImportError:
- raise ImportError("pyodide package is not installed")
+ except ImportError as err:
+ raise ImportError("pyodide package is not installed") from err
if name == "HttpXTransport":
try:
from ._httpx import HttpXTransport
return HttpXTransport
- except ImportError:
- raise ImportError("httpx package is not installed")
+ except ImportError as err:
+ raise ImportError("httpx package is not installed") from err
if name == "AsyncHttpXTransport":
try:
from ._httpx_async import AsyncHttpXTransport
return AsyncHttpXTransport
- except ImportError:
- raise ImportError("httpx package is not installed")
+ except ImportError as err:
+ raise ImportError("httpx package is not installed") from err
raise AttributeError(f"module 'azure.core.experimental.transport' has
no attribute {name}")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-core-experimental-1.0.0b3/azure/core/experimental/transport/_httpx.py
new/azure-core-experimental-1.0.0b4/azure/core/experimental/transport/_httpx.py
---
old/azure-core-experimental-1.0.0b3/azure/core/experimental/transport/_httpx.py
2023-07-10 02:16:32.000000000 +0200
+++
new/azure-core-experimental-1.0.0b4/azure/core/experimental/transport/_httpx.py
2023-08-07 20:24:02.000000000 +0200
@@ -23,21 +23,32 @@
# IN THE SOFTWARE.
#
# --------------------------------------------------------------------------
-from typing import Any, ContextManager, Iterator, Optional
+from typing import Any, ContextManager, Iterator, Optional, Union
import httpx
+from azure.core.configuration import ConnectionConfiguration
+from azure.core.exceptions import DecodeError, ServiceRequestError,
ServiceResponseError
from azure.core.pipeline import Pipeline
-
-from azure.core.exceptions import ServiceRequestError, ServiceResponseError
from azure.core.pipeline.transport import HttpTransport
from azure.core.rest import HttpRequest
from azure.core.rest._http_response_impl import HttpResponseImpl
-from azure.core.configuration import ConnectionConfiguration
+from azure.core.pipeline.transport import HttpRequest as LegacyHttpRequest
class HttpXTransportResponse(HttpResponseImpl):
+ """HttpX response implementation.
+
+ :param request: The request sent to the server
+ :type request: ~azure.core.rest.HTTPRequest or LegacyHTTPRequest
+ :param httpx.Response httpx_response: The response object returned from
the HttpX library
+ :param ContextManager stream_contextmanager: The context manager to stream
response data.
+ """
+
def __init__(
- self, request: HttpRequest, httpx_response: httpx.Response,
stream_contextmanager: Optional[ContextManager]
+ self,
+ request: Union[HttpRequest, LegacyHttpRequest],
+ httpx_response: httpx.Response,
+ stream_contextmanager: Optional[ContextManager],
) -> None:
super().__init__(
request=request,
@@ -50,14 +61,33 @@
)
def read(self) -> bytes:
+ """Read the response's bytes.
+
+ :return: The response's bytes.
+ :rtype: bytes
+ """
if self._content is None:
self._content = self.internal_response.read()
return self.content
def body(self) -> bytes:
+ """Get the body of the response.
+
+ :return: The response's bytes.
+ :rtype: bytes
+ """
return self.internal_response.content
def stream_download(self, pipeline: Pipeline, **kwargs) -> Iterator[bytes]:
+ """Generator for streaming response data.
+
+ :param pipeline: The pipeline object
+ :type pipeline: ~azure.core.pipeline.Pipeline
+ :keyword bool decompress: If True which is default, will attempt to
decode the body based
+ on the *content-encoding* header.
+ :return: An iterator for streaming response data.
+ :rtype: Iterator[bytes]
+ """
return HttpXStreamDownloadGenerator(pipeline, self, **kwargs)
@@ -66,17 +96,21 @@
"""Generator for streaming response data.
:param pipeline: The pipeline object
+ :type pipeline: ~azure.core.pipeline.Pipeline
:param response: The response object.
+ :type response: HttpXTransportResponse
:keyword bool decompress: If True which is default, will attempt to decode
the body based
on the *content-encoding* header.
"""
- def __init__(self, pipeline: Pipeline, response: HttpXTransportResponse,
**kwargs) -> None:
+ def __init__(
+ self, pipeline: Pipeline, response: HttpXTransportResponse, *,
decompress: bool = True, **kwargs
+ ) -> None:
self.pipeline = pipeline
self.response = response
- decompress = kwargs.pop("decompress", True)
+ should_decompress = decompress
- if decompress:
+ if should_decompress:
self.iter_content_func =
self.response.internal_response.iter_bytes()
else:
self.iter_content_func = self.response.internal_response.iter_raw()
@@ -90,18 +124,32 @@
except StopIteration:
self.response.stream_contextmanager.__exit__(None, None, None)
raise
+ except httpx.DecodingError as ex:
+ if len(ex.args) > 0:
+ raise DecodeError(ex.args[0]) from ex
+ raise DecodeError("Failed to decode.") from ex
class HttpXTransport(HttpTransport):
"""Implements a basic httpx HTTP sender
:keyword httpx.Client client: HTTPX client to use instead of the default
one
+ :keyword bool client_owner: Decide if the client provided by user is owned
by this transport. Default to True.
+ :keyword bool use_env_settings: Uses proxy settings from environment.
Defaults to True.
"""
- def __init__(self, *, client: Optional[httpx.Client] = None, **kwargs:
Any) -> None:
+ def __init__(
+ self,
+ *,
+ client: Optional[httpx.Client] = None,
+ client_owner: bool = True,
+ use_env_settings: bool = True,
+ **kwargs: Any
+ ) -> None:
self.client = client
self.connection_config = ConnectionConfiguration(**kwargs)
- self._use_env_settings = kwargs.pop("use_env_settings", True)
+ self._client_owner = client_owner
+ self._use_env_settings = use_env_settings
def open(self) -> None:
if self.client is None:
@@ -112,7 +160,12 @@
)
def close(self) -> None:
- if self.client:
+ """Close the session.
+
+ :return: None
+ :rtype: None
+ """
+ if self._client_owner and self.client:
self.client.close()
self.client = None
@@ -123,7 +176,16 @@
def __exit__(self, *args) -> None:
self.close()
- def send(self, request: HttpRequest, **kwargs) -> HttpXTransportResponse:
+ def send(self, request: Union[HttpRequest, LegacyHttpRequest], **kwargs)
-> HttpXTransportResponse:
+ """Send a request and get back a response.
+
+ :param request: The request object to be sent.
+ :type request: ~azure.core.rest.HTTPRequest or LegacyHTTPRequest
+ :keyword bool stream: Whether to stream the response. Defaults to
False.
+ :return: An HTTPResponse object.
+ :rtype: ~azure.core.experimental.transport.HttpXTransportResponse
+ """
+ self.open()
stream_response = kwargs.pop("stream", False)
timeout = kwargs.pop("connection_timeout",
self.connection_config.timeout)
# not needed here as its already handled during init
@@ -153,8 +215,8 @@
httpx.ReadTimeout,
httpx.ProtocolError,
) as err:
- raise ServiceResponseError(err, error=err)
+ raise ServiceResponseError(err, error=err) from err
except httpx.RequestError as err:
- raise ServiceRequestError(err, error=err)
+ raise ServiceRequestError(err, error=err) from err
return HttpXTransportResponse(request, response,
stream_contextmanager=stream_ctx)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-core-experimental-1.0.0b3/azure/core/experimental/transport/_httpx_async.py
new/azure-core-experimental-1.0.0b4/azure/core/experimental/transport/_httpx_async.py
---
old/azure-core-experimental-1.0.0b3/azure/core/experimental/transport/_httpx_async.py
2023-07-10 02:16:32.000000000 +0200
+++
new/azure-core-experimental-1.0.0b4/azure/core/experimental/transport/_httpx_async.py
2023-08-07 20:24:02.000000000 +0200
@@ -23,20 +23,32 @@
# IN THE SOFTWARE.
#
# --------------------------------------------------------------------------
-from typing import ContextManager, Optional, Any, AsyncIterator
+from typing import Any, AsyncIterator, ContextManager, Optional, Union
import httpx
+from azure.core.configuration import ConnectionConfiguration
+from azure.core.exceptions import DecodeError, ServiceRequestError,
ServiceResponseError
from azure.core.pipeline import Pipeline
-
-from azure.core.exceptions import ServiceRequestError, ServiceResponseError
from azure.core.pipeline.transport import AsyncHttpTransport
+from azure.core.pipeline.transport import HttpRequest as LegacyHttpRequest
from azure.core.rest import HttpRequest
from azure.core.rest._http_response_impl_async import AsyncHttpResponseImpl
class AsyncHttpXTransportResponse(AsyncHttpResponseImpl):
+ """Async HttpX response implementation.
+
+ :param request: The request sent to the server
+ :type request: ~azure.core.rest.HTTPRequest or LegacyHTTPRequest
+ :param httpx.Response httpx_response: The response object returned from
HttpX library
+ :param ContextManager stream_contextmanager: The context manager to stream
response data.
+ """
+
def __init__(
- self, request: HttpRequest, httpx_response: httpx.Response,
stream_contextmanager: Optional[ContextManager]
+ self,
+ request: Union[HttpRequest, LegacyHttpRequest],
+ httpx_response: httpx.Response,
+ stream_contextmanager: Optional[ContextManager],
) -> None:
super().__init__(
request=request,
@@ -49,9 +61,23 @@
)
def body(self) -> bytes:
+ """Return the whole body as bytes.
+
+ :return: The whole body as bytes.
+ :rtype: bytes
+ """
return self.internal_response.content
def stream_download(self, pipeline: Pipeline, **kwargs: Any) ->
AsyncIterator[bytes]:
+ """Generator for streaming response data.
+
+ :param pipeline: The pipeline object
+ :type pipeline: ~azure.core.pipeline.Pipeline
+ :keyword bool decompress: If True which is default, will attempt to
decode the body based
+ on the *content-encoding* header.
+ :return: An iterator for streaming response data.
+ :rtype: AsyncIterator[bytes]
+ """
return AsyncHttpXStreamDownloadGenerator(pipeline, self, **kwargs)
async def load_body(self) -> None:
@@ -63,17 +89,21 @@
"""Generator for streaming response data.
:param pipeline: The pipeline object
+ :type pipeline: ~azure.core.pipeline.Pipeline
:param response: The response object.
+ :type response: AsyncHttpXTransportResponse
:keyword bool decompress: If True which is default, will attempt to decode
the body based
on the *content-encoding* header.
"""
- def __init__(self, pipeline: Pipeline, response:
AsyncHttpXTransportResponse, *_, **kwargs) -> None:
+ def __init__(
+ self, pipeline: Pipeline, response: AsyncHttpXTransportResponse, *,
decompress: bool = True, **kwargs
+ ) -> None:
self.pipeline = pipeline
self.response = response
- decompress = kwargs.pop("decompress", True)
+ should_decompress = decompress
- if decompress:
+ if should_decompress:
self.iter_content_func =
self.response.internal_response.aiter_bytes()
else:
self.iter_content_func =
self.response.internal_response.aiter_raw()
@@ -90,23 +120,43 @@
except StopAsyncIteration:
self.response.internal_response.close()
raise
+ except httpx.DecodingError as ex:
+ if len(ex.args) > 1:
+ raise DecodeError(ex.args[0]) from ex
+ raise DecodeError("Failed to decode.") from ex
class AsyncHttpXTransport(AsyncHttpTransport):
"""Implements a basic async httpx HTTP sender
:keyword httpx.AsyncClient client: HTTPX client to use instead of the
default one
+ :keyword bool client_owner: Decide if the client provided by user is owned
by this transport. Default to True.
+ :keyword bool use_env_settings: Uses proxy settings from environment.
Defaults to True.
"""
- def __init__(self, **kwargs: Any) -> None:
- self.client = kwargs.get("client", None)
+ def __init__(
+ self,
+ *,
+ client: Optional[httpx.AsyncClient] = None,
+ client_owner: bool = True,
+ use_env_settings: bool = True,
+ **kwargs: Any
+ ) -> None:
+ self.client = client
+ self.connection_config = ConnectionConfiguration(**kwargs)
+ self._client_owner = client_owner
+ self._use_env_settings = use_env_settings
async def open(self) -> None:
if self.client is None:
- self.client = httpx.AsyncClient()
+ self.client = httpx.AsyncClient(
+ trust_env=self._use_env_settings,
+ verify=self.connection_config.verify,
+ cert=self.connection_config.cert,
+ )
async def close(self) -> None:
- if self.client:
+ if self._client_owner and self.client:
await self.client.aclose()
self.client = None
@@ -117,7 +167,16 @@
async def __aexit__(self, *args) -> None:
await self.close()
- async def send(self, request: HttpRequest, **kwargs) ->
AsyncHttpXTransportResponse:
+ async def send(self, request: Union[HttpRequest, LegacyHttpRequest],
**kwargs) -> AsyncHttpXTransportResponse:
+ """Send the request using this HTTP sender.
+
+ :param request: The request object to be sent.
+ :type request: ~azure.core.rest.HttpRequest or LegacyHttpRequest
+ :keyword bool stream: Whether to stream the response. Defaults to
False.
+ :return: The response object.
+ :rtype: ~azure.core.experimental.transport.AsyncHttpXTransportResponse
+ """
+ await self.open()
stream_response = kwargs.pop("stream", False)
parameters = {
"method": request.method,
@@ -141,8 +200,8 @@
httpx.ReadTimeout,
httpx.ProtocolError,
) as err:
- raise ServiceResponseError(err, error=err)
+ raise ServiceResponseError(err, error=err) from err
except httpx.RequestError as err:
- raise ServiceRequestError(err, error=err)
+ raise ServiceRequestError(err, error=err) from err
return AsyncHttpXTransportResponse(request, response,
stream_contextmanager=stream_ctx)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-core-experimental-1.0.0b3/azure/core/experimental/transport/_pyodide.py
new/azure-core-experimental-1.0.0b4/azure/core/experimental/transport/_pyodide.py
---
old/azure-core-experimental-1.0.0b3/azure/core/experimental/transport/_pyodide.py
2023-07-10 02:16:32.000000000 +0200
+++
new/azure-core-experimental-1.0.0b4/azure/core/experimental/transport/_pyodide.py
2023-08-07 20:24:02.000000000 +0200
@@ -29,31 +29,45 @@
import js # pylint: disable=import-error
from pyodide import JsException # pylint: disable=import-error
-from pyodide.http import pyfetch # pylint: disable=import-error
+from pyodide.http import pyfetch, FetchResponse # pylint: disable=import-error
from azure.core.exceptions import HttpResponseError
from azure.core.pipeline import Pipeline
from azure.core.utils import CaseInsensitiveDict
from azure.core.rest._http_response_impl_async import AsyncHttpResponseImpl
-from azure.core.pipeline.transport import HttpRequest, AsyncioRequestsTransport
+from azure.core.pipeline.transport import ( # pylint:
disable=non-abstract-transport-import, no-name-in-module
+ HttpRequest,
+ AsyncioRequestsTransport,
+)
class PyodideTransportResponse(AsyncHttpResponseImpl):
"""Async response object for the `PyodideTransport`."""
- def _js_stream(self):
- """So we get a fresh stream every time."""
+ def _js_stream(self) -> FetchResponse:
+ """So we get a fresh stream every time.
+
+ :return: The stream stream
+ :rtype: ~pyodide.http.FetchResponse
+ """
return self._internal_response.clone().js_response.body
async def close(self) -> None:
"""We don't actually have control over closing connections in the
browser, so we just pretend
to close.
+
+ :return: None
+ :rtype: None
"""
self._is_closed = True
def body(self) -> bytes:
- """The body is just the content."""
+ """The body is just the content.
+
+ :return: The body of the response.
+ :rtype: bytes
+ """
return self.content
async def load_body(self) -> None:
@@ -65,6 +79,11 @@
class PyodideStreamDownloadGenerator(AsyncIterator):
"""Simple stream download generator that returns the contents of
a request.
+
+ :param pipeline: The pipeline object
+ :type pipeline: ~azure.core.pipeline.Pipeline
+ :param response: The response object
+ :type response: ~azure.core.experimental.transport.PyodideTransportResponse
"""
# pylint: disable=unused-argument
@@ -85,7 +104,11 @@
self.done = False
async def __anext__(self) -> bytes:
- """Get the next block of bytes."""
+ """Get the next block of bytes.
+
+ :return: The next block of bytes.
+ :rtype: bytes
+ """
if self._closed:
raise StopAsyncIteration()
@@ -140,7 +163,7 @@
try:
response = await pyfetch(endpoint, **init)
except JsException as error:
- raise HttpResponseError(error, error=error)
+ raise HttpResponseError(error, error=error) from error
headers = CaseInsensitiveDict(response.js_response.headers)
transport_response = PyodideTransportResponse(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-core-experimental-1.0.0b3/azure_core_experimental.egg-info/PKG-INFO
new/azure-core-experimental-1.0.0b4/azure_core_experimental.egg-info/PKG-INFO
---
old/azure-core-experimental-1.0.0b3/azure_core_experimental.egg-info/PKG-INFO
2023-07-10 02:17:40.000000000 +0200
+++
new/azure-core-experimental-1.0.0b4/azure_core_experimental.egg-info/PKG-INFO
2023-08-07 20:25:02.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: azure-core-experimental
-Version: 1.0.0b3
+Version: 1.0.0b4
Summary: Microsoft Azure Core Experimental Library for Python
Home-page:
https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core-experimental
Author: Microsoft Corporation
@@ -49,6 +49,13 @@
# Release History
+## 1.0.0b4 (2023-08-03)
+
+### Bugs Fixed
+
+- Create new httpx client when used without "with"
([#31362](https://github.com/Azure/azure-sdk-for-python/pull/31370))
+- Fix httpx sample with right API name
+
## 1.0.0b3 (2023-07-06)
### Bug Fixes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-core-experimental-1.0.0b3/samples/httpx_integration/httpx_transport_sample.py
new/azure-core-experimental-1.0.0b4/samples/httpx_integration/httpx_transport_sample.py
---
old/azure-core-experimental-1.0.0b3/samples/httpx_integration/httpx_transport_sample.py
2023-07-10 02:16:32.000000000 +0200
+++
new/azure-core-experimental-1.0.0b4/samples/httpx_integration/httpx_transport_sample.py
2023-08-07 20:24:02.000000000 +0200
@@ -19,11 +19,17 @@
text_analytics_client = TextAnalyticsClient(
endpoint=endpoint,
- credential=credential,
+ credential=AzureKeyCredential(key),
transport=HttpXTransport(),
)
-document = ["This is an example document."]
-
-poller = text_analytics_client.begin_abstractive_summary(document)
-abstractive_summary_results = poller.result()
+with text_analytics_client:
+ document = ["This is an example document."]
+ poller = text_analytics_client.begin_abstract_summary(document)
+ abstract_summary_results = poller.result()
+ for result in abstract_summary_results:
+ if result.kind == "AbstractiveSummarization":
+ print("Summaries abstracted:")
+ [print(f"{summary.text}\n") for summary in result.summaries]
+ elif result.is_error is True:
+ print("...Is an error with code '{}' and message
'{}'".format(result.error.code, result.error.message))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-core-experimental-1.0.0b3/samples/httpx_integration/httpx_transport_sample_async.py
new/azure-core-experimental-1.0.0b4/samples/httpx_integration/httpx_transport_sample_async.py
---
old/azure-core-experimental-1.0.0b3/samples/httpx_integration/httpx_transport_sample_async.py
2023-07-10 02:16:32.000000000 +0200
+++
new/azure-core-experimental-1.0.0b4/samples/httpx_integration/httpx_transport_sample_async.py
2023-08-07 20:24:02.000000000 +0200
@@ -29,7 +29,7 @@
document = ["This is an example document."]
async with text_analytics_client:
- poller = await
text_analytics_client.begin_abstractive_summary(document)
+ poller = await text_analytics_client.begin_abstract_summary(document)
abstractive_summary_results = await poller.result()
async for result in abstractive_summary_results:
if result.kind == "AbstractiveSummarization":