Skip to content

Commit 2ad18e0

Browse files
authored
v2.30.0
1 parent f2629e9 commit 2ad18e0

File tree

4 files changed

+19
-7
lines changed

4 files changed

+19
-7
lines changed

HISTORY.md

+12
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ dev
66

77
- \[Short description of non-trivial change.\]
88

9+
2.30.0 (2023-05-03)
10+
-------------------
11+
12+
**Dependencies**
13+
- ⚠️ Added support for urllib3 2.0. ⚠️
14+
15+
This may contain minor breaking changes so we advise careful testing and
16+
reviewing https://urllib3.readthedocs.io/en/latest/v2-migration-guide.html
17+
prior to upgrading.
18+
19+
Users who wish to stay on urllib3 1.x can pin to `urllib3<2`.
20+
921
2.29.0 (2023-04-26)
1022
-------------------
1123

requests/__init__.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ def check_compatibility(urllib3_version, chardet_version, charset_normalizer_ver
6666
# Check urllib3 for compatibility.
6767
major, minor, patch = urllib3_version # noqa: F811
6868
major, minor, patch = int(major), int(minor), int(patch)
69-
# urllib3 >= 1.21.1, <= 1.26
70-
assert major == 1
71-
assert minor >= 21
72-
assert minor <= 26
69+
# urllib3 >= 1.21.1
70+
assert major >= 1
71+
if major == 1:
72+
assert minor >= 21
7373

7474
# Check charset_normalizer for compatibility.
7575
if chardet_version:

requests/__version__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
__title__ = "requests"
66
__description__ = "Python HTTP for Humans."
77
__url__ = "https://requests.readthedocs.io"
8-
__version__ = "2.29.0"
9-
__build__ = 0x022900
8+
__version__ = "2.30.0"
9+
__build__ = 0x023000
1010
__author__ = "Kenneth Reitz"
1111
__author_email__ = "[email protected]"
1212
__license__ = "Apache 2.0"

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def run_tests(self):
6161
requires = [
6262
"charset_normalizer>=2,<4",
6363
"idna>=2.5,<4",
64-
"urllib3>=1.21.1,<1.27",
64+
"urllib3>=1.21.1,<3",
6565
"certifi>=2017.4.17",
6666
]
6767
test_requirements = [

0 commit comments

Comments
 (0)