forked from loafle/openapi-generator-original
[python] Fix poetry deprecation warnings (#21268)
* Convert pyproject.toml template to the format expected by Poetry >=2.0 (https://python-poetry.org/blog/announcing-poetry-2.0.0) * Update samples * Add option to fallback to Poetry 1.x style pyproject.toml * Generate new docs and samples * Place project.urls section a bit further down, so that it doesn't clash with other sections * Update samples
This commit is contained in:
@@ -1,23 +1,29 @@
|
||||
[tool.poetry]
|
||||
[project]
|
||||
name = "openapi_client"
|
||||
version = "1.0.0"
|
||||
description = "Echo Server API"
|
||||
authors = ["OpenAPI Generator Community <team@openapitools.org>"]
|
||||
authors = [
|
||||
{name = "OpenAPI Generator Community",email = "team@openapitools.org"},
|
||||
]
|
||||
license = "Apache 2.0"
|
||||
readme = "README.md"
|
||||
repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
keywords = ["OpenAPI", "OpenAPI-Generator", "Echo Server API"]
|
||||
include = ["openapi_client/py.typed"]
|
||||
requires-python = "^3.9"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.9"
|
||||
dependencies = [
|
||||
"urllib3 (>=2.1.0,<3.0.0)",
|
||||
"python-dateutil (>=2.8.2)",
|
||||
"pydantic (>=2)",
|
||||
"typing-extensions (>=4.7.1)"
|
||||
]
|
||||
|
||||
urllib3 = ">= 2.1.0, < 3.0.0"
|
||||
python-dateutil = ">= 2.8.2"
|
||||
pydantic = ">= 2"
|
||||
typing-extensions = ">= 4.7.1"
|
||||
[project.urls]
|
||||
Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID"
|
||||
|
||||
[tool.poetry.dev-dependencies]
|
||||
[tool.poetry]
|
||||
requires-poetry = ">=2.0"
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
pytest = ">= 7.2.1"
|
||||
pytest-cov = ">= 2.8.1"
|
||||
tox = ">= 3.9.0"
|
||||
|
||||
Reference in New Issue
Block a user