Skip to content

Commit

Permalink
generate doc/requirements.txt
Browse files Browse the repository at this point in the history
As suggested in haskell#10030 (review)
  • Loading branch information
geekosaur committed May 18, 2024
1 parent 3b4b3e1 commit 2aca7c4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 81 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/users-guide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ on:
- 'doc/Makefile'
- 'doc/pyproject.toml'
- 'doc/requirements.in'
- 'doc/requirements.txt'
- 'doc/*.inc'
- 'doc/*.py'
- 'doc/*.rst'
Expand All @@ -26,7 +25,6 @@ on:
- 'doc/Makefile'
- 'doc/pyproject.toml'
- 'doc/requirements.in'
- 'doc/requirements.txt'
- 'doc/*.inc'
- 'doc/*.py'
- 'doc/*.rst'
Expand Down Expand Up @@ -58,6 +56,14 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install pip-compile
run: |
pip install pip-tools
- name: Create requirements.txt from requirements.in
run: |
cd doc && pip-compile requirements.in
# Subsumed by make users-guide
# - name: Install dependencies
# run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ cabal-testsuite/**/haddocks
venv
.venv
/doc/.skjold_cache/
/doc/requirements.txt

# macOS folder metadata
.DS_Store
Expand Down
4 changes: 4 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ build:
os: "ubuntu-22.04"
tools:
python: "3.8"
jobs:
post_create_environment:
- pip install pip-tools
- cd doc && pip-compile requirements.in

python:
install:
Expand Down
79 changes: 0 additions & 79 deletions doc/requirements.txt

This file was deleted.

0 comments on commit 2aca7c4

Please sign in to comment.