From 7bdae735e246425848bf4784b83d1a4025938c04 Mon Sep 17 00:00:00 2001 From: Julien Date: Tue, 8 Oct 2024 13:41:30 +0200 Subject: [PATCH] Update grpcio to match the version used in pulumi (#361) The grpcio version used here should match the one used by the `pulumi` package. After releasing https://github.com/pulumi/pulumi/pull/17487, set the minimum version of the pulumi dependency to that version. Ref https://github.com/pulumi/pulumi/pull/17487 Ref https://github.com/pulumi/pulumi/issues/17484 --- CHANGELOG.md | 3 +++ sdk/python/.pylintrc | 1 + sdk/python/Pipfile | 8 ++++---- sdk/python/lib/setup.py | 4 ++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 80799a6..38f5e39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## HEAD (Unreleased) +- Python: Update `grpcio` dependency to match the `pulumi` package + (https://github.com/pulumi/pulumi-policy/pull/361). + --- ## 1.12.0 (2024-07-23) diff --git a/sdk/python/.pylintrc b/sdk/python/.pylintrc index 5a66eff..2277ce7 100644 --- a/sdk/python/.pylintrc +++ b/sdk/python/.pylintrc @@ -79,6 +79,7 @@ disable=raw-checker-failed, invalid-name, protected-access, too-many-arguments, + too-many-positional-arguments, too-many-branches, too-many-locals, too-many-return-statements, diff --git a/sdk/python/Pipfile b/sdk/python/Pipfile index 3589708..d985070 100644 --- a/sdk/python/Pipfile +++ b/sdk/python/Pipfile @@ -4,11 +4,11 @@ verify_ssl = true name = "pypi" [packages] -pulumi = ">=3.88.0,<4.0.0" +pulumi = ">=3.136.0,<4.0.0" protobuf = "~=4.21" -grpcio = "~=1.60.1" +grpcio = "~=1.66.2" [dev-packages] -pylint = ">=2.1" -mypy = ">=0.77" +pylint = ">=3.3.0" +mypy = ">=1.1.0" types-protobuf = "*" diff --git a/sdk/python/lib/setup.py b/sdk/python/lib/setup.py index a84e464..5b3c126 100644 --- a/sdk/python/lib/setup.py +++ b/sdk/python/lib/setup.py @@ -40,8 +40,8 @@ def readme(): ] }, install_requires=[ - 'pulumi>=3.88.0,<4.0.0', + 'pulumi>=3.136.0,<4.0.0', 'protobuf~=4.21', - 'grpcio~=1.60.1' + 'grpcio~=1.66.2' ], zip_safe=False)