Skip to content

Commit

Permalink
Change to fully pinned pip installs with hashes.
Browse files Browse the repository at this point in the history
Convert requirements.txt to requirements.in and compile requirements.txt only at top levels.

PiperOrigin-RevId: 707658873
  • Loading branch information
sterlinb authored and “Fereshteh committed Jan 10, 2025
1 parent 157dd55 commit 02d1a15
Show file tree
Hide file tree
Showing 7 changed files with 2,437 additions and 13 deletions.
6 changes: 6 additions & 0 deletions python/clientside/requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
google-cloud-aiplatform~=1.74.0
tensorflow-hub~=0.16.1
tensorflow-text~=2.18.0
huggingface-hub~=0.26.5
grpcio~=1.68.1
-r ../data_processing/requirements.in
1,331 changes: 1,326 additions & 5 deletions python/clientside/requirements.txt

Large diffs are not rendered by default.

File renamed without changes.
3 changes: 2 additions & 1 deletion python/serving/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ RUN apt-get update && \
# Install dependencies
RUN python3.12 -m venv /server-env && \
/server-env/bin/python3.12 -m pip install --upgrade pip && \
/server-env/bin/python3.12 -m pip install -r /serving/requirements.txt
/server-env/bin/python3.12 -m pip install --require-hashes \
-r /serving/requirements.txt

# TODO(b/379159076) - Remove gcloud
# Install gcloud CLI
Expand Down
6 changes: 6 additions & 0 deletions python/serving/requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
absl-py~=2.1.0
numpy~=2.0.2
tensorflow~=2.18.0

-r ../data_processing/requirements.in
-r serving_framework/requirements.in
1,097 changes: 1,092 additions & 5 deletions python/serving/requirements.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
absl-py~=2.1.0
flask~=3.0.3
grpcio~=1.67.1
grpcio~=1.68.1
grpcio-status~=1.68.1
gunicorn~=23.0.0
numpy~=2.0.2
requests~=2.32.3
# TODO: b/375469331 - Enable testing with most current requests-mock release.
requests-mock==1.9.3
tensorflow~=2.18.0
tensorflow-serving-api~=2.17.0
tensorflow-serving-api~=2.18.0
tensorflow-io-gcs-filesystem>=0.23.1
setuptools~=75.6.0
typing-extensions~=4.12.2

0 comments on commit 02d1a15

Please sign in to comment.