Skip to content

Commit

Permalink
document pinning python package installations to commit SHAs
Browse files Browse the repository at this point in the history
use a known working git format

Update yaml.md
  • Loading branch information
zeke committed May 15, 2024
1 parent 2d0fe2a commit 5308966
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/yaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,21 @@ build:
system_packages:
- "git"
python_packages:
- "git+https://github.com/m-bain/whisperX.git"
- "git+https://github.com/huggingface/transformers"
```

You can also pin Python package installations to a specific git commit:

```yaml
build:
system_packages:
- "git"
python_packages:
- "git+https://github.com/huggingface/transformers@2d1602a"
```

Note that you can use a shortened prefix of the 40-character git commit SHA, but you must use at least six characters, like `2d1602a` above.

### `python_requirements`

A pip requirements file specifying the Python packages to install. For example:
Expand Down

0 comments on commit 5308966

Please sign in to comment.