Skip to content

Commit 02307db

Browse files
authored
fix: #20826 Update urllib3 requirement for Python generator (#20845)
* fix: #20826 Update urllib3 requirement for Python generator * Fix test to use localhost instead of petstore.swagger.io
1 parent 995c6c5 commit 02307db

File tree

17 files changed

+22
-17
lines changed

17 files changed

+22
-17
lines changed

modules/openapi-generator/src/main/resources/python/README_onlypackage.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This python library package is generated without supporting files like setup.py
2626

2727
To be able to use it, you will need these dependencies in your own package that uses this library:
2828

29-
* urllib3 >= 1.25.3, < 3.0.0
29+
* urllib3 >= 2.1.0, < 3.0.0
3030
* python-dateutil >= 2.8.2
3131
{{#asyncio}}
3232
* aiohttp >= 3.8.4

modules/openapi-generator/src/main/resources/python/pyproject.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ include = ["{{packageName}}/py.typed"]
1212
[tool.poetry.dependencies]
1313
python = "^3.8"
1414

15-
urllib3 = ">= 1.25.3, < 3.0.0"
15+
urllib3 = ">= 2.1.0, < 3.0.0"
1616
python-dateutil = ">= 2.8.2"
1717
{{#asyncio}}
1818
aiohttp = ">= 3.8.4"

modules/openapi-generator/src/main/resources/python/requirements.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
urllib3 >= 1.25.3, < 3.0.0
1+
urllib3 >= 2.1.0, < 3.0.0
22
python_dateutil >= 2.8.2
33
{{#asyncio}}
44
aiohttp >= 3.8.4

modules/openapi-generator/src/main/resources/python/setup.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ NAME = "{{{projectName}}}"
1414
VERSION = "{{packageVersion}}"
1515
PYTHON_REQUIRES = ">= 3.8"
1616
REQUIRES = [
17-
"urllib3 >= 1.25.3, < 3.0.0",
17+
"urllib3 >= 2.1.0, < 3.0.0",
1818
"python-dateutil >= 2.8.2",
1919
{{#asyncio}}
2020
"aiohttp >= 3.8.4",

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ include = ["openapi_client/py.typed"]
1212
[tool.poetry.dependencies]
1313
python = "^3.8"
1414

15-
urllib3 = ">= 1.25.3, < 3.0.0"
15+
urllib3 = ">= 2.1.0, < 3.0.0"
1616
python-dateutil = ">= 2.8.2"
1717
pydantic = ">= 2"
1818
typing-extensions = ">= 4.7.1"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
urllib3 >= 1.25.3, < 3.0.0
1+
urllib3 >= 2.1.0, < 3.0.0
22
python_dateutil >= 2.8.2
33
pydantic >= 2
44
typing-extensions >= 4.7.1

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
VERSION = "1.0.0"
2626
PYTHON_REQUIRES = ">= 3.8"
2727
REQUIRES = [
28-
"urllib3 >= 1.25.3, < 3.0.0",
28+
"urllib3 >= 2.1.0, < 3.0.0",
2929
"python-dateutil >= 2.8.2",
3030
"pydantic >= 2",
3131
"typing-extensions >= 4.7.1",

samples/client/echo_api/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ include = ["openapi_client/py.typed"]
1212
[tool.poetry.dependencies]
1313
python = "^3.8"
1414

15-
urllib3 = ">= 1.25.3, < 3.0.0"
15+
urllib3 = ">= 2.1.0, < 3.0.0"
1616
python-dateutil = ">= 2.8.2"
1717
pydantic = ">= 2"
1818
typing-extensions = ">= 4.7.1"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
urllib3 >= 1.25.3, < 3.0.0
1+
urllib3 >= 2.1.0, < 3.0.0
22
python_dateutil >= 2.8.2
33
pydantic >= 2
44
typing-extensions >= 4.7.1

samples/client/echo_api/python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
VERSION = "1.0.0"
2626
PYTHON_REQUIRES = ">= 3.8"
2727
REQUIRES = [
28-
"urllib3 >= 1.25.3, < 3.0.0",
28+
"urllib3 >= 2.1.0, < 3.0.0",
2929
"python-dateutil >= 2.8.2",
3030
"pydantic >= 2",
3131
"typing-extensions >= 4.7.1",

0 commit comments

Comments
 (0)