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
While `rules_python_external`**does not** require a _transitively-closed_`requirements.txt` file, it is recommended. But if you want to just have top-level packages listed, that works.
10
-
11
-
Transitively-closed requirements specs are 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).
12
-
13
-
For example, `pip-compile` takes a `requirements.in` like this:
14
-
15
-
```
16
-
boto3~=1.9.227
17
-
botocore~=1.12.247
18
-
click~=7.0
19
-
```
20
-
21
-
These above are the third-party packages you can directly import.
22
-
23
-
`pip-compile` 'compiles' it so you get a transitively-closed `requirements.txt` like this, which should be passed to `pip_install` below:
24
-
25
-
```
26
-
boto3==1.9.253
27
-
botocore==1.12.253
28
-
click==7.0
29
-
docutils==0.15.2 # via botocore
30
-
jmespath==0.9.4 # via boto3, botocore
31
-
python-dateutil==2.8.1 # via botocore
32
-
s3transfer==0.2.1 # via boto3
33
-
six==1.14.0 # via python-dateutil
34
-
urllib3==1.25.8 # via botocore
35
-
```
33
+
The rules support Python >= 3.5 (the oldest [maintained release](https://devguide.python.org/#status-of-python-branches)).
0 commit comments