From 933c3737be3b124a38c74f0cbdfaa2f6561ba6fe Mon Sep 17 00:00:00 2001 From: Chad Retz Date: Mon, 13 Jun 2022 11:26:00 -0500 Subject: [PATCH] Remove direct grpcio dependency (#49) --- poetry.lock | 2 +- pyproject.toml | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/poetry.lock b/poetry.lock index 21c1a506..9fef0048 100644 --- a/poetry.lock +++ b/poetry.lock @@ -910,7 +910,7 @@ testing = ["coverage (>=5.0.3)", "zope.event", "zope.testing"] [metadata] lock-version = "1.1" python-versions = "^3.7" -content-hash = "bd43bfd7047120f2bf06b0fe6558fa6ac9a21255b632c2b847e6c6509fcf12de" +content-hash = "f33749f7d00b89981e98eaf3f235893d82c206c3a5391f5d1209d4a6242e726a" [metadata.files] appdirs = [ diff --git a/pyproject.toml b/pyproject.toml index b7e3cd27..b52d670e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,14 +28,11 @@ script = "build.py" dacite = "^1.6.0" # Due to grpcio binaries not supporting macOS ARM currently (see # https://github.com/grpc/grpc/issues/27506, -# https://github.com/grpc/grpc/issues/28387, etc) we have to use non-binary. But -# until Poetry 1.2 is released and -# https://github.com/python-poetry/poetry/pull/5609 merged, we have to specify -# the tarball instead. -grpcio = [ - { version = "^1.46.0", markers = "sys_platform != 'darwin' or platform_machine != 'arm64'" }, - { url = "https://files.pythonhosted.org/packages/61/dd/d8eda79197a1275e06621850775c7bbf34a141ff92553754dde4e87d7551/grpcio-1.46.3.tar.gz", markers = "sys_platform == 'darwin' and platform_machine == 'arm64'" }, -] +# https://github.com/grpc/grpc/issues/28387, etc) we would have to use +# non-binary. But until Poetry 1.2 is released and +# https://github.com/python-poetry/poetry/pull/5609 merged, it is not supported. +# We cannot use a direct dependency because PyPI fails the upload. +grpcio = "^1.46.3" protobuf = "^3.20.1" python = "^3.7" types-protobuf = "^3.19.21"