Skip to content

Commit 19a1dba

Browse files
committed
build: update test dependencies and Python version compatibility constraints
1 parent 3ab437c commit 19a1dba

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
python-version: ${{ matrix.python }}
2323
- name: Install deps
2424
run: |
25-
pip install -r requirements/requirements.txt
2625
pip install -r requirements/test.txt
2726
if [ "${{ matrix.urllib3-line }}" = "lt2" ]; then
2827
pip install "urllib3<2"

requirements/test.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
requests_toolbelt>=1.0.0
2+
3+
# ------------ Python >= 3.9 ------------
4+
# Requests 2.32.0/2.32.1 were yanked; start at 2.32.2.
5+
# urllib3 2.x requires Python >=3.9; exclude 2.0.0 (known bug).
6+
requests>=2.32.2; python_version >= "3.9"
7+
urllib3!=2.0.0,<3; python_version >= "3.9"
8+
9+
# ------------ 3.7 <= Python < 3.9 ------------
10+
# Latest Requests that still supports 3.7/3.8 is 2.31.x.
11+
requests>=2.22.0,<2.32; python_version >= "3.7" and python_version < "3.9"
12+
# urllib3<2 keeps behavior consistent on these Pythons.
13+
urllib3<2; python_version >= "3.7" and python_version < "3.9"
14+
15+
# ------------ Python < 3.7 (i.e., 3.6) ------------
16+
# 2.27.x was the last Requests series for 3.6.
17+
requests>=2.22.0,<2.28; python_version < "3.7"
18+
urllib3<2; python_version < "3.7"
19+
120
black==19.10b0
221
coverage==4.5.4
322
tox==3.14.2

0 commit comments

Comments
 (0)