diff --git a/bin/configs/python-aiohttp.yaml b/bin/configs/python-aiohttp.yaml index a7515a1bdfb2..14a1adeffd39 100644 --- a/bin/configs/python-aiohttp.yaml +++ b/bin/configs/python-aiohttp.yaml @@ -6,6 +6,7 @@ library: asyncio additionalProperties: packageName: petstore_api mapNumberTo: float + poetry1: true nameMappings: _type: underscore_type type_: type_with_underscore diff --git a/samples/openapi3/client/petstore/python-aiohttp/pyproject.toml b/samples/openapi3/client/petstore/python-aiohttp/pyproject.toml index b19ccea78df0..fbafbe1e07a2 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/pyproject.toml +++ b/samples/openapi3/client/petstore/python-aiohttp/pyproject.toml @@ -1,33 +1,26 @@ -[project] +[tool.poetry] name = "petstore_api" version = "1.0.0" description = "OpenAPI Petstore" -authors = [ - {name = "OpenAPI Generator Community",email = "team@openapitools.org"}, -] +authors = ["OpenAPI Generator Community "] license = "Apache-2.0" readme = "README.md" +repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" keywords = ["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"] -requires-python = "^3.9" - -dependencies = [ - "urllib3 (>=2.1.0,<3.0.0)", - "python-dateutil (>=2.8.2)", - "aiohttp (>=3.8.4)", - "aiohttp-retry (>=2.8.3)", - "pem (>=19.3.0)", - "pycryptodome (>=3.9.0)", - "pydantic (>=2)", - "typing-extensions (>=4.7.1)" -] - -[project.urls] -Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" +include = ["petstore_api/py.typed"] -[tool.poetry] -requires-poetry = ">=2.0" +[tool.poetry.dependencies] +python = "^3.9" +urllib3 = ">= 2.1.0, < 3.0.0" +python-dateutil = ">= 2.8.2" +aiohttp = ">= 3.8.4" +aiohttp-retry = ">= 2.8.3" +pem = ">= 19.3.0" +pycryptodome = ">= 3.9.0" +pydantic = ">= 2" +typing-extensions = ">= 4.7.1" -[tool.poetry.group.dev.dependencies] +[tool.poetry.dev-dependencies] pytest = ">= 7.2.1" pytest-cov = ">= 2.8.1" tox = ">= 3.9.0"