Skip to content

Commit d2196dd

Browse files
authored
use poetry 1.x in python aiohttp client (#21328)
1 parent 041d36c commit d2196dd

File tree

2 files changed

+16
-22
lines changed

2 files changed

+16
-22
lines changed

bin/configs/python-aiohttp.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ library: asyncio
66
additionalProperties:
77
packageName: petstore_api
88
mapNumberTo: float
9+
poetry1: true
910
nameMappings:
1011
_type: underscore_type
1112
type_: type_with_underscore

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

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,26 @@
1-
[project]
1+
[tool.poetry]
22
name = "petstore_api"
33
version = "1.0.0"
44
description = "OpenAPI Petstore"
5-
authors = [
6-
{name = "OpenAPI Generator Community",email = "team@openapitools.org"},
7-
]
5+
authors = ["OpenAPI Generator Community <team@openapitools.org>"]
86
license = "Apache-2.0"
97
readme = "README.md"
8+
repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID"
109
keywords = ["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"]
11-
requires-python = "^3.9"
12-
13-
dependencies = [
14-
"urllib3 (>=2.1.0,<3.0.0)",
15-
"python-dateutil (>=2.8.2)",
16-
"aiohttp (>=3.8.4)",
17-
"aiohttp-retry (>=2.8.3)",
18-
"pem (>=19.3.0)",
19-
"pycryptodome (>=3.9.0)",
20-
"pydantic (>=2)",
21-
"typing-extensions (>=4.7.1)"
22-
]
23-
24-
[project.urls]
25-
Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID"
10+
include = ["petstore_api/py.typed"]
2611

27-
[tool.poetry]
28-
requires-poetry = ">=2.0"
12+
[tool.poetry.dependencies]
13+
python = "^3.9"
14+
urllib3 = ">= 2.1.0, < 3.0.0"
15+
python-dateutil = ">= 2.8.2"
16+
aiohttp = ">= 3.8.4"
17+
aiohttp-retry = ">= 2.8.3"
18+
pem = ">= 19.3.0"
19+
pycryptodome = ">= 3.9.0"
20+
pydantic = ">= 2"
21+
typing-extensions = ">= 4.7.1"
2922

30-
[tool.poetry.group.dev.dependencies]
23+
[tool.poetry.dev-dependencies]
3124
pytest = ">= 7.2.1"
3225
pytest-cov = ">= 2.8.1"
3326
tox = ">= 3.9.0"

0 commit comments

Comments
 (0)