Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/generators/python-pydantic-v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. | |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ public String generatePackageName(String packageName) {

@Override
public String generatorLanguageVersion() {
return "3.7+";
return ">=3.11,<3.15";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The last supported Python version is 3.13. Pydantic V1 does not work on Python 3.14 and greater.

ref: https://pydantic.dev/docs/validation/1.10/overview/

shall we exclude 3.14 in this change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I was thinking that since Pydantic v1 supports Python 3.14, we should support it too.

However, Python 3.15 is not supported.

See: pydantic/pydantic#13173 (comment)

Also, Pydantic v1.10.26 is the latest release that supports Python 3.14:

https://github.com/pydantic/pydantic/blob/v1.10.26/pyproject.toml#L24


steps:
- uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"]
include = ["{{packageName}}/py.typed"]

[tool.poetry.dependencies]
python = "^3.8"
python = ">=3.11,<3.15"

urllib3 = ">= 1.26.0"
python-dateutil = ">=2.8.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.14,<3.15"
{{#apiInfo}}
{{#apis}}
{{#-last}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# 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
#- "3.14-dev" # 3.14 development branch
#- "nightly" # nightly build
# command to install dependencies
install:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1: This matrix now runs the pydantic-v1 client on Python 3.14, but the repository’s pydantic-v1 integration workflow explicitly excludes 3.14. Remove 3.14 here until the pydantic-v1 dependency is compatible, otherwise every run of this generated workflow adds a known failing job.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At samples/client/echo_api/python-pydantic-v1/.github/workflows/python.yml, line 16:

<comment>This matrix now runs the pydantic-v1 client on Python 3.14, but the repository’s pydantic-v1 integration workflow explicitly excludes 3.14. Remove 3.14 here until the pydantic-v1 dependency is compatible, otherwise every run of this generated workflow adds a known failing job.</comment>

<file context>
@@ -13,7 +13,7 @@ jobs:
     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:
</file context>
Suggested change
python-version: ["3.11", "3.12", "3.13", "3.14"]
python-version: ["3.11", "3.12", "3.13"]

@Bernardoow Bernardoow Oct 21, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an issue with the workflow, which currently excludes Python 3.14.

As I mentioned in this comment I think we should support Pydantic v1 on Python 3.14.


steps:
- uses: actions/checkout@v4
Expand Down
19 changes: 8 additions & 11 deletions samples/client/echo_api/python-pydantic-v1/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 4 additions & 5 deletions samples/client/echo_api/python-pydantic-v1/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# 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
#- "3.14-dev" # 3.14 development branch
#- "nightly" # nightly build
# command to install dependencies
install:
Expand Down
2 changes: 1 addition & 1 deletion samples/client/echo_api/python-pydantic-v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion samples/client/echo_api/python-pydantic-v1/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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,<3.15"

urllib3 = ">= 1.26.0"
python-dateutil = ">=2.8.2"
Expand Down
2 changes: 1 addition & 1 deletion samples/client/echo_api/python-pydantic-v1/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# http://pypi.python.org/pypi/setuptools
NAME = "openapi-client"
VERSION = "1.0.0"
PYTHON_REQUIRES = ">=3.7"
PYTHON_REQUIRES = ">=3.14,<3.15"
REQUIRES = [
"urllib3 >= 1.26.0, < 3.0.0",
"python-dateutil",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# 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"
Comment thread
cubic-dev-ai[bot] marked this conversation as resolved.
# 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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"]
include = ["petstore_api/py.typed"]

[tool.poetry.dependencies]
python = "^3.8"
python = ">=3.11,<3.15"

urllib3 = ">= 1.26.0"
python-dateutil = ">=2.8.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# http://pypi.python.org/pypi/setuptools
NAME = "petstore-api"
VERSION = "1.0.0"
PYTHON_REQUIRES = ">=3.7"
PYTHON_REQUIRES = ">=3.14,<3.15"
REQUIRES = [
"urllib3 >= 1.26.0, < 3.0.0",
"python-dateutil",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 8 additions & 11 deletions samples/openapi3/client/petstore/python-pydantic-v1/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# 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
#- "3.14-dev" # 3.14 development branch
#- "nightly" # nightly build
# command to install dependencies
install:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"]
include = ["petstore_api/py.typed"]

[tool.poetry.dependencies]
python = "^3.8"
python = ">=3.11,<3.15"

urllib3 = ">= 1.26.0"
python-dateutil = ">=2.8.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# http://pypi.python.org/pypi/setuptools
NAME = "petstore-api"
VERSION = "1.0.0"
PYTHON_REQUIRES = ">=3.7"
PYTHON_REQUIRES = ">=3.14,<3.15"
REQUIRES = [
"urllib3 >= 1.26.0, < 3.0.0",
"python-dateutil",
Expand Down
Loading