Skip to content

Commit 722fa83

Browse files
committed
ci(pip): externalize dependencies
1 parent 1e0af9b commit 722fa83

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: chore(deps)
10+
- package-ecosystem: "pip"
11+
directory: "/rst"
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:

rst/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ RUN apk upgrade --no-cache \
2424
&& apk cache --no-cache clean \
2525
&& rm -rf /var/cache/apk/*
2626

27+
COPY requirements.txt /tmp/requirements.txt
28+
2729
RUN pipx ensurepath --global \
28-
&& pipx install --global \
29-
docutils==0.22.3 \
30-
rstcheck==6.2.5 \
31-
rst2pdf==0.103.1
30+
&& xargs -a /tmp/requirements.txt -n 1 pipx install --global \
31+
&& rm -f /tmp/requirements.txt
3232

3333
RUN adduser \
3434
--home "${USER_HOME}" \

rst/requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
docutils==0.22.3
2+
rstcheck==6.2.5
3+
rst2pdf==0.103.1

0 commit comments

Comments
 (0)