Skip to content

Commit 89a9ee1

Browse files
committed
ci(pip): externalize dependencies
1 parent 36241e8 commit 89a9ee1

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ updates:
77
interval: "daily"
88
commit-message:
99
prefix: build(deps)
10+
- package-ecosystem: "pip"
11+
directory: "/json"
12+
schedule:
13+
interval: "daily"
14+
cooldown:
15+
default-days: 7
16+
commit-message:
17+
prefix: build(deps)
1018
- package-ecosystem: "github-actions"
1119
directory: "/"
1220
schedule:

json/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ RUN apk upgrade --no-cache \
3333
&& apk cache --no-cache clean \
3434
&& rm -rf /var/cache/apk/*
3535

36+
COPY requirements.txt /tmp/requirements.txt
37+
3638
RUN pipx ensurepath --global \
37-
&& pipx install --global \
38-
csvkit==2.1.0 \
39-
jsonfmt==0.2.7 \
40-
remarshal==1.2.0
39+
&& xargs -a /tmp/requirements.txt -n 1 pipx install --global \
40+
&& rm -f /tmp/requirements.txt
4141

4242
RUN npm install -g \
4343

json/requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
csvkit==2.1.0
2+
jsonfmt==0.2.7
3+
remarshal==1.2.0

0 commit comments

Comments
 (0)