From af91415db0008fedec277347d60f9447ebf1a00b Mon Sep 17 00:00:00 2001 From: Youri Westerman Date: Mon, 12 May 2025 15:48:41 +0200 Subject: [PATCH 1/6] Convert pyproject.toml template to the format expected by Poetry >=2.0 (https://python-poetry.org/blog/announcing-poetry-2.0.0) --- .../main/resources/python/pyproject.mustache | 37 ++++++++++--------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python/pyproject.mustache b/modules/openapi-generator/src/main/resources/python/pyproject.mustache index 195e46b9c5f4..238e8ae4a092 100644 --- a/modules/openapi-generator/src/main/resources/python/pyproject.mustache +++ b/modules/openapi-generator/src/main/resources/python/pyproject.mustache @@ -1,34 +1,37 @@ -[tool.poetry] +[project] name = "{{{packageName}}}" version = "{{{packageVersion}}}" description = "{{{appName}}}" -authors = ["{{infoName}}{{^infoName}}OpenAPI Generator Community{{/infoName}} <{{infoEmail}}{{^infoEmail}}team@openapitools.org{{/infoEmail}}>"] +authors = [ + {name = "{{infoName}}{{^infoName}}OpenAPI Generator Community{{/infoName}}",email = "{{infoEmail}}{{^infoEmail}}team@openapitools.org{{/infoEmail}}"}, +] license = "{{{licenseInfo}}}{{^licenseInfo}}NoLicense{{/licenseInfo}}" readme = "README.md" -repository = "https://{{{gitHost}}}/{{{gitUserId}}}/{{{gitRepoId}}}" keywords = ["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"] -include = ["{{packageName}}/py.typed"] - -[tool.poetry.dependencies] -python = "^3.9" +requires-python = "^3.9" -urllib3 = ">= 2.1.0, < 3.0.0" -python-dateutil = ">= 2.8.2" +dependencies = [ + "urllib3 (>=2.1.0,<3.0.0)", + "python-dateutil (>=2.8.2)", {{#asyncio}} -aiohttp = ">= 3.8.4" -aiohttp-retry = ">= 2.8.3" + "aiohttp (>=3.8.4)", + "aiohttp-retry (>=2.8.3)", {{/asyncio}} {{#tornado}} -tornado = ">=4.2, <5" + "tornado (>=4.2,<5)", {{/tornado}} {{#hasHttpSignatureMethods}} -pem = ">= 19.3.0" -pycryptodome = ">= 3.9.0" + "pem (>=19.3.0)", + "pycryptodome (>=3.9.0)", {{/hasHttpSignatureMethods}} -pydantic = ">= 2" -typing-extensions = ">= 4.7.1" + "pydantic (>=2)", + "typing-extensions (>=4.7.1)" +] + +[tool.poetry] +requires-poetry = ">=2.0" -[tool.poetry.dev-dependencies] +[tool.poetry.group.dev.dependencies] pytest = ">= 7.2.1" pytest-cov = ">= 2.8.1" tox = ">= 3.9.0" From b554c1bc3adc621f144c46112b6a00a526e59246 Mon Sep 17 00:00:00 2001 From: Youri Westerman Date: Mon, 12 May 2025 16:26:09 +0200 Subject: [PATCH 2/6] Update samples --- .../pyproject.toml | 25 +++++++------- samples/client/echo_api/python/pyproject.toml | 25 +++++++------- .../petstore/python-aiohttp/pyproject.toml | 33 ++++++++++--------- .../client/petstore/python/pyproject.toml | 29 ++++++++-------- 4 files changed, 62 insertions(+), 50 deletions(-) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/pyproject.toml b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/pyproject.toml index 1ff108ea46c8..b5ca3e23ccf0 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/pyproject.toml +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/pyproject.toml @@ -1,23 +1,26 @@ -[tool.poetry] +[project] name = "openapi_client" version = "1.0.0" description = "Echo Server API" -authors = ["OpenAPI Generator Community "] +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" +[tool.poetry] +requires-poetry = ">=2.0" -[tool.poetry.dev-dependencies] +[tool.poetry.group.dev.dependencies] pytest = ">= 7.2.1" pytest-cov = ">= 2.8.1" tox = ">= 3.9.0" diff --git a/samples/client/echo_api/python/pyproject.toml b/samples/client/echo_api/python/pyproject.toml index 1ff108ea46c8..b5ca3e23ccf0 100644 --- a/samples/client/echo_api/python/pyproject.toml +++ b/samples/client/echo_api/python/pyproject.toml @@ -1,23 +1,26 @@ -[tool.poetry] +[project] name = "openapi_client" version = "1.0.0" description = "Echo Server API" -authors = ["OpenAPI Generator Community "] +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" +[tool.poetry] +requires-poetry = ">=2.0" -[tool.poetry.dev-dependencies] +[tool.poetry.group.dev.dependencies] pytest = ">= 7.2.1" pytest-cov = ">= 2.8.1" tox = ">= 3.9.0" diff --git a/samples/openapi3/client/petstore/python-aiohttp/pyproject.toml b/samples/openapi3/client/petstore/python-aiohttp/pyproject.toml index 7af017bf4449..b4ccdfe44669 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/pyproject.toml +++ b/samples/openapi3/client/petstore/python-aiohttp/pyproject.toml @@ -1,27 +1,30 @@ -[tool.poetry] +[project] name = "petstore_api" version = "1.0.0" description = "OpenAPI Petstore" -authors = ["OpenAPI Generator Community "] +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", "OpenAPI Petstore"] -include = ["petstore_api/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)", + "aiohttp (>=3.8.4)", + "aiohttp-retry (>=2.8.3)", + "pem (>=19.3.0)", + "pycryptodome (>=3.9.0)", + "pydantic (>=2)", + "typing-extensions (>=4.7.1)" +] -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] +requires-poetry = ">=2.0" -[tool.poetry.dev-dependencies] +[tool.poetry.group.dev.dependencies] pytest = ">= 7.2.1" pytest-cov = ">= 2.8.1" tox = ">= 3.9.0" diff --git a/samples/openapi3/client/petstore/python/pyproject.toml b/samples/openapi3/client/petstore/python/pyproject.toml index 186674bcc8a7..f734d9027a14 100644 --- a/samples/openapi3/client/petstore/python/pyproject.toml +++ b/samples/openapi3/client/petstore/python/pyproject.toml @@ -1,25 +1,28 @@ -[tool.poetry] +[project] name = "petstore_api" version = "1.0.0" description = "OpenAPI Petstore" -authors = ["OpenAPI Generator Community "] +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", "OpenAPI Petstore"] -include = ["petstore_api/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)", + "pem (>=19.3.0)", + "pycryptodome (>=3.9.0)", + "pydantic (>=2)", + "typing-extensions (>=4.7.1)" +] -urllib3 = ">= 2.1.0, < 3.0.0" -python-dateutil = ">= 2.8.2" -pem = ">= 19.3.0" -pycryptodome = ">= 3.9.0" -pydantic = ">= 2" -typing-extensions = ">= 4.7.1" +[tool.poetry] +requires-poetry = ">=2.0" -[tool.poetry.dev-dependencies] +[tool.poetry.group.dev.dependencies] pytest = ">= 7.2.1" pytest-cov = ">= 2.8.1" tox = ">= 3.9.0" From 0cf674a7693cf5756528d799eb57eb26741eed6c Mon Sep 17 00:00:00 2001 From: Youri Westerman Date: Wed, 14 May 2025 13:59:12 +0200 Subject: [PATCH 3/6] Add option to fallback to Poetry 1.x style pyproject.toml --- .../languages/PythonClientCodegen.java | 2 + .../main/resources/python/pyproject.mustache | 49 +++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java index 32ff3da81780..011b807c98dc 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java @@ -47,6 +47,7 @@ public class PythonClientCodegen extends AbstractPythonCodegen implements Codege public static final String DATETIME_FORMAT = "datetimeFormat"; public static final String DATE_FORMAT = "dateFormat"; public static final String SET_ENSURE_ASCII_TO_FALSE = "setEnsureAsciiToFalse"; + public static final String POETRY1_FALLBACK = "poetry1"; @Setter protected String packageUrl; protected String apiDocPath = "docs/"; @@ -149,6 +150,7 @@ public PythonClientCodegen() { cliOptions.add(new CliOption(DATE_FORMAT, "date format for query parameters") .defaultValue("%Y-%m-%d")); cliOptions.add(new CliOption(CodegenConstants.USE_ONEOF_DISCRIMINATOR_LOOKUP, CodegenConstants.USE_ONEOF_DISCRIMINATOR_LOOKUP_DESC).defaultValue("false")); + cliOptions.add(new CliOption(POETRY1_FALLBACK, "Fallback to formatting pyproject.toml to Poetry 1.x format.")); supportedLibraries.put("urllib3", "urllib3-based client"); supportedLibraries.put("asyncio", "asyncio-based client"); diff --git a/modules/openapi-generator/src/main/resources/python/pyproject.mustache b/modules/openapi-generator/src/main/resources/python/pyproject.mustache index 238e8ae4a092..92fc9ce92e87 100644 --- a/modules/openapi-generator/src/main/resources/python/pyproject.mustache +++ b/modules/openapi-generator/src/main/resources/python/pyproject.mustache @@ -1,13 +1,54 @@ +{{#poetry1}} +[tool.poetry] +{{/poetry1}} +{{^poetry1}} [project] +{{/poetry1}} name = "{{{packageName}}}" version = "{{{packageVersion}}}" description = "{{{appName}}}" +{{#poetry1}} +authors = ["{{infoName}}{{^infoName}}OpenAPI Generator Community{{/infoName}} <{{infoEmail}}{{^infoEmail}}team@openapitools.org{{/infoEmail}}>"] +{{/poetry1}} +{{^poetry1}} authors = [ {name = "{{infoName}}{{^infoName}}OpenAPI Generator Community{{/infoName}}",email = "{{infoEmail}}{{^infoEmail}}team@openapitools.org{{/infoEmail}}"}, ] +{{/poetry1}} license = "{{{licenseInfo}}}{{^licenseInfo}}NoLicense{{/licenseInfo}}" readme = "README.md" +{{#poetry1}} +repository = "https://{{{gitHost}}}/{{{gitUserId}}}/{{{gitRepoId}}}" +{{/poetry1}} +{{^poetry1}} + +[project.urls] +Repository = "https://{{{gitHost}}}/{{{gitUserId}}}/{{{gitRepoId}}}" + +{{/poetry1}} keywords = ["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"] +{{#poetry1}} +include = ["{{packageName}}/py.typed"] + +[tool.poetry.dependencies] +python = "^3.9" +urllib3 = ">= 2.1.0, < 3.0.0" +python-dateutil = ">= 2.8.2" +{{#asyncio}} +aiohttp = ">= 3.8.4" +aiohttp-retry = ">= 2.8.3" +{{/asyncio}} +{{#tornado}} +tornado = ">=4.2, <5" +{{/tornado}} +{{#hasHttpSignatureMethods}} +pem = ">= 19.3.0" +pycryptodome = ">= 3.9.0" +{{/hasHttpSignatureMethods}} +pydantic = ">= 2" +typing-extensions = ">= 4.7.1" +{{/poetry1}} +{{^poetry1}} requires-python = "^3.9" dependencies = [ @@ -27,11 +68,19 @@ dependencies = [ "pydantic (>=2)", "typing-extensions (>=4.7.1)" ] +{{/poetry1}} +{{^poetry1}} [tool.poetry] requires-poetry = ">=2.0" +{{/poetry1}} +{{#poetry1}} +[tool.poetry.dev-dependencies] +{{/poetry1}} +{{^poetry1}} [tool.poetry.group.dev.dependencies] +{{/poetry1}} pytest = ">= 7.2.1" pytest-cov = ">= 2.8.1" tox = ">= 3.9.0" From f366d8bfb7df4cfa51258744925081c25adb3e56 Mon Sep 17 00:00:00 2001 From: Youri Westerman Date: Wed, 14 May 2025 14:09:24 +0200 Subject: [PATCH 4/6] Generate new docs and samples --- docs/generators/python.md | 1 + .../pyproject.toml | 4 ++++ samples/client/echo_api/python/pyproject.toml | 4 ++++ .../openapi3/client/petstore/python-aiohttp/pyproject.toml | 4 ++++ samples/openapi3/client/petstore/python/pyproject.toml | 4 ++++ 5 files changed, 17 insertions(+) diff --git a/docs/generators/python.md b/docs/generators/python.md index 6a41958cb7fd..51b011e04409 100644 --- a/docs/generators/python.md +++ b/docs/generators/python.md @@ -29,6 +29,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |packageName|python package name (convention: snake_case).| |openapi_client| |packageUrl|python package URL.| |null| |packageVersion|python package version.| |1.0.0| +|poetry1|Fallback to formatting pyproject.toml to Poetry 1.x format.| |null| |projectName|python project name in setup.py (e.g. petstore-api).| |null| |recursionLimit|Set the recursion limit. If not set, use the system default value.| |null| |setEnsureAsciiToFalse|When set to true, add `ensure_ascii=False` in json.dumps when creating the HTTP request body.| |false| diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/pyproject.toml b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/pyproject.toml index b5ca3e23ccf0..5fabedef4dc3 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/pyproject.toml +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/pyproject.toml @@ -7,6 +7,10 @@ authors = [ ] license = "Apache 2.0" readme = "README.md" + +[project.urls] +Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" + keywords = ["OpenAPI", "OpenAPI-Generator", "Echo Server API"] requires-python = "^3.9" diff --git a/samples/client/echo_api/python/pyproject.toml b/samples/client/echo_api/python/pyproject.toml index b5ca3e23ccf0..5fabedef4dc3 100644 --- a/samples/client/echo_api/python/pyproject.toml +++ b/samples/client/echo_api/python/pyproject.toml @@ -7,6 +7,10 @@ authors = [ ] license = "Apache 2.0" readme = "README.md" + +[project.urls] +Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" + keywords = ["OpenAPI", "OpenAPI-Generator", "Echo Server API"] requires-python = "^3.9" diff --git a/samples/openapi3/client/petstore/python-aiohttp/pyproject.toml b/samples/openapi3/client/petstore/python-aiohttp/pyproject.toml index b4ccdfe44669..fbb99858bb91 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/pyproject.toml +++ b/samples/openapi3/client/petstore/python-aiohttp/pyproject.toml @@ -7,6 +7,10 @@ authors = [ ] license = "Apache-2.0" readme = "README.md" + +[project.urls] +Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" + keywords = ["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"] requires-python = "^3.9" diff --git a/samples/openapi3/client/petstore/python/pyproject.toml b/samples/openapi3/client/petstore/python/pyproject.toml index f734d9027a14..25a5e995d23b 100644 --- a/samples/openapi3/client/petstore/python/pyproject.toml +++ b/samples/openapi3/client/petstore/python/pyproject.toml @@ -7,6 +7,10 @@ authors = [ ] license = "Apache-2.0" readme = "README.md" + +[project.urls] +Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" + keywords = ["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"] requires-python = "^3.9" From 09c3da78c5487b3f5799c4c44a4f8a02dbf6f8a6 Mon Sep 17 00:00:00 2001 From: Youri Westerman Date: Wed, 14 May 2025 14:19:31 +0200 Subject: [PATCH 5/6] Place project.urls section a bit further down, so that it doesn't clash with other sections --- .../src/main/resources/python/pyproject.mustache | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python/pyproject.mustache b/modules/openapi-generator/src/main/resources/python/pyproject.mustache index 92fc9ce92e87..4b2949c9e9db 100644 --- a/modules/openapi-generator/src/main/resources/python/pyproject.mustache +++ b/modules/openapi-generator/src/main/resources/python/pyproject.mustache @@ -19,12 +19,6 @@ license = "{{{licenseInfo}}}{{^licenseInfo}}NoLicense{{/licenseInfo}}" readme = "README.md" {{#poetry1}} repository = "https://{{{gitHost}}}/{{{gitUserId}}}/{{{gitRepoId}}}" -{{/poetry1}} -{{^poetry1}} - -[project.urls] -Repository = "https://{{{gitHost}}}/{{{gitUserId}}}/{{{gitRepoId}}}" - {{/poetry1}} keywords = ["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"] {{#poetry1}} @@ -68,8 +62,11 @@ dependencies = [ "pydantic (>=2)", "typing-extensions (>=4.7.1)" ] -{{/poetry1}} +[project.urls] +Repository = "https://{{{gitHost}}}/{{{gitUserId}}}/{{{gitRepoId}}}" + +{{/poetry1}} {{^poetry1}} [tool.poetry] requires-poetry = ">=2.0" From 835ff9fa805d98438aa42cd443544e629310f7ca Mon Sep 17 00:00:00 2001 From: Youri Westerman Date: Wed, 14 May 2025 14:22:14 +0200 Subject: [PATCH 6/6] Update samples --- .../pyproject.toml | 7 +++---- samples/client/echo_api/python/pyproject.toml | 7 +++---- .../openapi3/client/petstore/python-aiohttp/pyproject.toml | 7 +++---- samples/openapi3/client/petstore/python/pyproject.toml | 7 +++---- 4 files changed, 12 insertions(+), 16 deletions(-) diff --git a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/pyproject.toml b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/pyproject.toml index 5fabedef4dc3..602a4bba01a1 100644 --- a/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/pyproject.toml +++ b/samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/pyproject.toml @@ -7,10 +7,6 @@ authors = [ ] license = "Apache 2.0" readme = "README.md" - -[project.urls] -Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" - keywords = ["OpenAPI", "OpenAPI-Generator", "Echo Server API"] requires-python = "^3.9" @@ -21,6 +17,9 @@ dependencies = [ "typing-extensions (>=4.7.1)" ] +[project.urls] +Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" + [tool.poetry] requires-poetry = ">=2.0" diff --git a/samples/client/echo_api/python/pyproject.toml b/samples/client/echo_api/python/pyproject.toml index 5fabedef4dc3..602a4bba01a1 100644 --- a/samples/client/echo_api/python/pyproject.toml +++ b/samples/client/echo_api/python/pyproject.toml @@ -7,10 +7,6 @@ authors = [ ] license = "Apache 2.0" readme = "README.md" - -[project.urls] -Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" - keywords = ["OpenAPI", "OpenAPI-Generator", "Echo Server API"] requires-python = "^3.9" @@ -21,6 +17,9 @@ dependencies = [ "typing-extensions (>=4.7.1)" ] +[project.urls] +Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" + [tool.poetry] requires-poetry = ">=2.0" diff --git a/samples/openapi3/client/petstore/python-aiohttp/pyproject.toml b/samples/openapi3/client/petstore/python-aiohttp/pyproject.toml index fbb99858bb91..b19ccea78df0 100644 --- a/samples/openapi3/client/petstore/python-aiohttp/pyproject.toml +++ b/samples/openapi3/client/petstore/python-aiohttp/pyproject.toml @@ -7,10 +7,6 @@ authors = [ ] license = "Apache-2.0" readme = "README.md" - -[project.urls] -Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" - keywords = ["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"] requires-python = "^3.9" @@ -25,6 +21,9 @@ dependencies = [ "typing-extensions (>=4.7.1)" ] +[project.urls] +Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" + [tool.poetry] requires-poetry = ">=2.0" diff --git a/samples/openapi3/client/petstore/python/pyproject.toml b/samples/openapi3/client/petstore/python/pyproject.toml index 25a5e995d23b..fbf945b895c1 100644 --- a/samples/openapi3/client/petstore/python/pyproject.toml +++ b/samples/openapi3/client/petstore/python/pyproject.toml @@ -7,10 +7,6 @@ authors = [ ] license = "Apache-2.0" readme = "README.md" - -[project.urls] -Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" - keywords = ["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"] requires-python = "^3.9" @@ -23,6 +19,9 @@ dependencies = [ "typing-extensions (>=4.7.1)" ] +[project.urls] +Repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" + [tool.poetry] requires-poetry = ">=2.0"