Skip to content

Commit c745fb2

Browse files
committed
Require urllib3 version 1.26 or higher
We're using the `allowed_methods` parameter to the `Retry` class from urllib3. That parameter was introduced in version 1.26, so require that in `setup.py` to avoid users using an older urllib3 version with this `okdata-sdk-python`.
1 parent 65ba77f commit c745fb2

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Added support for Python 3.12.
44
* Dropped support for Python 3.7 which has reached end of life. Python 3.8+ is
55
now required.
6+
* Fixed version requirement for urllib3.
67

78
## 2.4.1
89

requirements.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
2-
# This file is autogenerated by pip-compile with python 3.10
3-
# To update, run:
2+
# This file is autogenerated by pip-compile with Python 3.11
3+
# by the following command:
44
#
55
# pip-compile
66
#
@@ -39,4 +39,6 @@ rsa==4.8
3939
six==1.16.0
4040
# via ecdsa
4141
urllib3==1.26.18
42-
# via requests
42+
# via
43+
# okdata-sdk (setup.py)
44+
# requests

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"PyJWT>=2.0.0",
2323
"python-jose>=3.1.0,<4.0.0",
2424
"python-keycloak",
25-
"requests",
25+
"requests>=2.25,<3",
26+
"urllib3>=1.26,<2",
2627
],
2728
data_files=[
2829
(

0 commit comments

Comments
 (0)