Skip to content

Commit a68a368

Browse files
committed
chore: reorganize Python version-specific dependencies and remove redundant entries
1 parent 334fd8f commit a68a368

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

requirements/requirements.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
requests_toolbelt>=1.0.0
2-
urllib3<3
32

4-
# ------------ Python >= 3.9 ------------
5-
requests>=2.32.2; python_version >= "3.9"
3+
urllib3<3; python_version >= "3.9"
4+
urllib3!=2.0.0,<3; python_version < "3.9"
65

7-
# ------------ 3.7 <= Python < 3.9 ------------
6+
requests>=2.32.2; python_version >= "3.9"
87
requests>=2.22.0,<2.32; python_version >= "3.7" and python_version < "3.9"
9-
10-
# ------------ Python < 3.7 ------------
118
requests>=2.22.0,<2.28; python_version < "3.7"

requirements/test.txt

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
requests_toolbelt>=1.0.0
2-
urllib3<3
2+
urllib3<3; python_version >= "3.9"
3+
urllib3!=2.0.0,<3; python_version < "3.9"
34

4-
# ------------ Python >= 3.9 ------------
55
requests>=2.32.2; python_version >= "3.9"
6+
requests>=2.22.0,<2.32; python_version >= "3.7" and python_version < "3.9"
7+
requests>=2.22.0,<2.28; python_version < "3.7"
8+
69
coverage>=7.6.0; python_version >= "3.13"
710
coverage>=7.5.0; python_version >= "3.9" and python_version < "3.13"
8-
9-
# ------------ 3.7 <= Python < 3.9 ------------
10-
requests>=2.22.0,<2.32; python_version >= "3.7" and python_version < "3.9"
1111
coverage>=5.0,<7.0; python_version >= "3.7" and python_version < "3.9"
12-
13-
# ------------ Python < 3.7 ------------
14-
requests>=2.22.0,<2.28; python_version < "3.7"
1512
coverage==4.5.4; python_version < "3.7"
1613

17-
# ------------ responses versions ------------
1814
responses>=0.25.0; python_version >= "3.8"
1915
responses>=0.18.0,<0.25; python_version >= "3.7" and python_version < "3.8"
2016
responses<0.18.0; python_version < "3.7"

0 commit comments

Comments
 (0)