Skip to content

Commit f6b0c8a

Browse files
layolincopybara-github
authored andcommitted
feat(marketing-agent): fix dependencies & Dockerfile
Update hatchling, setuptools, wheel, and streamlit package versions in requirements.in to remediate Renovate security vulnerabilities. Author: layolin@google.com Change-Id: Ic8363be48c8a6ad12dcadc928b8e9b8e140413c3 GitOrigin-RevId: 58c3035d1b4f114814c2175a970e5072e3b35727
1 parent f5e1363 commit f6b0c8a

7 files changed

Lines changed: 1226 additions & 25 deletions

File tree

projects/ai/gen-media/marketing-agent/ge_marketing_agent/lj_marketing_agent/requirements.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
google-genai==1.75.0
2-
google-cloud-aiplatform==1.162.0
1+
google-genai==2.16.0
2+
google-cloud-aiplatform==1.163.0
33
google-cloud-bigquery==3.42.2
44
pydantic==2.13.4
5-
fastapi==0.140.7
6-
uvicorn==0.51.0
5+
fastapi==0.141.1
6+
uvicorn==0.52.0
77
python-dotenv==1.2.2
88
gitpython==3.1.57
99
aiohttp==3.14.3

projects/ai/gen-media/marketing-agent/marketing_agent/Dockerfile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@ COPY streamlit_app.py .
2525
COPY logo.jpg .
2626
COPY .streamlit/ .streamlit/
2727

28-
# hadolint ignore=DL3013
29-
RUN pip install --no-cache-dir hatchling setuptools wheel \
30-
&& pip install --no-cache-dir --no-build-isolation \
31-
adk_common/ \
32-
lj_marketing_agent/ \
33-
streamlit \
34-
google-ads==30.1.0 \
35-
rapidfuzz==3.14.5
28+
# Copy hash-verified requirements manifest
29+
COPY requirements.txt .
30+
31+
# Install dependencies securely with hash verification and install local project modules
32+
RUN pip install --no-cache-dir --require-hashes -r requirements.txt \
33+
&& pip install --no-cache-dir --no-build-isolation --no-deps ./adk_common ./lj_marketing_agent
3634

3735
ENV PYTHONPATH=/app
3836

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
hatchling==1.27.0
2+
setuptools==83.0.0
3+
wheel==0.46.2
4+
streamlit==1.54.0
5+
pillow==12.3.0
6+
google-ads==30.1.0
7+
rapidfuzz==3.14.5

projects/ai/gen-media/marketing-agent/marketing_agent/requirements.txt

Lines changed: 1196 additions & 0 deletions
Large diffs are not rendered by default.

projects/ai/gen-media/marketing-agent/marketing_agent/streamlit_demo/adk_common/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ authors = [{ name = "GenMedia Team", email = "team@example.com" }]
66
readme = "README.md"
77
requires-python = ">=3.11"
88
dependencies = [
9-
"google-adk==1.30.0",
9+
"google-adk==1.36.2",
1010
"python-dotenv==1.2.2",
11-
"google-genai==1.75.0",
12-
"google-cloud-aiplatform[adk,agent-engines]==1.162.0",
11+
"google-genai==2.16.0",
12+
"google-cloud-aiplatform[adk,agent-engines]==1.163.0",
1313
"pydantic==2.13.4",
1414
"absl-py==2.5.0",
1515
"requests==2.34.2",

projects/ai/gen-media/marketing-agent/marketing_agent/streamlit_demo/ads_agent/requirements.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
google-genai==1.75.0
1+
google-genai==2.16.0
22
google-cloud-storage==3.13.0
3-
google-ads==30.1.0
3+
google-ads==31.2.0
44
pydantic==2.13.4
5-
fastapi==0.140.7
6-
uvicorn==0.51.0
5+
fastapi==0.141.1
6+
uvicorn==0.52.0
77
python-dotenv==1.2.2
88
gitpython==3.1.57
99
aiohttp==3.14.3

projects/ai/gen-media/marketing-agent/marketing_agent/streamlit_demo/lj_marketing_agent/pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ authors = [{ name = "Layolin Jesudhass" }]
66
readme = "README.md"
77
requires-python = ">=3.11"
88
dependencies = [
9-
"google-adk==1.30.0",
10-
"google-cloud-aiplatform[adk,agent-engines]==1.162.0",
9+
"google-adk==1.36.2",
10+
"google-cloud-aiplatform[adk,agent-engines]==1.163.0",
1111
"google-cloud-bigquery==3.42.2",
12-
"google-genai==1.75.0",
12+
"google-genai==2.16.0",
1313
"pydantic==2.13.4",
1414
"pydantic-settings==2.14.2",
1515
"absl-py==2.5.0",
1616
"python-dotenv==1.2.2",
17-
"pandas==2.3.3",
18-
"toolbox-core==0.6.0",
17+
"pandas==3.0.5",
18+
"toolbox-core==1.3.0",
1919
"google-cloud-texttospeech==2.37.0",
2020
"soundfile==0.14.0",
2121
"aiohttp==3.14.3",
@@ -25,7 +25,7 @@ dependencies = [
2525
"httpx==0.28.1",
2626
"google-cloud-storage==3.13.0",
2727
"tenacity==9.1.4",
28-
"google-ads==30.1.0",
28+
"google-ads==31.2.0",
2929
"rapidfuzz==3.14.5",
3030
"gitpython==3.1.57",
3131
]

0 commit comments

Comments
 (0)