From d0ed6fb3ce0e6b6df25fdb9b5b8206b74e8f5a51 Mon Sep 17 00:00:00 2001 From: Bernardo Gomes Date: Wed, 21 Oct 2026 07:27:16 -0300 Subject: [PATCH 1/5] Modernize Python version support in python-pydantic-v1 generator --- .../github-workflow.mustache | 2 +- .../python-pydantic-v1/gitlab-ci.mustache | 19 ++++++++----------- .../python-pydantic-v1/pyproject.mustache | 2 +- .../python-pydantic-v1/setup.mustache | 2 +- .../python-pydantic-v1/travis.mustache | 7 +++---- .../.github/workflows/python.yml | 2 +- .../python-pydantic-v1/.gitlab-ci.yml | 19 ++++++++----------- .../echo_api/python-pydantic-v1/.travis.yml | 7 +++---- .../python-pydantic-v1/pyproject.toml | 2 +- .../echo_api/python-pydantic-v1/setup.py | 2 +- .../.github/workflows/python.yml | 2 +- .../python-pydantic-v1-aiohttp/.gitlab-ci.yml | 19 ++++++++----------- .../python-pydantic-v1-aiohttp/.travis.yml | 7 +++---- .../python-pydantic-v1-aiohttp/pyproject.toml | 2 +- .../python-pydantic-v1-aiohttp/setup.py | 2 +- .../.github/workflows/python.yml | 2 +- .../python-pydantic-v1/.gitlab-ci.yml | 19 ++++++++----------- .../petstore/python-pydantic-v1/.travis.yml | 7 +++---- .../python-pydantic-v1/pyproject.toml | 2 +- .../petstore/python-pydantic-v1/setup.py | 2 +- 20 files changed, 56 insertions(+), 72 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python-pydantic-v1/github-workflow.mustache b/modules/openapi-generator/src/main/resources/python-pydantic-v1/github-workflow.mustache index d5320b3882fd..ea8b819740be 100644 --- a/modules/openapi-generator/src/main/resources/python-pydantic-v1/github-workflow.mustache +++ b/modules/openapi-generator/src/main/resources/python-pydantic-v1/github-workflow.mustache @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v4 diff --git a/modules/openapi-generator/src/main/resources/python-pydantic-v1/gitlab-ci.mustache b/modules/openapi-generator/src/main/resources/python-pydantic-v1/gitlab-ci.mustache index 8a6130a2f7b9..ce4a9a1feb28 100644 --- a/modules/openapi-generator/src/main/resources/python-pydantic-v1/gitlab-ci.mustache +++ b/modules/openapi-generator/src/main/resources/python-pydantic-v1/gitlab-ci.mustache @@ -14,18 +14,15 @@ stages: - pip install -r test-requirements.txt - pytest --cov={{{packageName}}} -pytest-3.7: +pytest-3.11: extends: .pytest - image: python:3.7-alpine -pytest-3.8: + image: python:3.11-alpine +pytest-3.12: extends: .pytest - image: python:3.8-alpine -pytest-3.9: + image: python:3.12-alpine +pytest-3.13: extends: .pytest - image: python:3.9-alpine -pytest-3.10: + image: python:3.13-alpine +pytest-3.14: extends: .pytest - image: python:3.10-alpine -pytest-3.11: - extends: .pytest - image: python:3.11-alpine + image: python:3.14-alpine diff --git a/modules/openapi-generator/src/main/resources/python-pydantic-v1/pyproject.mustache b/modules/openapi-generator/src/main/resources/python-pydantic-v1/pyproject.mustache index 4d300ce6f84d..1c039f8dba56 100644 --- a/modules/openapi-generator/src/main/resources/python-pydantic-v1/pyproject.mustache +++ b/modules/openapi-generator/src/main/resources/python-pydantic-v1/pyproject.mustache @@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"] include = ["{{packageName}}/py.typed"] [tool.poetry.dependencies] -python = "^3.8" +python = ">=3.11" urllib3 = ">= 1.26.0" python-dateutil = ">=2.8.2" diff --git a/modules/openapi-generator/src/main/resources/python-pydantic-v1/setup.mustache b/modules/openapi-generator/src/main/resources/python-pydantic-v1/setup.mustache index 1960b0f5113c..466aea8dcf10 100644 --- a/modules/openapi-generator/src/main/resources/python-pydantic-v1/setup.mustache +++ b/modules/openapi-generator/src/main/resources/python-pydantic-v1/setup.mustache @@ -13,7 +13,7 @@ from setuptools import setup, find_packages # noqa: H301 # http://pypi.python.org/pypi/setuptools NAME = "{{{projectName}}}" VERSION = "{{packageVersion}}" -PYTHON_REQUIRES = ">=3.7" +PYTHON_REQUIRES = ">=3.11" {{#apiInfo}} {{#apis}} {{#-last}} diff --git a/modules/openapi-generator/src/main/resources/python-pydantic-v1/travis.mustache b/modules/openapi-generator/src/main/resources/python-pydantic-v1/travis.mustache index 53cb57e845dd..b51627caec93 100644 --- a/modules/openapi-generator/src/main/resources/python-pydantic-v1/travis.mustache +++ b/modules/openapi-generator/src/main/resources/python-pydantic-v1/travis.mustache @@ -1,11 +1,10 @@ # ref: https://docs.travis-ci.com/user/languages/python language: python python: - - "3.7" - - "3.8" - - "3.9" - - "3.10" - "3.11" + - "3.12" + - "3.13" + - "3.14" # uncomment the following if needed #- "3.11-dev" # 3.11 development branch #- "nightly" # nightly build diff --git a/samples/client/echo_api/python-pydantic-v1/.github/workflows/python.yml b/samples/client/echo_api/python-pydantic-v1/.github/workflows/python.yml index 0502614225ab..2bdc53706531 100644 --- a/samples/client/echo_api/python-pydantic-v1/.github/workflows/python.yml +++ b/samples/client/echo_api/python-pydantic-v1/.github/workflows/python.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v4 diff --git a/samples/client/echo_api/python-pydantic-v1/.gitlab-ci.yml b/samples/client/echo_api/python-pydantic-v1/.gitlab-ci.yml index 29da7211174d..e847da99fb55 100644 --- a/samples/client/echo_api/python-pydantic-v1/.gitlab-ci.yml +++ b/samples/client/echo_api/python-pydantic-v1/.gitlab-ci.yml @@ -14,18 +14,15 @@ stages: - pip install -r test-requirements.txt - pytest --cov=openapi_client -pytest-3.7: +pytest-3.11: extends: .pytest - image: python:3.7-alpine -pytest-3.8: + image: python:3.11-alpine +pytest-3.12: extends: .pytest - image: python:3.8-alpine -pytest-3.9: + image: python:3.12-alpine +pytest-3.13: extends: .pytest - image: python:3.9-alpine -pytest-3.10: + image: python:3.13-alpine +pytest-3.14: extends: .pytest - image: python:3.10-alpine -pytest-3.11: - extends: .pytest - image: python:3.11-alpine + image: python:3.14-alpine diff --git a/samples/client/echo_api/python-pydantic-v1/.travis.yml b/samples/client/echo_api/python-pydantic-v1/.travis.yml index fd888f75d385..a97da4dd5aaa 100644 --- a/samples/client/echo_api/python-pydantic-v1/.travis.yml +++ b/samples/client/echo_api/python-pydantic-v1/.travis.yml @@ -1,11 +1,10 @@ # ref: https://docs.travis-ci.com/user/languages/python language: python python: - - "3.7" - - "3.8" - - "3.9" - - "3.10" - "3.11" + - "3.12" + - "3.13" + - "3.14" # uncomment the following if needed #- "3.11-dev" # 3.11 development branch #- "nightly" # nightly build diff --git a/samples/client/echo_api/python-pydantic-v1/pyproject.toml b/samples/client/echo_api/python-pydantic-v1/pyproject.toml index ff54392bbebb..791c86a1b682 100644 --- a/samples/client/echo_api/python-pydantic-v1/pyproject.toml +++ b/samples/client/echo_api/python-pydantic-v1/pyproject.toml @@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "Echo Server API"] include = ["openapi_client/py.typed"] [tool.poetry.dependencies] -python = "^3.8" +python = ">=3.11" urllib3 = ">= 1.26.0" python-dateutil = ">=2.8.2" diff --git a/samples/client/echo_api/python-pydantic-v1/setup.py b/samples/client/echo_api/python-pydantic-v1/setup.py index 7551181347d1..498619d709fa 100644 --- a/samples/client/echo_api/python-pydantic-v1/setup.py +++ b/samples/client/echo_api/python-pydantic-v1/setup.py @@ -23,7 +23,7 @@ # http://pypi.python.org/pypi/setuptools NAME = "openapi-client" VERSION = "1.0.0" -PYTHON_REQUIRES = ">=3.7" +PYTHON_REQUIRES = ">=3.11" REQUIRES = [ "urllib3 >= 1.26.0, < 3.0.0", "python-dateutil", diff --git a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/.github/workflows/python.yml b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/.github/workflows/python.yml index 106b2306baf6..1998f28e8d74 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/.github/workflows/python.yml +++ b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/.github/workflows/python.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v4 diff --git a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/.gitlab-ci.yml b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/.gitlab-ci.yml index b4719756536b..019d2b910926 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/.gitlab-ci.yml +++ b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/.gitlab-ci.yml @@ -14,18 +14,15 @@ stages: - pip install -r test-requirements.txt - pytest --cov=petstore_api -pytest-3.7: +pytest-3.11: extends: .pytest - image: python:3.7-alpine -pytest-3.8: + image: python:3.11-alpine +pytest-3.12: extends: .pytest - image: python:3.8-alpine -pytest-3.9: + image: python:3.12-alpine +pytest-3.13: extends: .pytest - image: python:3.9-alpine -pytest-3.10: + image: python:3.13-alpine +pytest-3.14: extends: .pytest - image: python:3.10-alpine -pytest-3.11: - extends: .pytest - image: python:3.11-alpine + image: python:3.14-alpine diff --git a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/.travis.yml b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/.travis.yml index bb28138c5b1a..ac9aa3c4e50f 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/.travis.yml +++ b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/.travis.yml @@ -1,11 +1,10 @@ # ref: https://docs.travis-ci.com/user/languages/python language: python python: - - "3.7" - - "3.8" - - "3.9" - - "3.10" - "3.11" + - "3.12" + - "3.13" + - "3.14" # uncomment the following if needed #- "3.11-dev" # 3.11 development branch #- "nightly" # nightly build diff --git a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/pyproject.toml b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/pyproject.toml index 99cb8cdef767..76dfc259f21b 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/pyproject.toml +++ b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/pyproject.toml @@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"] include = ["petstore_api/py.typed"] [tool.poetry.dependencies] -python = "^3.8" +python = ">=3.11" urllib3 = ">= 1.26.0" python-dateutil = ">=2.8.2" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/setup.py b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/setup.py index 3f90b0e52605..c8d809204cfc 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/setup.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/setup.py @@ -22,7 +22,7 @@ # http://pypi.python.org/pypi/setuptools NAME = "petstore-api" VERSION = "1.0.0" -PYTHON_REQUIRES = ">=3.7" +PYTHON_REQUIRES = ">=3.11" REQUIRES = [ "urllib3 >= 1.26.0, < 3.0.0", "python-dateutil", diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/.github/workflows/python.yml b/samples/openapi3/client/petstore/python-pydantic-v1/.github/workflows/python.yml index 106b2306baf6..1998f28e8d74 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/.github/workflows/python.yml +++ b/samples/openapi3/client/petstore/python-pydantic-v1/.github/workflows/python.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.11", "3.12", "3.13", "3.14"] steps: - uses: actions/checkout@v4 diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/.gitlab-ci.yml b/samples/openapi3/client/petstore/python-pydantic-v1/.gitlab-ci.yml index b4719756536b..019d2b910926 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/.gitlab-ci.yml +++ b/samples/openapi3/client/petstore/python-pydantic-v1/.gitlab-ci.yml @@ -14,18 +14,15 @@ stages: - pip install -r test-requirements.txt - pytest --cov=petstore_api -pytest-3.7: +pytest-3.11: extends: .pytest - image: python:3.7-alpine -pytest-3.8: + image: python:3.11-alpine +pytest-3.12: extends: .pytest - image: python:3.8-alpine -pytest-3.9: + image: python:3.12-alpine +pytest-3.13: extends: .pytest - image: python:3.9-alpine -pytest-3.10: + image: python:3.13-alpine +pytest-3.14: extends: .pytest - image: python:3.10-alpine -pytest-3.11: - extends: .pytest - image: python:3.11-alpine + image: python:3.14-alpine diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/.travis.yml b/samples/openapi3/client/petstore/python-pydantic-v1/.travis.yml index bb28138c5b1a..ac9aa3c4e50f 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/.travis.yml +++ b/samples/openapi3/client/petstore/python-pydantic-v1/.travis.yml @@ -1,11 +1,10 @@ # ref: https://docs.travis-ci.com/user/languages/python language: python python: - - "3.7" - - "3.8" - - "3.9" - - "3.10" - "3.11" + - "3.12" + - "3.13" + - "3.14" # uncomment the following if needed #- "3.11-dev" # 3.11 development branch #- "nightly" # nightly build diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/pyproject.toml b/samples/openapi3/client/petstore/python-pydantic-v1/pyproject.toml index 1065ebed888c..4c7fa27d27bc 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/pyproject.toml +++ b/samples/openapi3/client/petstore/python-pydantic-v1/pyproject.toml @@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"] include = ["petstore_api/py.typed"] [tool.poetry.dependencies] -python = "^3.8" +python = ">=3.11" urllib3 = ">= 1.26.0" python-dateutil = ">=2.8.2" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/setup.py b/samples/openapi3/client/petstore/python-pydantic-v1/setup.py index 40ca1c9a4bf6..3511ac396255 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/setup.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/setup.py @@ -22,7 +22,7 @@ # http://pypi.python.org/pypi/setuptools NAME = "petstore-api" VERSION = "1.0.0" -PYTHON_REQUIRES = ">=3.7" +PYTHON_REQUIRES = ">=3.11" REQUIRES = [ "urllib3 >= 1.26.0, < 3.0.0", "python-dateutil", From 0c5c86c2c3512a59fa32cb01288e394c7f908b09 Mon Sep 17 00:00:00 2001 From: Bernardo Gomes Date: Wed, 21 Oct 2026 09:02:28 -0300 Subject: [PATCH 2/5] python needs to python = >=3.11,<3.15 --- .../src/main/resources/python-pydantic-v1/pyproject.mustache | 2 +- samples/client/echo_api/python-pydantic-v1/pyproject.toml | 2 +- .../client/petstore/python-pydantic-v1-aiohttp/pyproject.toml | 2 +- .../openapi3/client/petstore/python-pydantic-v1/pyproject.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python-pydantic-v1/pyproject.mustache b/modules/openapi-generator/src/main/resources/python-pydantic-v1/pyproject.mustache index 1c039f8dba56..555c6f81526b 100644 --- a/modules/openapi-generator/src/main/resources/python-pydantic-v1/pyproject.mustache +++ b/modules/openapi-generator/src/main/resources/python-pydantic-v1/pyproject.mustache @@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"] include = ["{{packageName}}/py.typed"] [tool.poetry.dependencies] -python = ">=3.11" +python = ">=3.11,<3.15" urllib3 = ">= 1.26.0" python-dateutil = ">=2.8.2" diff --git a/samples/client/echo_api/python-pydantic-v1/pyproject.toml b/samples/client/echo_api/python-pydantic-v1/pyproject.toml index 791c86a1b682..84f5d7c84511 100644 --- a/samples/client/echo_api/python-pydantic-v1/pyproject.toml +++ b/samples/client/echo_api/python-pydantic-v1/pyproject.toml @@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "Echo Server API"] include = ["openapi_client/py.typed"] [tool.poetry.dependencies] -python = ">=3.11" +python = ">=3.11,<3.15" urllib3 = ">= 1.26.0" python-dateutil = ">=2.8.2" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/pyproject.toml b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/pyproject.toml index 76dfc259f21b..bd324d2d4bc3 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/pyproject.toml +++ b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/pyproject.toml @@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"] include = ["petstore_api/py.typed"] [tool.poetry.dependencies] -python = ">=3.11" +python = ">=3.11,<3.15" urllib3 = ">= 1.26.0" python-dateutil = ">=2.8.2" diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/pyproject.toml b/samples/openapi3/client/petstore/python-pydantic-v1/pyproject.toml index 4c7fa27d27bc..8804af680534 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/pyproject.toml +++ b/samples/openapi3/client/petstore/python-pydantic-v1/pyproject.toml @@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"] include = ["petstore_api/py.typed"] [tool.poetry.dependencies] -python = ">=3.11" +python = ">=3.11,<3.15" urllib3 = ">= 1.26.0" python-dateutil = ">=2.8.2" From 15cb94b7f6ca0fff4c0645520a29750e16d655e3 Mon Sep 17 00:00:00 2001 From: Bernardo Gomes Date: Wed, 21 Oct 2026 09:11:52 -0300 Subject: [PATCH 3/5] fix generator language version --- docs/generators/python-pydantic-v1.md | 2 +- .../codegen/languages/PythonPydanticV1ClientCodegen.java | 2 +- samples/client/echo_api/python-pydantic-v1/README.md | 2 +- .../client/petstore/python-pydantic-v1-aiohttp/README.md | 2 +- samples/openapi3/client/petstore/python-pydantic-v1/README.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/generators/python-pydantic-v1.md b/docs/generators/python-pydantic-v1.md index eff68837b4cb..b5e7e4ea6f11 100644 --- a/docs/generators/python-pydantic-v1.md +++ b/docs/generators/python-pydantic-v1.md @@ -10,7 +10,7 @@ title: Documentation for the python-pydantic-v1 Generator | generator stability | STABLE | | | generator type | CLIENT | | | generator language | Python | | -| generator language version | 3.7+ | | +| generator language version | >=3.11,<3.15 | | | generator default templating engine | mustache | | | helpTxt | Generates a Python client library. | | diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonPydanticV1ClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonPydanticV1ClientCodegen.java index 6a233c528d54..9dbefe1c8e5e 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonPydanticV1ClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonPydanticV1ClientCodegen.java @@ -440,7 +440,7 @@ public String generatePackageName(String packageName) { @Override public String generatorLanguageVersion() { - return "3.7+"; + return ">=3.11,<3.15"; } @Override diff --git a/samples/client/echo_api/python-pydantic-v1/README.md b/samples/client/echo_api/python-pydantic-v1/README.md index b3cb7882f56b..0e9a85707dae 100644 --- a/samples/client/echo_api/python-pydantic-v1/README.md +++ b/samples/client/echo_api/python-pydantic-v1/README.md @@ -10,7 +10,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python >=3.11,<3.15 ## Installation & Usage ### pip install diff --git a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/README.md b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/README.md index 0cd9aaf473d5..5b431fab9cf1 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/README.md +++ b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/README.md @@ -10,7 +10,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python >=3.11,<3.15 ## Installation & Usage ### pip install diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/README.md b/samples/openapi3/client/petstore/python-pydantic-v1/README.md index b144cc3dc729..56fea3c5a91c 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/README.md +++ b/samples/openapi3/client/petstore/python-pydantic-v1/README.md @@ -10,7 +10,7 @@ This Python package is automatically generated by the [OpenAPI Generator](https: ## Requirements. -Python 3.7+ +Python >=3.11,<3.15 ## Installation & Usage ### pip install From 568d5ef97b2b6fbb0f4be22f1e2f9a4b66779900 Mon Sep 17 00:00:00 2001 From: Bernardo Gomes Date: Wed, 21 Oct 2026 09:28:53 -0300 Subject: [PATCH 4/5] improve setup python version --- .../src/main/resources/python-pydantic-v1/setup.mustache | 2 +- samples/client/echo_api/python-pydantic-v1/setup.py | 2 +- .../client/petstore/python-pydantic-v1-aiohttp/setup.py | 2 +- samples/openapi3/client/petstore/python-pydantic-v1/setup.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python-pydantic-v1/setup.mustache b/modules/openapi-generator/src/main/resources/python-pydantic-v1/setup.mustache index 466aea8dcf10..37c4716f34a0 100644 --- a/modules/openapi-generator/src/main/resources/python-pydantic-v1/setup.mustache +++ b/modules/openapi-generator/src/main/resources/python-pydantic-v1/setup.mustache @@ -13,7 +13,7 @@ from setuptools import setup, find_packages # noqa: H301 # http://pypi.python.org/pypi/setuptools NAME = "{{{projectName}}}" VERSION = "{{packageVersion}}" -PYTHON_REQUIRES = ">=3.11" +PYTHON_REQUIRES = ">=3.14,<3.15" {{#apiInfo}} {{#apis}} {{#-last}} diff --git a/samples/client/echo_api/python-pydantic-v1/setup.py b/samples/client/echo_api/python-pydantic-v1/setup.py index 498619d709fa..e8dad677d9a2 100644 --- a/samples/client/echo_api/python-pydantic-v1/setup.py +++ b/samples/client/echo_api/python-pydantic-v1/setup.py @@ -23,7 +23,7 @@ # http://pypi.python.org/pypi/setuptools NAME = "openapi-client" VERSION = "1.0.0" -PYTHON_REQUIRES = ">=3.11" +PYTHON_REQUIRES = ">=3.14,<3.15" REQUIRES = [ "urllib3 >= 1.26.0, < 3.0.0", "python-dateutil", diff --git a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/setup.py b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/setup.py index c8d809204cfc..aa6f010976b3 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/setup.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/setup.py @@ -22,7 +22,7 @@ # http://pypi.python.org/pypi/setuptools NAME = "petstore-api" VERSION = "1.0.0" -PYTHON_REQUIRES = ">=3.11" +PYTHON_REQUIRES = ">=3.14,<3.15" REQUIRES = [ "urllib3 >= 1.26.0, < 3.0.0", "python-dateutil", diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/setup.py b/samples/openapi3/client/petstore/python-pydantic-v1/setup.py index 3511ac396255..5ec38d8dafce 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/setup.py +++ b/samples/openapi3/client/petstore/python-pydantic-v1/setup.py @@ -22,7 +22,7 @@ # http://pypi.python.org/pypi/setuptools NAME = "petstore-api" VERSION = "1.0.0" -PYTHON_REQUIRES = ">=3.11" +PYTHON_REQUIRES = ">=3.14,<3.15" REQUIRES = [ "urllib3 >= 1.26.0, < 3.0.0", "python-dateutil", From 60f8fd6a917c0da76d5139f64f223857e3d87624 Mon Sep 17 00:00:00 2001 From: Bernardo Gomes Date: Wed, 21 Oct 2026 09:29:06 -0300 Subject: [PATCH 5/5] fix travis.yml --- .../src/main/resources/python-pydantic-v1/travis.mustache | 2 +- samples/client/echo_api/python-pydantic-v1/.travis.yml | 2 +- .../client/petstore/python-pydantic-v1-aiohttp/.travis.yml | 2 +- samples/openapi3/client/petstore/python-pydantic-v1/.travis.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python-pydantic-v1/travis.mustache b/modules/openapi-generator/src/main/resources/python-pydantic-v1/travis.mustache index b51627caec93..d460567059b4 100644 --- a/modules/openapi-generator/src/main/resources/python-pydantic-v1/travis.mustache +++ b/modules/openapi-generator/src/main/resources/python-pydantic-v1/travis.mustache @@ -6,7 +6,7 @@ python: - "3.13" - "3.14" # uncomment the following if needed - #- "3.11-dev" # 3.11 development branch + #- "3.14-dev" # 3.14 development branch #- "nightly" # nightly build # command to install dependencies install: diff --git a/samples/client/echo_api/python-pydantic-v1/.travis.yml b/samples/client/echo_api/python-pydantic-v1/.travis.yml index a97da4dd5aaa..d4af299e236f 100644 --- a/samples/client/echo_api/python-pydantic-v1/.travis.yml +++ b/samples/client/echo_api/python-pydantic-v1/.travis.yml @@ -6,7 +6,7 @@ python: - "3.13" - "3.14" # uncomment the following if needed - #- "3.11-dev" # 3.11 development branch + #- "3.14-dev" # 3.14 development branch #- "nightly" # nightly build # command to install dependencies install: diff --git a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/.travis.yml b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/.travis.yml index ac9aa3c4e50f..98557b02a2f7 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/.travis.yml +++ b/samples/openapi3/client/petstore/python-pydantic-v1-aiohttp/.travis.yml @@ -6,7 +6,7 @@ python: - "3.13" - "3.14" # uncomment the following if needed - #- "3.11-dev" # 3.11 development branch + #- "3.14-dev" # 3.14 development branch #- "nightly" # nightly build # command to install dependencies install: diff --git a/samples/openapi3/client/petstore/python-pydantic-v1/.travis.yml b/samples/openapi3/client/petstore/python-pydantic-v1/.travis.yml index ac9aa3c4e50f..98557b02a2f7 100644 --- a/samples/openapi3/client/petstore/python-pydantic-v1/.travis.yml +++ b/samples/openapi3/client/petstore/python-pydantic-v1/.travis.yml @@ -6,7 +6,7 @@ python: - "3.13" - "3.14" # uncomment the following if needed - #- "3.11-dev" # 3.11 development branch + #- "3.14-dev" # 3.14 development branch #- "nightly" # nightly build # command to install dependencies install: