From bbeee71a851ffba92e1efb82ebceace048de9e93 Mon Sep 17 00:00:00 2001 From: Hiroki Date: Thu, 8 Sep 2022 16:02:03 -0300 Subject: [PATCH] D104: Install grpc prior to running develop install (#105) * D104: Up the version of grpc * install core dependencies first * install deps before develop hook * add missing requirements file --- .github/workflows/ci_cd.yml | 1 + protos/requirements/requirements_build.txt | 5 +++++ protos/setup.py | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 protos/requirements/requirements_build.txt diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 67e32a404c..0133b6084d 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -109,6 +109,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip flit + python -m pip install -r protos/requirements/requirements_build.txt python -m pip install -r requirements/requirements_build.txt - name: Build API run: | diff --git a/protos/requirements/requirements_build.txt b/protos/requirements/requirements_build.txt new file mode 100644 index 0000000000..9bf89644a2 --- /dev/null +++ b/protos/requirements/requirements_build.txt @@ -0,0 +1,5 @@ +grpcio>=1.44.0,<1.48.0 +grpcio-tools>=1.44.0,<1.48.0 +protobuf>=3.20,<4 +wheel + diff --git a/protos/setup.py b/protos/setup.py index 9d66c3cce0..a7b6acbb7d 100644 --- a/protos/setup.py +++ b/protos/setup.py @@ -7,7 +7,7 @@ from setuptools import setup from setuptools.command.develop import develop -install_requires = ["grpcio==1.44.0", "grpcio-tools==1.44.0", "protobuf>=3.20,<4"] +install_requires = ["grpcio>=1.44.0,<1.48.0", "grpcio-tools>=1.44.0,<1.48.0", "protobuf>=3.20,<4"] # Get the long description from the README file HERE = os.path.abspath(os.path.dirname(__file__))