-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update requirements and instructions to update
- Loading branch information
Showing
2 changed files
with
29 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,13 +24,19 @@ To run in CI mode locally to play with the html output: | |
When run in CI, we want to ensure that we have complete control over the set of | ||
python pacakges we are comparing against; to ensure this we use `pip-compile` | ||
(part of [`pip-tools`]) to generate a pinned `requirements.txt` from a | ||
`requirements.in` file in the root `resources/scripts` directory. To update the | ||
set of python packages in use, you need to update this file: | ||
`requirements.in` file in the root `resources/scripts` directory. | ||
|
||
- make sure you have pip-tools installed (`python -m pip install pip-tools`) | ||
- delete `resources/scripts/requirements.txt` | ||
- run `pip-compile resources/scripts/requirements.in` | ||
- commit the new `requirements.txt` file. | ||
To update the set of python packages in use, you need to update this file: | ||
|
||
```shell | ||
# Make sure you have pip-tools | ||
$ python -m pip install pip-tools | ||
|
||
# Rebuild the file | ||
$ pip-compile resources/scripts/requirements.in > resources/scripts/requirements.txt | ||
|
||
# Commit updated file | ||
``` | ||
|
||
```shell | ||
# clone [email protected]:googlefonts/fontc_crater.git somewhere, we'll assume at ../fontc_crater | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters