diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 7a4ea1d1..ae2a1ea3 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.3.1" + ".": "1.3.2" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 852469aa..105607a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. +## [1.3.2](https://github.com/microsoftgraph/msgraph-sdk-python-core/compare/v1.3.1...v1.3.2) (2025-02-25) + + +### Bug Fixes + +* Batch building bugs ([#837](https://github.com/microsoftgraph/msgraph-sdk-python-core/issues/837)) ([a0dd3c1](https://github.com/microsoftgraph/msgraph-sdk-python-core/commit/a0dd3c18d39f9cadbba25109345ee7be8a810a99)) + ## [1.3.1](https://github.com/microsoftgraph/msgraph-sdk-python-core/compare/v1.3.0...v1.3.1) (2025-02-06) diff --git a/pyproject.toml b/pyproject.toml index 05a348c6..1524fd60 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta" name = "msgraph-core" # The SDK version # x-release-please-start-version -version = "1.3.1" +version = "1.3.2" # x-release-please-end authors = [{name = "Microsoft", email = "graphtooling+python@microsoft.com"}] description = "Core component of the Microsoft Graph Python SDK" diff --git a/requirements-dev.txt b/requirements-dev.txt index 1ccba253..2588fc58 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -8,7 +8,7 @@ attrs==25.1.0 ; python_version >= '3.7' azure-core==1.32.0 ; python_version >= '3.7' -azure-identity==1.19.0 +azure-identity==1.20.0 build==1.2.2.post1 @@ -26,7 +26,7 @@ colorama==0.4.6 ; os_name == 'nt' coverage[toml]==7.6.1 ; python_version >= '3.7' -cryptography==44.0.0 ; python_version >= '3.7' +cryptography==44.0.1 ; python_version >= '3.7' dill==0.3.9 ; python_version < '3.11' @@ -108,7 +108,7 @@ tomli==2.2.1 ; python_version < '3.11' tomlkit==0.13.2 ; python_version >= '3.7' -trio==0.27.0 +trio==0.29.0 types-python-dateutil==2.9.0.20241206 diff --git a/src/msgraph_core/_constants.py b/src/msgraph_core/_constants.py index 23e148fb..0ce94866 100644 --- a/src/msgraph_core/_constants.py +++ b/src/msgraph_core/_constants.py @@ -10,6 +10,6 @@ DEFAULT_CONNECTION_TIMEOUT = 30 # The SDK version # x-release-please-start-version -SDK_VERSION = '1.3.1' +SDK_VERSION = '1.3.2' # x-release-please-end MS_DEFAULT_SCOPE = 'https://graph.microsoft.com/.default' diff --git a/src/msgraph_core/requests/batch_request_builder.py b/src/msgraph_core/requests/batch_request_builder.py index ab544c7c..5bf647cf 100644 --- a/src/msgraph_core/requests/batch_request_builder.py +++ b/src/msgraph_core/requests/batch_request_builder.py @@ -31,7 +31,7 @@ def __init__( if request_adapter is None: raise ValueError("request_adapter cannot be Null.") self._request_adapter = request_adapter - self.url_template = f"{self._request_adapter.base_url}/$batch" + self.url_template = f"{self._request_adapter.base_url.removesuffix('/')}/$batch" self.error_map = error_map or {} async def post( diff --git a/src/msgraph_core/requests/batch_request_content.py b/src/msgraph_core/requests/batch_request_content.py index 0235df8a..fad6053d 100644 --- a/src/msgraph_core/requests/batch_request_content.py +++ b/src/msgraph_core/requests/batch_request_content.py @@ -125,7 +125,7 @@ def finalize(self): Finalizes the batch request content. """ self.is_finalized = True - return self._requests + return self def _request_by_id(self, request_id: str) -> Optional[BatchRequestItem]: """ diff --git a/tests/requests/test_batch_request_content.py b/tests/requests/test_batch_request_content.py index 81cac044..21554644 100644 --- a/tests/requests/test_batch_request_content.py +++ b/tests/requests/test_batch_request_content.py @@ -88,9 +88,9 @@ def test_add_urllib_request(batch_request_content): def test_finalize(batch_request_content): - finalized_requests = batch_request_content.finalize() + finalized_batch_request_content = batch_request_content.finalize() assert batch_request_content.is_finalized - assert finalized_requests == batch_request_content.requests + assert finalized_batch_request_content.requests == batch_request_content.requests def test_create_from_discriminator_value():