Skip to content

Commit 64015b4

Browse files
feat: Use pip-tools lock files for build environment (#40)
* Add noxfile with lock default session. * Add pip-tools lock file to define the project environment. * Update README to indicate use of the lock file. * Use pip secure mode to install the lock file in CI.
1 parent 9f90971 commit 64015b4

File tree

5 files changed

+1843
-3
lines changed

5 files changed

+1843
-3
lines changed

.github/workflows/deploy-jupyter-book.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Install Python dependencies
2020
run: |
2121
python -m pip install --upgrade pip setuptools wheel
22-
python -m pip --no-cache-dir install --requirement binder/requirements.txt --requirement book/requirements.txt
22+
python -m pip install --no-deps --require-hashes --requirement book/requirements.lock
2323
2424
- name: List installed Python packages
2525
run: |

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ Tutorial last given at the [April 2021 PyHEP topical meeting](https://indico.cer
1515
In a Python virtual environment run the following
1616

1717
```
18-
python -m pip install -r binder/requirements.txt
19-
python -m pip install -r book/requirements.txt
18+
python -m pip install --require-hashes --requirement book/requirements.lock
2019
```
2120

2221
## Build

0 commit comments

Comments
 (0)