Skip to content

Commit 784d830

Browse files
committed
Pin Python requirements, dependency cooldowns
1 parent 5d5338f commit 784d830

8 files changed

Lines changed: 1161 additions & 2187 deletions

.github/dependabot.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,17 @@ updates:
33
- package-ecosystem: pip
44
directory: "/"
55
schedule:
6-
interval: daily
6+
interval: weekly
7+
cooldown:
8+
default-days: 7
79
open-pull-requests-limit: 10
8-
ignore:
9-
- dependency-name: docutils
10-
versions:
11-
- "0.16"
12-
- "0.17"
13-
- dependency-name: responses
14-
versions:
15-
- 0.12.1
16-
- 0.13.0
17-
- 0.13.1
18-
- 0.13.2
19-
- dependency-name: "boto3"
20-
- dependency-name: "boto3-stubs"
21-
- dependency-name: "botocore"
22-
- dependency-name: "botocore-stubs"
23-
- dependency-name: lxml
24-
versions:
25-
- 4.6.2
2610
- package-ecosystem: github-actions
2711
directory: "/"
2812
groups:
2913
github-actions:
3014
patterns:
3115
- "*" # Group all Actions updates into a single larger pull request
3216
schedule:
33-
interval: daily
17+
interval: weekly
18+
cooldown:
19+
default-days: 7

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ RUN case $(uname -m) in \
3232
RUN mkdir /code
3333
WORKDIR /code
3434

35-
RUN pip --no-cache-dir --disable-pip-version-check install --upgrade pip setuptools wheel
35+
COPY requirements-bootstrap.txt /code/
36+
37+
RUN pip --no-cache-dir --disable-pip-version-check \
38+
install -r requirements-bootstrap.txt
3639

3740
COPY pyproject.toml /code/
3841

Dockerfile.cabotage

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,17 @@ RUN case $(uname -m) in \
3333
RUN mkdir /code
3434
WORKDIR /code
3535

36-
RUN pip --no-cache-dir --disable-pip-version-check install --upgrade pip setuptools wheel
36+
COPY requirements-bootstrap.txt /code/
3737

38-
COPY pyproject.toml /code/
38+
RUN pip --no-cache-dir --disable-pip-version-check \
39+
install -r requirements-bootstrap.txt
40+
41+
COPY requirements-prod.txt /code/
3942

4043
RUN --mount=type=cache,target=/root/.cache/pip \
4144
set -x \
4245
&& pip --disable-pip-version-check \
43-
install \
44-
'.[prod]'
46+
install -r requirements-prod.txt
4547

4648
COPY . /code/
4749

requirements-bootstrap.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
--only-binary :all:
2+
3+
pip
4+
setuptools
5+
wheel

requirements-bootstrap.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.12
3+
# by the following command:
4+
#
5+
# pip-compile --allow-unsafe --generate-hashes --output-file=requirements-bootstrap.txt requirements-bootstrap.in
6+
#
7+
--only-binary :all:
8+
9+
packaging==26.1 \
10+
--hash=sha256:5d9c0669c6285e491e0ced2eee587eaf67b670d94a19e94e3984a481aba6802f
11+
# via wheel
12+
wheel==0.47.0 \
13+
--hash=sha256:212281cab4dff978f6cedd499cd893e1f620791ca6ff7107cf270781e587eced
14+
# via -r requirements-bootstrap.in
15+
16+
# The following packages are considered to be unsafe in a requirements file:
17+
pip==26.0.1 \
18+
--hash=sha256:bdb1b08f4274833d62c1aa29e20907365a2ceb950410df15fc9521bad440122b
19+
# via -r requirements-bootstrap.in
20+
setuptools==82.0.1 \
21+
--hash=sha256:a59e362652f08dcd477c78bb6e7bd9d80a7995bc73ce773050228a348ce2e5bb
22+
# via -r requirements-bootstrap.in

requirements-prod.in

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--only-binary :all:
2+
--no-binary django-apptemplates
3+
--no-binary django-translation-aliases
4+
--no-binary django-haystack
5+
--no-binary django-tastypie
6+
--no-binary sgmllib3k
7+
--no-binary docopt
8+
--no-binary odfpy
9+
10+
.[prod]

requirements-prod.txt

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

uv.lock

Lines changed: 0 additions & 2162 deletions
This file was deleted.

0 commit comments

Comments
 (0)