Skip to content

Commit 087fb0e

Browse files
saschakrSascha Kreutz
authored andcommitted
fix: do not add dependency on urllib3 if not required
1 parent 578bdbe commit 087fb0e

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ include = ["{{packageName}}/py.typed"]
3333

3434
[tool.poetry.dependencies]
3535
python = "^3.9"
36+
{{^async}}
3637
urllib3 = ">= 2.1.0, < 3.0.0"
38+
{{/async}}
3739
python-dateutil = ">= 2.8.2"
3840
{{#asyncio}}
3941
aiohttp = ">= 3.8.4"
@@ -59,7 +61,9 @@ lazy-imports = ">= 1, < 2"
5961
requires-python = ">=3.9"
6062

6163
dependencies = [
64+
{{^async}}
6265
"urllib3 (>=2.1.0,<3.0.0)",
66+
{{/async}}
6367
"python-dateutil (>=2.8.2)",
6468
{{#httpx}}
6569
"httpx (>=0.28.1)",

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
{{^async}}
12
urllib3 >= 2.1.0, < 3.0.0
3+
{{/async}}
24
python_dateutil >= 2.8.2
35
{{#asyncio}}
46
aiohttp >= 3.8.4

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ NAME = "{{{projectName}}}"
1515
VERSION = "{{packageVersion}}"
1616
PYTHON_REQUIRES = ">= 3.9"
1717
REQUIRES = [
18+
{{^async}}
1819
"urllib3 >= 2.1.0, < 3.0.0",
20+
{{/async}}
1921
"python-dateutil >= 2.8.2",
2022
{{#asyncio}}
2123
"aiohttp >= 3.8.4",

0 commit comments

Comments
 (0)