You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-3Lines changed: 24 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,34 @@ Contains Bazel rules to fetch and install Python dependencies from a requirement
4
4
5
5
## Usage
6
6
7
-
In `requirements.txt`
7
+
#### Setup `requirements.txt`
8
+
9
+
`rules_python_external` requires a _transitively-closed_`requirements.txt` file, which would
10
+
be very tedious to produce and maintain manually. To automate the process we recommend [`pip-compile` from `jazzband/pip-tools`](https://github.com/jazzband/pip-tools#example-usage-for-pip-compile).
11
+
12
+
For example, `pip-compile` takes a `requirements.in` like this:
13
+
14
+
```
15
+
boto3~=1.9.227
16
+
botocore~=1.12.247
17
+
click~=7.0
18
+
```
19
+
20
+
Can 'compiles' it so you get a transitively-closed `requirements.txt` like this, which should be passed to `pip_install` below:
0 commit comments