pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py-azure-core: update to 1.25.0.
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By: wiz
Date: Thu Aug 25 00:07:25 2022 +0200
Changeset: a8ac2d56e4a8f54f6ab6460025059f26bb9a41c6
Modified Files:
py-azure-core/Makefile
py-azure-core/PLIST
py-azure-core/distinfo
Log Message:
py-azure-core: update to 1.25.0.
Azure-core is supported on Python 3.7 or later. For more details, please read our page on [Azure SDK for Python version support policy](https://github.com/Azure/azure-sdk-for-python/wiki/Azure-SDKs-Python-version-support-policy).
- Added `CaseInsensitiveDict` implementation in `azure.core.utils` removing dependency on `requests` and `aiohttp`
- Fixed the bug that azure-core could not be imported under Python 3.11.0b3 #24928
- `ContentDecodePolicy` can now correctly deserialize more JSON bodies with different mime types #22410
- Declare method level span as INTERNAL by default #24492
- Fixed type hints for `azure.core.paging.ItemPaged` #24548
- Add `SerializationError` and `DeserializationError` in `azure.core.exceptions` for errors raised during serialization / deserialization #24312
- Allow stream inputs to the `content` kwarg of `azure.core.rest.HttpRequest` from objects with a `read` method #23578
- Improve intellisense type hinting for service client methods. #22891
- Add a case insensitive dict `case_insensitive_dict` in `azure.core.utils`. #23206
- Use "\n" rather than "/n" for new line in log. #23261
- Log "WWW-Authenticate" header in `HttpLoggingPolicy` #22990
- Added dependency on `typing-extensions` >= 4.0.1
- Limiting `final-state-via` scope to POST until consuming SDKs has been fixed to use this option properly on PUT. #22989
_[**This version is deprecated.**]_
- Add support for `final-state-via` LRO option in core. #22713
- Add response body to string representation of `HttpResponseError` if we're not able to parse out information #22302
- Raise `AttributeError` when calling azure.core.pipeline.transport.\_\_bases__ #22469
- Python 2.7 is no longer supported. Please use Python version 3.6 or later.
- Revert change in str method #22023
- Sync stream downloading now raises `azure.core.exceptions.DecodeError` rather than `requests.exceptions.ContentDecodingError`
- Add response body to string representation of `HttpResponseError` if we're not able to parse out information #21800
- Correctly set response's content to decompressed body when users are using aiohttp transport with decompression headers #21620
- GA `send_request` onto the `azure.core.PipelineClient` and `azure.core.AsyncPipelineClient`. This method takes in
requests and sends them through our pipelines.
- GA `azure.core.rest`. `azure.core.rest` is our new public simple HTTP library in `azure.core` that users will use to create requests, and consume responses.
- GA errors `StreamConsumedError`, `StreamClosedError`, and `ResponseNotReadError` to `azure.core.exceptions`. These errors
are thrown if you mishandle streamed responses from the `azure.core.rest` module
- add kwargs to the methods for `iter_raw` and `iter_bytes` #21529
- no longer raise JSON errors if users pass in file descriptors of JSON to the `json` kwarg in `HttpRequest` #21504
- Added new error type `IncompleteReadError` which is raised if peer closes the connection before we have received the complete message body.
- SansIOHTTPPolicy.on_exception returns None instead of bool.
- The `Content-Length` header in a http response is strictly checked against the actual number of bytes in the body,
rather than silently truncating data in case the underlying tcp connection is closed prematurely.
(thanks to @jochen-ott-by for the contribution) #20412
- UnboundLocalError when SansIOHTTPPolicy handles an exception #15222
- Add default content type header of `text/plain` and content length header for users who pass unicode strings to the `content` kwarg of `HttpRequest` in 2.7 #21550
- respect text encoding specified in argument (thanks to @ryohji for the contribution) #20796
- Fix "coroutine x.read() was never awaited" warning from `ContentDecodePolicy` #21318
- fix type check for `data` input to `azure.core.rest` for python 2.7 users #21341
- use `charset_normalizer` if `chardet` is not installed to migrate aiohttp 3.8.0 changes.
- Refactor AzureJSONEncoder (thanks to @Codejune for the contribution) #21028
- `azure.core.rest.HttpResponse` and `azure.core.rest.AsyncHttpResponse` are now abstract base classes. They should not be initialized directly, instead
your transport responses should inherit from them and implement them.
- The properties of the `azure.core.rest` responses are now all read-only
- HttpLoggingPolicy integrates logs into one record #19925
- `azure.core.serialization.AzureJSONEncoder` (introduced in 1.17.0) serializes `datetime.datetime` objects in ISO 8601 format, conforming to RFC 3339's specification. #20190
- We now use `azure.core.serialization.AzureJSONEncoder` to serialize `json` input to `azure.core.rest.HttpRequest`.
- The `text` property on `azure.core.rest.HttpResponse` and `azure.core.rest.AsyncHttpResponse` has changed to a method, which also takes
an `encoding` parameter.
- Removed `iter_text` and `iter_lines` from `azure.core.rest.HttpResponse` and `azure.core.rest.AsyncHttpResponse`
- The behaviour of the headers returned in `azure.core.rest` responses now aligns across sync and async. Items can now be checked case-insensitively and without raising an error for format.
- Cut hard dependency on requests library
- Added a `from_json` method which now accepts storage QueueMessage, eventhub's EventData or ServiceBusMessage or simply json bytes to return a `CloudEvent`
- Not override "x-ms-client-request-id" if it already exists in the header. #17757
- `azure.core.rest` will not try to guess the `charset` anymore if it was impossible to extract it from `HttpResponse` analysis. This removes our dependency on `charset`.
- Add new ***provisional*** methods `send_request` onto the `azure.core.PipelineClient` and `azure.core.AsyncPipelineClient`. This method takes in
requests and sends them through our pipelines.
- Add new ***provisional*** module `azure.core.rest`. `azure.core.rest` is our new public simple HTTP library in `azure.core` that users will use to create requests, and consume responses.
- Add new ***provisional*** errors `StreamConsumedError`, `StreamClosedError`, and `ResponseNotReadError` to `azure.core.exceptions`. These errors
are thrown if you mishandle streamed responses from the provisional `azure.core.rest` module
- Improved error message in the `from_dict` method of `CloudEvent` when a wrong schema is sent.
- Added `BearerTokenCredentialPolicy.on_challenge` and `.authorize_request` to allow subclasses to optionally handle authentication challenges
- Retry policies don't sleep after operations time out
- The `from_dict` methhod in the `CloudEvent` can now convert a datetime string to datetime object when microsecond exceeds the python limitation
- Added `azure.core.credentials.AzureNamedKeyCredential` credential #17548.
- Added `decompress` parameter for `stream_download` method. If it is set to `False`, will not do decompression upon the stream. #17920
Azure core requires Python 2.7 or Python 3.6+ since this release.
- Added `azure.core.utils.parse_connection_string` function to parse connection strings across SDKs, with common validation and support for case insensitive keys.
- Supported adding custom policies #16519
- Added `~azure.core.tracing.Link` that should be used while passing `Links` to `AbstractSpan`.
- `AbstractSpan` constructor can now take in additional keyword only args.
- Make NetworkTraceLoggingPolicy show the auth token in plain text. #14191
- Fixed RetryPolicy overriding default connection timeout with an extreme value #17481
This version will be the last version to officially support Python 3.5, future versions will require Python 2.7 or Python 3.6+.
- Added `azure.core.messaging.CloudEvent` model that follows the cloud event spec.
- Added `azure.core.serialization.NULL` sentinel value
- Improve `repr`s for `HttpRequest` and `HttpResponse`s #16972
- Disable retry in stream downloading. (thanks to @jochen-ott-by @hoffmann for the contribution) #16723
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a8ac2d56e4a8f54f6ab6460025059f26bb9a41c6
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-azure-core/Makefile | 18 +++++++++++++++--
py-azure-core/PLIST | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++
py-azure-core/distinfo | 6 +++---
3 files changed, 73 insertions(+), 5 deletions(-)
diffs:
diff --git a/py-azure-core/Makefile b/py-azure-core/Makefile
index ac98b4a24d..27c4727e00 100644
--- a/py-azure-core/Makefile
+++ b/py-azure-core/Makefile
@@ -1,18 +1,32 @@
# $NetBSD$
-DISTNAME= azure-core-1.11.0
+DISTNAME= azure-core-1.25.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_PYPI:=a/azure-core/}
EXTRACT_SUFX= .zip
MAINTAINER= kamelderouiche%yahoo.com@localhost
-HOMEPAGE= https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/core/azure-core
+HOMEPAGE= https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core
COMMENT= Microsoft Azure Core Library for Python
LICENSE= mit
DEPENDS+= ${PYPKGPREFIX}-requests>=2.18.4:../../devel/py-requests
DEPENDS+= ${PYPKGPREFIX}-six>=1.11.0:../../lang/py-six
+DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=4.0.1:../../devel/py-typing-extensions
+#TEST_DEPENDS+= ${PYPKGPREFIX}-aiohttp>=0:../../www/py-aiohttp
+#TEST_DEPENDS+= ${PYPKGPREFIX}-trio>=0:../../devel/py-trio
+#TEST_DEPENDS+= ${PYPKGPREFIX}-msrest>=0:../../wip/py-msrest
+#TEST_DEPENDS+= ${PYPKGPREFIX}-test>=0:../../devel/py-test
+
+USE_LANGUAGES= # none
+
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
+# tests not intended to be run from pypi
+# https://github.com/Azure/azure-sdk-for-python/issues/9616
+do-test:
+ # cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/py-azure-core/PLIST b/py-azure-core/PLIST
index 8ffdc9d395..e1d8211ce8 100644
--- a/py-azure-core/PLIST
+++ b/py-azure-core/PLIST
@@ -32,6 +32,9 @@ ${PYSITELIB}/azure/core/credentials_async.pyo
${PYSITELIB}/azure/core/exceptions.py
${PYSITELIB}/azure/core/exceptions.pyc
${PYSITELIB}/azure/core/exceptions.pyo
+${PYSITELIB}/azure/core/messaging.py
+${PYSITELIB}/azure/core/messaging.pyc
+${PYSITELIB}/azure/core/messaging.pyo
${PYSITELIB}/azure/core/paging.py
${PYSITELIB}/azure/core/paging.pyc
${PYSITELIB}/azure/core/paging.pyo
@@ -132,6 +135,39 @@ ${PYSITELIB}/azure/core/polling/base_polling.py
${PYSITELIB}/azure/core/polling/base_polling.pyc
${PYSITELIB}/azure/core/polling/base_polling.pyo
${PYSITELIB}/azure/core/py.typed
+${PYSITELIB}/azure/core/rest/__init__.py
+${PYSITELIB}/azure/core/rest/__init__.pyc
+${PYSITELIB}/azure/core/rest/__init__.pyo
+${PYSITELIB}/azure/core/rest/_aiohttp.py
+${PYSITELIB}/azure/core/rest/_aiohttp.pyc
+${PYSITELIB}/azure/core/rest/_aiohttp.pyo
+${PYSITELIB}/azure/core/rest/_helpers.py
+${PYSITELIB}/azure/core/rest/_helpers.pyc
+${PYSITELIB}/azure/core/rest/_helpers.pyo
+${PYSITELIB}/azure/core/rest/_http_response_impl.py
+${PYSITELIB}/azure/core/rest/_http_response_impl.pyc
+${PYSITELIB}/azure/core/rest/_http_response_impl.pyo
+${PYSITELIB}/azure/core/rest/_http_response_impl_async.py
+${PYSITELIB}/azure/core/rest/_http_response_impl_async.pyc
+${PYSITELIB}/azure/core/rest/_http_response_impl_async.pyo
+${PYSITELIB}/azure/core/rest/_requests_asyncio.py
+${PYSITELIB}/azure/core/rest/_requests_asyncio.pyc
+${PYSITELIB}/azure/core/rest/_requests_asyncio.pyo
+${PYSITELIB}/azure/core/rest/_requests_basic.py
+${PYSITELIB}/azure/core/rest/_requests_basic.pyc
+${PYSITELIB}/azure/core/rest/_requests_basic.pyo
+${PYSITELIB}/azure/core/rest/_requests_trio.py
+${PYSITELIB}/azure/core/rest/_requests_trio.pyc
+${PYSITELIB}/azure/core/rest/_requests_trio.pyo
+${PYSITELIB}/azure/core/rest/_rest.py
+${PYSITELIB}/azure/core/rest/_rest.pyc
+${PYSITELIB}/azure/core/rest/_rest.pyo
+${PYSITELIB}/azure/core/rest/_rest_py3.py
+${PYSITELIB}/azure/core/rest/_rest_py3.pyc
+${PYSITELIB}/azure/core/rest/_rest_py3.pyo
+${PYSITELIB}/azure/core/serialization.py
+${PYSITELIB}/azure/core/serialization.pyc
+${PYSITELIB}/azure/core/serialization.pyo
${PYSITELIB}/azure/core/settings.py
${PYSITELIB}/azure/core/settings.pyc
${PYSITELIB}/azure/core/settings.pyo
@@ -153,6 +189,24 @@ ${PYSITELIB}/azure/core/tracing/decorator_async.pyo
${PYSITELIB}/azure/core/tracing/ext/__init__.py
${PYSITELIB}/azure/core/tracing/ext/__init__.pyc
${PYSITELIB}/azure/core/tracing/ext/__init__.pyo
+${PYSITELIB}/azure/core/utils/__init__.py
+${PYSITELIB}/azure/core/utils/__init__.pyc
+${PYSITELIB}/azure/core/utils/__init__.pyo
+${PYSITELIB}/azure/core/utils/_connection_string_parser.py
+${PYSITELIB}/azure/core/utils/_connection_string_parser.pyc
+${PYSITELIB}/azure/core/utils/_connection_string_parser.pyo
+${PYSITELIB}/azure/core/utils/_messaging_shared.py
+${PYSITELIB}/azure/core/utils/_messaging_shared.pyc
+${PYSITELIB}/azure/core/utils/_messaging_shared.pyo
+${PYSITELIB}/azure/core/utils/_pipeline_transport_rest_shared.py
+${PYSITELIB}/azure/core/utils/_pipeline_transport_rest_shared.pyc
+${PYSITELIB}/azure/core/utils/_pipeline_transport_rest_shared.pyo
+${PYSITELIB}/azure/core/utils/_pipeline_transport_rest_shared_async.py
+${PYSITELIB}/azure/core/utils/_pipeline_transport_rest_shared_async.pyc
+${PYSITELIB}/azure/core/utils/_pipeline_transport_rest_shared_async.pyo
+${PYSITELIB}/azure/core/utils/_utils.py
+${PYSITELIB}/azure/core/utils/_utils.pyc
+${PYSITELIB}/azure/core/utils/_utils.pyo
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
diff --git a/py-azure-core/distinfo b/py-azure-core/distinfo
index 2da49d083e..be08bd2660 100644
--- a/py-azure-core/distinfo
+++ b/py-azure-core/distinfo
@@ -1,5 +1,5 @@
$NetBSD$
-RMD160 (azure-core-1.11.0.zip) = a796d89753b3808758421624725ef23b14f778d3
-SHA512 (azure-core-1.11.0.zip) = 76ed8b735708bdc2cebe7823394733c7641e5a07d03b3ecb5f2c205b790b31bda1452f1d10a6406452ed47e51c1d1df65b58b5bbb476309aa668e46b2d05f6fc
-Size (azure-core-1.11.0.zip) = 230176 bytes
+BLAKE2s (azure-core-1.25.0.zip) = 23bb5a982e653644223825daefbc8538962a42d729a6345815eda50af0ccd504
+SHA512 (azure-core-1.25.0.zip) = 5e789c7bb6411d3e6c8d9d8549a9f397e465f326c067ce37f78d7b75854d0b03101fb72cc273b2e2ccf43f7c00dbc8125f49f9fa75560d1c8f95887f909c0585
+Size (azure-core-1.25.0.zip) = 373353 bytes
Home |
Main Index |
Thread Index |
Old Index