Skip to content

Commit 61bdc6b

Browse files
authored
[Python] adjust multi-constraint dependency syntax to comply with PEP 508 (#20458)
Co-authored-by: Pascal Bachor <bachorp@users.noreply.github.com>
1 parent 78ea8af commit 61bdc6b

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

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

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

15-
urllib3 = ">= 1.25.3 < 3.0.0"
15+
urllib3 = ">= 1.25.3, < 3.0.0"
1616
python-dateutil = ">= 2.8.2"
1717
{{#asyncio}}
1818
aiohttp = ">= 3.8.4"
1919
aiohttp-retry = ">= 2.8.3"
2020
{{/asyncio}}
2121
{{#tornado}}
22-
tornado = ">=4.2 <5"
22+
tornado = ">=4.2, <5"
2323
{{/tornado}}
2424
{{#hasHttpSignatureMethods}}
2525
pem = ">= 19.3.0"

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 = ">= 1.25.3, < 3.0.0"
1616
python-dateutil = ">= 2.8.2"
1717
pydantic = ">= 2"
1818
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 = ">= 1.25.3, < 3.0.0"
1616
python-dateutil = ">= 2.8.2"
1717
pydantic = ">= 2"
1818
typing-extensions = ">= 4.7.1"

samples/openapi3/client/petstore/python-aiohttp/pyproject.toml

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

15-
urllib3 = ">= 1.25.3 < 3.0.0"
15+
urllib3 = ">= 1.25.3, < 3.0.0"
1616
python-dateutil = ">= 2.8.2"
1717
aiohttp = ">= 3.8.4"
1818
aiohttp-retry = ">= 2.8.3"

samples/openapi3/client/petstore/python/pyproject.toml

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

15-
urllib3 = ">= 1.25.3 < 3.0.0"
15+
urllib3 = ">= 1.25.3, < 3.0.0"
1616
python-dateutil = ">= 2.8.2"
1717
pem = ">= 19.3.0"
1818
pycryptodome = ">= 3.9.0"

0 commit comments

Comments
 (0)