Skip to content

Commit af91415

Browse files
committed
Convert pyproject.toml template to the format expected by Poetry >=2.0
(https://python-poetry.org/blog/announcing-poetry-2.0.0)
1 parent 2fb26c3 commit af91415

1 file changed

Lines changed: 20 additions & 17 deletions

File tree

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

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,37 @@
1-
[tool.poetry]
1+
[project]
22
name = "{{{packageName}}}"
33
version = "{{{packageVersion}}}"
44
description = "{{{appName}}}"
5-
authors = ["{{infoName}}{{^infoName}}OpenAPI Generator Community{{/infoName}} <{{infoEmail}}{{^infoEmail}}team@openapitools.org{{/infoEmail}}>"]
5+
authors = [
6+
{name = "{{infoName}}{{^infoName}}OpenAPI Generator Community{{/infoName}}",email = "{{infoEmail}}{{^infoEmail}}team@openapitools.org{{/infoEmail}}"},
7+
]
68
license = "{{{licenseInfo}}}{{^licenseInfo}}NoLicense{{/licenseInfo}}"
79
readme = "README.md"
8-
repository = "https://{{{gitHost}}}/{{{gitUserId}}}/{{{gitRepoId}}}"
910
keywords = ["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"]
10-
include = ["{{packageName}}/py.typed"]
11-
12-
[tool.poetry.dependencies]
13-
python = "^3.9"
11+
requires-python = "^3.9"
1412

15-
urllib3 = ">= 2.1.0, < 3.0.0"
16-
python-dateutil = ">= 2.8.2"
13+
dependencies = [
14+
"urllib3 (>=2.1.0,<3.0.0)",
15+
"python-dateutil (>=2.8.2)",
1716
{{#asyncio}}
18-
aiohttp = ">= 3.8.4"
19-
aiohttp-retry = ">= 2.8.3"
17+
"aiohttp (>=3.8.4)",
18+
"aiohttp-retry (>=2.8.3)",
2019
{{/asyncio}}
2120
{{#tornado}}
22-
tornado = ">=4.2, <5"
21+
"tornado (>=4.2,<5)",
2322
{{/tornado}}
2423
{{#hasHttpSignatureMethods}}
25-
pem = ">= 19.3.0"
26-
pycryptodome = ">= 3.9.0"
24+
"pem (>=19.3.0)",
25+
"pycryptodome (>=3.9.0)",
2726
{{/hasHttpSignatureMethods}}
28-
pydantic = ">= 2"
29-
typing-extensions = ">= 4.7.1"
27+
"pydantic (>=2)",
28+
"typing-extensions (>=4.7.1)"
29+
]
30+
31+
[tool.poetry]
32+
requires-poetry = ">=2.0"
3033

31-
[tool.poetry.dev-dependencies]
34+
[tool.poetry.group.dev.dependencies]
3235
pytest = ">= 7.2.1"
3336
pytest-cov = ">= 2.8.1"
3437
tox = ">= 3.9.0"

0 commit comments

Comments
 (0)