Skip to content

Commit 1c77e5a

Browse files
xingyousongcopybara-github
authored andcommitted
Remove grpcio-tools from requirements.txt, it turns out it's not actually needed - only relevant during building and setup.py! Also downgrade grpcio to minimum version which supports Py3.11
PiperOrigin-RevId: 721887094
1 parent c2f60c6 commit 1c77e5a

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

.github/workflows/ci.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,13 @@ jobs:
4545
key: >-
4646
${{ env.pythonLocation }}
4747
${{ hashFiles('**/requirements*.txt') }}
48-
- name: Install essential dependencies # NOTE: grpcio-tools needs to be periodically updated.
48+
# NOTE: grpcio-tools needs to be periodically updated to support later Python versions.
49+
- name: Install essential dependencies
4950
run: |
5051
sudo apt-get install -y libprotobuf-dev
5152
python -m pip install --upgrade pip setuptools
5253
pip install wheel
53-
pip install grpcio-tools>=1.66.2
54+
pip install grpcio-tools>=1.70.0
5455
pip install pytest pytest-xdist
5556
pip wheel -e .
5657
pip install -e .

.github/workflows/pypi-publish-dev.yml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
with:
2020
python-version: '3.11'
2121
- name: Install dependencies
22+
# NOTE: grpcio-tools needs to be periodically updated to support later Python versions.
2223
run: |
2324
sudo apt-get install -y libprotobuf-dev
2425
python -m pip install --upgrade pip

.github/workflows/pypi-publish.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
with:
1818
python-version: '3.11'
1919
- name: Install dependencies
20+
# NOTE: grpcio-tools needs to be periodically updated to support later Python versions.
2021
run: |
2122
sudo apt-get install -y libprotobuf-dev
2223
python -m pip install --upgrade pip

requirements.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ absl-py>=1.0.0
33
numpy>=1.21.5
44
protobuf>=3.6
55
portpicker>=1.3.1
6-
grpcio>=1.66.2
7-
grpcio-tools>=1.66.2
6+
grpcio>=1.49.0
87
googleapis-common-protos>=1.56.4
98
sqlalchemy>=1.4

0 commit comments

Comments
 (0)