From efb08aac6430204215f1fe3378a05e5f2d52bf0c Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Wed, 19 Jun 2024 08:57:40 -0400 Subject: [PATCH 01/22] chore: removes unnecessary release step handled by release please --- .github/workflows/publish.yml | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7b2793d9..b2f72ea3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,9 +5,6 @@ on: tags: - "v*" # Push events to matching v*, i.e. v1.0, v20.15.10 -permissions: - contents: write - jobs: build: uses: ./.github/workflows/build.yml @@ -36,18 +33,3 @@ jobs: with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} - - release: - name: Create release - runs-on: ubuntu-latest - needs: [publish] - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Extract release notes - id: extract-release-notes - uses: ffurrer2/extract-release-notes@v2 - - name: Create release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: gh release create --notes '${{ steps.extract-release-notes.outputs.release_notes }}' --title ${{ github.ref_name }} ${{ github.ref_name }} From 50e08c211dc375d1c444108629f8ce73ab167b84 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 20 Jun 2024 04:03:44 +0000 Subject: [PATCH 02/22] chore(deps-dev): bump setuptools from 70.0.0 to 70.1.0 Bumps [setuptools](https://github.com/pypa/setuptools) from 70.0.0 to 70.1.0. - [Release notes](https://github.com/pypa/setuptools/releases) - [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst) - [Commits](https://github.com/pypa/setuptools/compare/v70.0.0...v70.1.0) --- updated-dependencies: - dependency-name: setuptools dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 06ee8ffe..3fb926d5 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -92,7 +92,7 @@ pywin32==306 ; platform_system == 'Windows' requests==2.32.3 ; python_version >= '3.7' -setuptools==70.0.0 +setuptools==70.1.0 six==1.16.0 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' From e36c17424c9d443bdfeafc32f32682529ce25f95 Mon Sep 17 00:00:00 2001 From: Faith Kangai Date: Thu, 20 Jun 2024 16:40:00 +0300 Subject: [PATCH 03/22] remove label waiting for author feedback if issue closes (#608) --- .github/policies/resourceManagement.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/policies/resourceManagement.yml b/.github/policies/resourceManagement.yml index 14990c61..370f5d2d 100644 --- a/.github/policies/resourceManagement.yml +++ b/.github/policies/resourceManagement.yml @@ -57,6 +57,16 @@ configuration: reply: This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes. - closeIssue eventResponderTasks: + - if: + - payloadType: Issues + - isAction: + action: Closed + - hasLabel: + label: 'status:waiting-for-author-feedback' + then: + - removeLabel: + label: 'status:waiting-for-author-feedback' + description: - if: - payloadType: Issue_Comment - isAction: From 5e580759ddddf04c3a5e0f112ade2677bef06925 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Jun 2024 04:58:13 +0000 Subject: [PATCH 04/22] chore(deps-dev): bump azure-identity from 1.17.0 to 1.17.1 Bumps [azure-identity](https://github.com/Azure/azure-sdk-for-python) from 1.17.0 to 1.17.1. - [Release notes](https://github.com/Azure/azure-sdk-for-python/releases) - [Changelog](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/esrp_release.md) - [Commits](https://github.com/Azure/azure-sdk-for-python/compare/azure-identity_1.17.0...azure-identity_1.17.1) --- updated-dependencies: - dependency-name: azure-identity dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 3fb926d5..077a4bf6 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -8,7 +8,7 @@ attrs==23.2.0 ; python_version >= '3.7' azure-core==1.30.2 ; python_version >= '3.7' -azure-identity==1.17.0 +azure-identity==1.17.1 build==1.2.1 From abb70c1cbd25ab0de3ab6fbf7b45c4d051361d40 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Jun 2024 06:28:53 +0000 Subject: [PATCH 05/22] chore(deps-dev): bump msal from 1.28.1 to 1.29.0 Bumps [msal](https://github.com/AzureAD/microsoft-authentication-library-for-python) from 1.28.1 to 1.29.0. - [Release notes](https://github.com/AzureAD/microsoft-authentication-library-for-python/releases) - [Commits](https://github.com/AzureAD/microsoft-authentication-library-for-python/compare/1.28.1...1.29.0) --- updated-dependencies: - dependency-name: msal dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 077a4bf6..e40709d1 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -50,7 +50,7 @@ mccabe==0.7.0 ; python_version >= '3.6' mock==5.1.0 ; python_version >= '3.6' -msal==1.28.1 +msal==1.29.0 msal-extensions==1.1.0 From 7b085ca3ffb7f3153fe180b276380c30310a5a63 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Jun 2024 09:11:39 +0000 Subject: [PATCH 06/22] chore(deps-dev): bump msal-extensions from 1.1.0 to 1.2.0 Bumps [msal-extensions](https://github.com/AzureAD/microsoft-authentication-extensions-for-python) from 1.1.0 to 1.2.0. - [Release notes](https://github.com/AzureAD/microsoft-authentication-extensions-for-python/releases) - [Commits](https://github.com/AzureAD/microsoft-authentication-extensions-for-python/compare/1.1.0...1.2.0) --- updated-dependencies: - dependency-name: msal-extensions dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index e40709d1..2e1cc4ff 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -52,7 +52,7 @@ mock==5.1.0 ; python_version >= '3.6' msal==1.29.0 -msal-extensions==1.1.0 +msal-extensions==1.2.0 mypy==1.10.0 From 1cfa6bf03b50809476d2f5dca19d9d4d88067707 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Jun 2024 09:13:20 +0000 Subject: [PATCH 07/22] chore(deps-dev): bump coverage[toml] from 7.5.3 to 7.5.4 Bumps [coverage[toml]](https://github.com/nedbat/coveragepy) from 7.5.3 to 7.5.4. - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](https://github.com/nedbat/coveragepy/compare/7.5.3...7.5.4) --- updated-dependencies: - dependency-name: coverage[toml] dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index e40709d1..92269b85 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -24,7 +24,7 @@ click==8.1.7 ; python_version >= '3.6' colorama==0.4.6 ; os_name == 'nt' -coverage[toml]==7.5.3 ; python_version >= '3.7' +coverage[toml]==7.5.4 ; python_version >= '3.7' cryptography==42.0.8 ; python_version >= '3.7' From 50cfc342db9c57c753a7e3db5fe900bff3852986 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Jun 2024 09:23:39 +0000 Subject: [PATCH 08/22] chore(deps-dev): bump portalocker from 2.8.2 to 2.10.0 Bumps [portalocker](https://github.com/wolph/portalocker) from 2.8.2 to 2.10.0. - [Release notes](https://github.com/wolph/portalocker/releases) - [Changelog](https://github.com/wolph/portalocker/blob/develop/CHANGELOG.rst) - [Commits](https://github.com/wolph/portalocker/compare/v2.8.2...v2.10.0) --- updated-dependencies: - dependency-name: portalocker dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 4901d772..5728b2c8 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -68,7 +68,7 @@ platformdirs==4.2.2 ; python_version >= '3.7' pluggy==1.5.0 ; python_version >= '3.7' -portalocker==2.8.2 ; python_version >= '3.5' and platform_system == 'Windows' +portalocker==2.10.0 ; python_version >= '3.5' and platform_system == 'Windows' pycparser==2.22 From 8165ff27eb074453b62cd52cd711d54a335e2faf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Jun 2024 09:26:08 +0000 Subject: [PATCH 09/22] chore(deps-dev): bump types-requests Bumps [types-requests](https://github.com/python/typeshed) from 2.32.0.20240602 to 2.32.0.20240622. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-requests dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 5728b2c8..0e6f6a42 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -110,7 +110,7 @@ trio==0.25.1 types-python-dateutil==2.9.0.20240316 -types-requests==2.32.0.20240602; python_version >= '3.7' +types-requests==2.32.0.20240622; python_version >= '3.7' urllib3==2.2.2 ; python_version >= '3.7' typing-extensions==4.12.2 ; python_version >= '3.7' From b3168f261abbdbc7eed6824c7c39fedbf9920065 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 25 Jun 2024 04:48:07 +0000 Subject: [PATCH 10/22] chore(deps-dev): bump mypy from 1.10.0 to 1.10.1 Bumps [mypy](https://github.com/python/mypy) from 1.10.0 to 1.10.1. - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.10.0...v1.10.1) --- updated-dependencies: - dependency-name: mypy dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 0e6f6a42..cafc43ac 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -54,7 +54,7 @@ msal==1.29.0 msal-extensions==1.2.0 -mypy==1.10.0 +mypy==1.10.1 mypy-extensions==1.0.0 ; python_version >= '3.5' From 345d9b5cd54f415bf742df97b4762d7a466b628e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 26 Jun 2024 04:27:55 +0000 Subject: [PATCH 11/22] chore(deps-dev): bump setuptools from 70.1.0 to 70.1.1 Bumps [setuptools](https://github.com/pypa/setuptools) from 70.1.0 to 70.1.1. - [Release notes](https://github.com/pypa/setuptools/releases) - [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst) - [Commits](https://github.com/pypa/setuptools/compare/v70.1.0...v70.1.1) --- updated-dependencies: - dependency-name: setuptools dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index cafc43ac..0b9411cc 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -92,7 +92,7 @@ pywin32==306 ; platform_system == 'Windows' requests==2.32.3 ; python_version >= '3.7' -setuptools==70.1.0 +setuptools==70.1.1 six==1.16.0 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' From ad49226026ea472094dbde8ee26d3b97273f63ef Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 27 Jun 2024 04:22:52 +0000 Subject: [PATCH 12/22] chore(deps-dev): bump pylint from 3.2.3 to 3.2.4 Bumps [pylint](https://github.com/pylint-dev/pylint) from 3.2.3 to 3.2.4. - [Release notes](https://github.com/pylint-dev/pylint/releases) - [Commits](https://github.com/pylint-dev/pylint/compare/v3.2.3...v3.2.4) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 0b9411cc..e411bc84 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -74,7 +74,7 @@ pycparser==2.22 pyjwt[crypto]==2.8.0 ; python_version >= '3.7' -pylint==3.2.3 +pylint==3.2.4 pyproject-hooks==1.1.0 ; python_version >= '3.7' From 79f6356e830c2e0c222a8a39f7971039c4e2d428 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 04:10:01 +0000 Subject: [PATCH 13/22] chore(deps-dev): bump pylint from 3.2.4 to 3.2.5 Bumps [pylint](https://github.com/pylint-dev/pylint) from 3.2.4 to 3.2.5. - [Release notes](https://github.com/pylint-dev/pylint/releases) - [Commits](https://github.com/pylint-dev/pylint/compare/v3.2.4...v3.2.5) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index e411bc84..1380980f 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -74,7 +74,7 @@ pycparser==2.22 pyjwt[crypto]==2.8.0 ; python_version >= '3.7' -pylint==3.2.4 +pylint==3.2.5 pyproject-hooks==1.1.0 ; python_version >= '3.7' From 2f6c6cecc9bd1bcbbaad7d6606aed96636440da3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Jul 2024 04:52:02 +0000 Subject: [PATCH 14/22] chore(deps-dev): bump setuptools from 70.1.1 to 70.2.0 Bumps [setuptools](https://github.com/pypa/setuptools) from 70.1.1 to 70.2.0. - [Release notes](https://github.com/pypa/setuptools/releases) - [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst) - [Commits](https://github.com/pypa/setuptools/compare/v70.1.1...v70.2.0) --- updated-dependencies: - dependency-name: setuptools dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 1380980f..357d064e 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -92,7 +92,7 @@ pywin32==306 ; platform_system == 'Windows' requests==2.32.3 ; python_version >= '3.7' -setuptools==70.1.1 +setuptools==70.2.0 six==1.16.0 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' From 15146fe1415569104df9b5523fb2be922cd3f822 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 4 Jul 2024 04:24:18 +0000 Subject: [PATCH 15/22] chore(deps-dev): bump certifi from 2024.6.2 to 2024.7.4 Bumps [certifi](https://github.com/certifi/python-certifi) from 2024.6.2 to 2024.7.4. - [Commits](https://github.com/certifi/python-certifi/compare/2024.06.02...2024.07.04) --- updated-dependencies: - dependency-name: certifi dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 357d064e..93654f5f 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -14,7 +14,7 @@ build==1.2.1 bumpver==2023.1129 -certifi==2024.6.2 ; python_version >= '3.6' +certifi==2024.7.4 ; python_version >= '3.6' cffi==1.16.0 ; os_name == 'nt' and implementation_name != 'pypy' From 2047b49c8b30f2670a20ed6dc0b2b8ddf796b669 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 5 Jul 2024 04:15:44 +0000 Subject: [PATCH 16/22] chore(deps): bump dependabot/fetch-metadata from 2.1.0 to 2.2.0 Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 2.1.0 to 2.2.0. - [Release notes](https://github.com/dependabot/fetch-metadata/releases) - [Commits](https://github.com/dependabot/fetch-metadata/compare/v2.1.0...v2.2.0) --- updated-dependencies: - dependency-name: dependabot/fetch-metadata dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/auto-merge-dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-merge-dependabot.yml b/.github/workflows/auto-merge-dependabot.yml index e1b2d6b3..f1903792 100644 --- a/.github/workflows/auto-merge-dependabot.yml +++ b/.github/workflows/auto-merge-dependabot.yml @@ -17,7 +17,7 @@ jobs: steps: - name: Dependabot metadata id: metadata - uses: dependabot/fetch-metadata@v2.1.0 + uses: dependabot/fetch-metadata@v2.2.0 with: github-token: "${{ secrets.GITHUB_TOKEN }}" From 74524f9ed63bebab6395e5443fd39cca2467f8bf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 8 Jul 2024 04:42:52 +0000 Subject: [PATCH 17/22] chore(deps-dev): bump trio from 0.25.1 to 0.26.0 Bumps [trio](https://github.com/python-trio/trio) from 0.25.1 to 0.26.0. - [Release notes](https://github.com/python-trio/trio/releases) - [Commits](https://github.com/python-trio/trio/compare/v0.25.1...v0.26.0) --- updated-dependencies: - dependency-name: trio dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 93654f5f..17824897 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -106,7 +106,7 @@ tomli==2.0.1 ; python_version < '3.11' tomlkit==0.12.5 ; python_version >= '3.7' -trio==0.25.1 +trio==0.26.0 types-python-dateutil==2.9.0.20240316 From 9fa773a7ca92f916a6eb593f033322d5a1918a10 Mon Sep 17 00:00:00 2001 From: Martin Lambertsen Date: Tue, 9 Jul 2024 17:10:48 +0200 Subject: [PATCH 18/22] fix: avoid using default mutable parameters Using mutable default arguments is a common Python problem, see e.g. https://docs.python-guide.org/writing/gotchas/@mutable-default-arguments In this specific case the default argument even tries to setup some infrastructure settings at import time, which can potentially fail. --- src/msgraph_core/base_graph_request_adapter.py | 14 ++++++++++---- src/msgraph_core/graph_client_factory.py | 8 ++++++-- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/msgraph_core/base_graph_request_adapter.py b/src/msgraph_core/base_graph_request_adapter.py index 2acfdc10..2ca00adc 100644 --- a/src/msgraph_core/base_graph_request_adapter.py +++ b/src/msgraph_core/base_graph_request_adapter.py @@ -7,6 +7,7 @@ SerializationWriterFactoryRegistry, ) from kiota_http.httpx_request_adapter import HttpxRequestAdapter +from typing import Optional from .graph_client_factory import GraphClientFactory @@ -16,11 +17,16 @@ class BaseGraphRequestAdapter(HttpxRequestAdapter): def __init__( self, authentication_provider: AuthenticationProvider, - parse_node_factory: ParseNodeFactory = ParseNodeFactoryRegistry(), - serialization_writer_factory: - SerializationWriterFactory = SerializationWriterFactoryRegistry(), - http_client: httpx.AsyncClient = GraphClientFactory.create_with_default_middleware() + parse_node_factory: Optional[ParseNodeFactory] = None, + serialization_writer_factory: Optional[SerializationWriterFactory] = None, + http_client: Optional[httpx.AsyncClient] = None ) -> None: + if parse_node_factory is None: + parse_node_factory = ParseNodeFactoryRegistry() + if serialization_writer_factory is None: + serialization_writer_factory = SerializationWriterFactoryRegistry() + if http_client is None: + http_client = GraphClientFactory.create_with_default_middleware() super().__init__( authentication_provider=authentication_provider, parse_node_factory=parse_node_factory, diff --git a/src/msgraph_core/graph_client_factory.py b/src/msgraph_core/graph_client_factory.py index bd821f3b..39344715 100644 --- a/src/msgraph_core/graph_client_factory.py +++ b/src/msgraph_core/graph_client_factory.py @@ -24,7 +24,7 @@ class GraphClientFactory(KiotaClientFactory): @staticmethod def create_with_default_middleware( api_version: APIVersion = APIVersion.v1, - client: httpx.AsyncClient = KiotaClientFactory.get_default_client(), + client: Optional[httpx.AsyncClient] = None, host: NationalClouds = NationalClouds.Global, options: Optional[Dict[str, RequestOption]] = None ) -> httpx.AsyncClient: @@ -44,6 +44,8 @@ def create_with_default_middleware( Returns: httpx.AsyncClient: An instance of the AsyncClient object """ + if client is None: + client = KiotaClientFactory.get_default_client() client.base_url = GraphClientFactory._get_base_url(host, api_version) # type: ignore middleware = KiotaClientFactory.get_default_middleware(options) telemetry_handler = GraphClientFactory._get_telemetry_handler(options) @@ -54,7 +56,7 @@ def create_with_default_middleware( def create_with_custom_middleware( middleware: Optional[List[BaseMiddleware]], api_version: APIVersion = APIVersion.v1, - client: httpx.AsyncClient = KiotaClientFactory.get_default_client(), + client: Optional[httpx.AsyncClient] = None, host: NationalClouds = NationalClouds.Global, ) -> httpx.AsyncClient: """Applies a custom middleware chain to the HTTP Client @@ -70,6 +72,8 @@ def create_with_custom_middleware( host (NationalClouds): The national clound endpoint to be used. Defaults to NationalClouds.Global. """ + if client is None: + client = KiotaClientFactory.get_default_client() client.base_url = GraphClientFactory._get_base_url(host, api_version) # type: ignore return GraphClientFactory._load_middleware_to_client(client, middleware) From 2ff4440a18347feb173a40010ab4d9910717c6b6 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Tue, 9 Jul 2024 11:15:52 -0400 Subject: [PATCH 19/22] fix: fixes constants path for release please config Signed-off-by: Vincent Biret --- release-please-config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release-please-config.json b/release-please-config.json index e36a1fbb..77b191c6 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -15,7 +15,7 @@ "changelog-path": "CHANGELOG.md", "extra-files": [ "pyproject.toml", - "msgraph-core/_constants.py" + "src/msgraph_core/_constants.py" ] } }, From c47170decb500fbe6369abbd8987fb68a061b429 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 10 Jul 2024 04:43:48 +0000 Subject: [PATCH 20/22] chore(deps-dev): bump setuptools from 70.2.0 to 70.3.0 Bumps [setuptools](https://github.com/pypa/setuptools) from 70.2.0 to 70.3.0. - [Release notes](https://github.com/pypa/setuptools/releases) - [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst) - [Commits](https://github.com/pypa/setuptools/compare/v70.2.0...v70.3.0) --- updated-dependencies: - dependency-name: setuptools dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 17824897..034e4a1c 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -92,7 +92,7 @@ pywin32==306 ; platform_system == 'Windows' requests==2.32.3 ; python_version >= '3.7' -setuptools==70.2.0 +setuptools==70.3.0 six==1.16.0 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' From 0cb8a72683441e5cebda072bc062000c76a7e5ff Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 10 Jul 2024 06:06:31 +0000 Subject: [PATCH 21/22] chore(deps-dev): bump microsoft-kiota-http from 1.3.1 to 1.3.2 Bumps [microsoft-kiota-http](https://github.com/microsoft/kiota) from 1.3.1 to 1.3.2. - [Release notes](https://github.com/microsoft/kiota/releases) - [Changelog](https://github.com/microsoft/kiota/blob/main/CHANGELOG.md) - [Commits](https://github.com/microsoft/kiota/commits) --- updated-dependencies: - dependency-name: microsoft-kiota-http dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 034e4a1c..2c625628 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -147,7 +147,7 @@ microsoft-kiota-abstractions==1.3.3 microsoft-kiota-authentication-azure==1.0.0 -microsoft-kiota-http==1.3.1 +microsoft-kiota-http==1.3.2 multidict==6.0.5 ; python_version >= '3.7' From 80f944eae932c78597e69c8d0600d41a04c6da33 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 10 Jul 2024 06:15:07 +0000 Subject: [PATCH 22/22] chore(main): release 1.1.1 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/msgraph_core/_constants.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index f3587d10..89623a7f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.1.0" + ".": "1.1.1" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cdd333b..6a9bca3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ All notable changes to this project will be documented in this file. +## [1.1.1](https://github.com/microsoftgraph/msgraph-sdk-python-core/compare/v1.1.0...v1.1.1) (2024-07-10) + + +### Bug Fixes + +* avoid using default mutable parameters ([9fa773a](https://github.com/microsoftgraph/msgraph-sdk-python-core/commit/9fa773a7ca92f916a6eb593f033322d5a1918a10)) +* fixes constants path for release please config ([2ff4440](https://github.com/microsoftgraph/msgraph-sdk-python-core/commit/2ff4440a18347feb173a40010ab4d9910717c6b6)) + ## [1.1.0](https://github.com/microsoftgraph/msgraph-sdk-python-core/compare/v1.0.1...v1.1.0) (2024-06-19) diff --git a/pyproject.toml b/pyproject.toml index a152ab13..efb5575a 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.1.0" +version = "1.1.1" # x-release-please-end authors = [{name = "Microsoft", email = "graphtooling+python@microsoft.com"}] description = "Core component of the Microsoft Graph Python SDK" diff --git a/src/msgraph_core/_constants.py b/src/msgraph_core/_constants.py index 568c66b9..33794627 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.0.1' +SDK_VERSION = '1.1.1' # x-release-please-end MS_DEFAULT_SCOPE = 'https://graph.microsoft.com/.default'