Skip to content

Commit c03ff00

Browse files
committed
fix issues after changing
1 parent 2a135d7 commit c03ff00

4 files changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
25+
with:
26+
persist-credentials: false
2527

2628
- name: Set up Python
2729
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
@@ -53,7 +55,8 @@ jobs:
5355
PY
5456
5557
- name: Install pip-tools
56-
run: python -m pip install pip-tools
58+
# Pin matches update-lock.yml so lock verification uses the same resolver.
59+
run: python -m pip install 'pip-tools==7.5.3'
5760

5861
- name: Verify requirements-lock.txt is up to date
5962
# Same pip-compile flags as update-lock.yml, without --upgrade.

.github/workflows/update-lock.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,17 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
21+
with:
22+
persist-credentials: false
2123

2224
- name: Set up Python
2325
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
2426
with:
2527
python-version: "3.12"
2628

2729
- name: Install pip-tools
28-
run: python -m pip install pip-tools
30+
# Pin matches tests.yml lockfile job so lock generation and verification agree.
31+
run: python -m pip install 'pip-tools==7.5.3'
2932

3033
- name: Regenerate lock file
3134
run: |
@@ -43,7 +46,7 @@ jobs:
4346
cat > /tmp/lock-header <<'EOF'
4447
# Pinned lock file — generated by pip-compile (pip-tools).
4548
# Install: pip install -r requirements-lock.txt
46-
# Update: pip-compile requirements.txt --output-file requirements-lock.txt --no-header --annotation-style=line --allow-unsafe
49+
# Update: pip-compile requirements.txt --output-file requirements-lock.txt --no-header --annotation-style=line --allow-unsafe --upgrade
4750
# Run periodically (e.g. via the "Update dependency lock file" CI workflow) to pick up
4851
# upstream patch / security releases within the bounded ranges in requirements.txt.
4952
EOF

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ pip install -r requirements-lock.txt
7171

7272
Runtime version **bounds** live in `pyproject.toml` under `[project.dependencies]` (`flask`, `fpdf2`, `pillow`, etc.). `requirements.txt` mirrors those specifiers for backward compatibility — keep them identical when you change deps.
7373

74-
**CI** installs from `requirements-lock.txt`, which pins exact versions (including transitive packages). Regenerate the lock after editing bounds:
74+
**CI** installs from `requirements-lock.txt`, which pins exact versions (including transitive packages). The lock is produced on **Linux** (same as CI and `update-lock.yml`); `pip-compile` on Windows may add platform-only pins such as `colorama` — do not commit those.
75+
76+
Regenerate after editing bounds (prefer **Actions → Update dependency lock file → Run workflow**, or on Linux / WSL):
7577

7678
```bash
7779
pip install pip-tools

requirements-lock.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# Pinned lock file — generated by pip-compile (pip-tools).
22
# Install: pip install -r requirements-lock.txt
3-
# Update: pip-compile requirements.txt --output-file requirements-lock.txt --no-header --annotation-style=line --allow-unsafe
3+
# Update: pip-compile requirements.txt --output-file requirements-lock.txt --no-header --annotation-style=line --allow-unsafe --upgrade
44
# Run periodically (e.g. via the "Update dependency lock file" CI workflow) to pick up
55
# upstream patch / security releases within the bounded ranges in requirements.txt.
6+
# Lock is generated on Linux (CI / update-lock.yml). Windows-only transitives (e.g.
7+
# colorama via click) are omitted — pip still installs them on Windows when needed.
68
blinker==1.9.0 # via flask
79
click==8.4.0 # via flask
8-
colorama==0.4.6 # via click
910
defusedxml==0.7.1 # via fpdf2
1011
flask==3.1.3 # via -r requirements.txt
1112
fonttools==4.63.0 # via fpdf2

0 commit comments

Comments
 (0)