Skip to content

Commit d5dd9b0

Browse files
committed
deps: enable urllib3 2.x on Py>=3.9; keep Py<3.9 on urllib3<2
- Add env-marked pins: - Py>=3.9: requests>=2.32.2, urllib3!=2.0.0,<3 - 3.7–3.8: requests<2.32, urllib3<2 - 3.6: requests<2.28, urllib3<2 - Bump requests-toolbelt to >=1.0.0 - README: document per-Python resolver behavior - CI: matrix runs both urllib3<2 and urllib3>=2 on appropriate Pythons Refs: - Requests now requires Python >=3.9; 2.32.0/2.32.1 yanked (start at 2.32.2). - urllib3 2.x requires Python >=3.9. - requests-toolbelt 1.0.0 aligns with urllib3 2.x.
1 parent cc951b2 commit d5dd9b0

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-20.04
88
strategy:
99
matrix:
10-
python: [3.7, 3.8, 3.9, '3.10']
10+
python: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12']
1111
steps:
1212
- uses: actions/checkout@v1
1313
- name: Setup Python

requirements/requirements.txt

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1-
requests>=2.22.0
2-
requests_toolbelt==0.10.1
3-
urllib3==1.26.*
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"

0 commit comments

Comments
 (0)