Commit 66e4479
authored
Update requirements and scripts/generate_requirements.sh (#945)
This PR updates the dependencies in `requirements.in` and `setup.py` as
follows:
* Drop support for Python 3.9 (which was end-of-lifed last year)
* Update the requirements to try to reduce them to the minimum
This PR also updates `scripts/generate_requirements.sh` to remove some
no-longer-needed post-processing of the `requirements.txt` file. The
modified script still needs to have one special case, to avoid pinning
the version of PyYAML. PyYAML is a transitive dependency that, in older
Pythons, was installed via distutils and not pip. Pinning the version
(as pip-compile would normally do) causes pip to try to uninstall any
existing versions of pyyaml in the environment, and fail, because pip
didn't install it in the first place. The most robust solution I've
found is to avoid pinning the version. Previously this was accomplished
in `scripts/generate_requirements.sh` by editing the output using `sed`
(ugh – my bad). This update uses pip-compile's feature for "unsafe"
packages to simply leave pyyaml out of `requirements.txt`.1 parent 6867ca0 commit 66e4479
File tree
4 files changed
+161
-1698
lines changed- release
- scripts
4 files changed
+161
-1698
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
67 | 62 | | |
68 | 63 | | |
69 | 64 | | |
| |||
73 | 68 | | |
74 | 69 | | |
75 | 70 | | |
76 | | - | |
77 | | - | |
78 | 71 | | |
79 | 72 | | |
80 | 73 | | |
| |||
106 | 99 | | |
107 | 100 | | |
108 | 101 | | |
109 | | - | |
| 102 | + | |
110 | 103 | | |
111 | 104 | | |
112 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
21 | 26 | | |
22 | | - | |
23 | 27 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
0 commit comments