Skip to content

Commit 4649885

Browse files
committed
use poetry 2 for tests
1 parent 9393ef5 commit 4649885

2 files changed

Lines changed: 23 additions & 16 deletions

File tree

bin/configs/python-httpx.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ library: httpx
66
additionalProperties:
77
packageName: petstore_api
88
mapNumberTo: float
9-
poetry1: true
9+
poetry1: false
1010
nameMappings:
1111
_type: underscore_type
1212
type_: type_with_underscore

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

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

12-
[tool.poetry.dependencies]
13-
python = "^3.9"
14-
urllib3 = ">= 2.1.0, < 3.0.0"
15-
python-dateutil = ">= 2.8.2"
16-
httpx = ">= 0.28.1"
17-
pem = ">= 19.3.0"
18-
pycryptodome = ">= 3.9.0"
19-
pydantic = ">= 2"
20-
typing-extensions = ">= 4.7.1"
26+
[tool.poetry]
27+
requires-poetry = ">=2.0"
2128

22-
[tool.poetry.dev-dependencies]
29+
[tool.poetry.group.dev.dependencies]
2330
pytest = ">= 7.2.1"
2431
pytest-cov = ">= 2.8.1"
2532
tox = ">= 3.9.0"

0 commit comments

Comments
 (0)