Skip to content

Commit 99f49c2

Browse files
authored
Drop python 3.9 and support python 3.14 in python generator (#22926)
* templates * samples
1 parent 5b1684c commit 99f49c2

File tree

40 files changed

+61
-61
lines changed

40 files changed

+61
-61
lines changed

.github/workflows/samples-python-client-echo-api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ jobs:
1818
- samples/client/echo_api/python
1919
- samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent
2020
python-version:
21-
- "3.9"
2221
- "3.10"
2322
- "3.11"
2423
- "3.12"
2524
- "3.13"
25+
- "3.14"
2626
steps:
2727
- uses: actions/checkout@v5
2828
- uses: actions/setup-python@v6

.github/workflows/samples-python-petstore.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ jobs:
2727
fail-fast: false
2828
matrix:
2929
python-version:
30-
- "3.9"
3130
- "3.10"
3231
- "3.11"
3332
- "3.12"
3433
- "3.13"
34+
- "3.14"
3535
sample:
3636
- samples/openapi3/client/petstore/python-aiohttp
3737
- samples/openapi3/client/petstore/python-httpx

docs/generators/python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ title: Documentation for the python Generator
1010
| generator stability | STABLE | |
1111
| generator type | CLIENT | |
1212
| generator language | Python | |
13-
| generator language version | 3.9+ | |
13+
| generator language version | 3.10+ | |
1414
| generator default templating engine | mustache | |
1515
| helpTxt | Generates a Python client library. | |
1616

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ public String generatePackageName(String packageName) {
442442

443443
@Override
444444
public String generatorLanguageVersion() {
445-
return "3.9+";
445+
return "3.10+";
446446
}
447447

448448
@Override

modules/openapi-generator/src/main/resources/python/github-workflow.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
strategy:
1919
matrix:
20-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
20+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
2121

2222
steps:
2323
- uses: actions/checkout@v4

modules/openapi-generator/src/main/resources/python/gitlab-ci.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ stages:
1414
- pip install -r test-requirements.txt
1515
- pytest --cov={{{packageName}}}
1616

17-
pytest-3.9:
18-
extends: .pytest
19-
image: python:3.9-alpine
2017
pytest-3.10:
2118
extends: .pytest
2219
image: python:3.10-alpine
@@ -29,3 +26,6 @@ pytest-3.12:
2926
pytest-3.13:
3027
extends: .pytest
3128
image: python:3.13-alpine
29+
pytest-3.14:
30+
extends: .pytest
31+
image: python:3.14-alpine

modules/openapi-generator/src/main/resources/python/pyproject.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "{{{appName}}}"]
3232
include = ["{{packageName}}/py.typed"]
3333

3434
[tool.poetry.dependencies]
35-
python = "^3.9"
35+
python = "^3.10"
3636
{{^async}}
3737
urllib3 = ">= 2.1.0, < 3.0.0"
3838
{{/async}}

modules/openapi-generator/src/main/resources/python/setup.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ from setuptools import setup, find_packages # noqa: H301
1010
# http://pypi.python.org/pypi/setuptools
1111
NAME = "{{{projectName}}}"
1212
VERSION = "{{packageVersion}}"
13-
PYTHON_REQUIRES = ">= 3.9"
13+
PYTHON_REQUIRES = ">= 3.10"
1414
REQUIRES = [
1515
{{^async}}
1616
"urllib3 >= 2.1.0, < 3.0.0",

modules/openapi-generator/src/main/resources/python/travis.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# ref: https://docs.travis-ci.com/user/languages/python
22
language: python
33
python:
4-
- "3.9"
54
- "3.10"
65
- "3.11"
76
- "3.12"
87
- "3.13"
8+
- "3.14"
99
# uncomment the following if needed
10-
#- "3.13-dev" # 3.13 development branch
10+
#- "3.14-dev" # 3.14 development branch
1111
#- "nightly" # nightly build
1212
# command to install dependencies
1313
install:

samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent/.github/workflows/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
strategy:
1818
matrix:
19-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
19+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
2020

2121
steps:
2222
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)