Skip to content

Commit 7dd9d50

Browse files
committed
generate doc/requirements.txt
As suggested in #10030 (review)
1 parent 3b4b3e1 commit 7dd9d50

File tree

4 files changed

+12
-81
lines changed

4 files changed

+12
-81
lines changed

.github/workflows/users-guide.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ on:
1515
- 'doc/Makefile'
1616
- 'doc/pyproject.toml'
1717
- 'doc/requirements.in'
18-
- 'doc/requirements.txt'
1918
- 'doc/*.inc'
2019
- 'doc/*.py'
2120
- 'doc/*.rst'
@@ -26,7 +25,6 @@ on:
2625
- 'doc/Makefile'
2726
- 'doc/pyproject.toml'
2827
- 'doc/requirements.in'
29-
- 'doc/requirements.txt'
3028
- 'doc/*.inc'
3129
- 'doc/*.py'
3230
- 'doc/*.rst'
@@ -58,6 +56,14 @@ jobs:
5856
with:
5957
python-version: ${{ matrix.python-version }}
6058

59+
- name: Install pip-compile
60+
run: |
61+
pip install pip-tools
62+
63+
- name: Create requirements.txt from requirements.in
64+
run: |
65+
cd doc && pip-compile requirements.in
66+
6167
# Subsumed by make users-guide
6268
# - name: Install dependencies
6369
# run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ cabal-testsuite/**/haddocks
8787
venv
8888
.venv
8989
/doc/.skjold_cache/
90+
/doc/requirements.txt
9091

9192
# macOS folder metadata
9293
.DS_Store

.readthedocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ build:
77
os: "ubuntu-22.04"
88
tools:
99
python: "3.8"
10+
jobs:
11+
post_create_environment:
12+
- cd doc && pip-compile requirements.in
1013

1114
python:
1215
install:

doc/requirements.txt

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

0 commit comments

Comments
 (0)