Skip to content

Commit d5ca18d

Browse files
committed
Drop support for python 3.8 and add support for 3.13 in python generator templates
1 parent 02307db commit d5ca18d

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

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
@@ -428,7 +428,7 @@ public String generatePackageName(String packageName) {
428428

429429
@Override
430430
public String generatorLanguageVersion() {
431-
return "3.8+";
431+
return "3.9+";
432432
}
433433

434434
@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
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
17+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1818

1919
steps:
2020
- 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.8:
18-
extends: .pytest
19-
image: python:3.8-alpine
2017
pytest-3.9:
2118
extends: .pytest
2219
image: python:3.9-alpine
@@ -29,3 +26,6 @@ pytest-3.11:
2926
pytest-3.12:
3027
extends: .pytest
3128
image: python:3.12-alpine
29+
pytest-3.13:
30+
extends: .pytest
31+
image: python:3.13-alpine

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

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

1212
[tool.poetry.dependencies]
13-
python = "^3.8"
13+
python = "^3.9"
1414

1515
urllib3 = ">= 2.1.0, < 3.0.0"
1616
python-dateutil = ">= 2.8.2"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ from setuptools import setup, find_packages # noqa: H301
1212
# http://pypi.python.org/pypi/setuptools
1313
NAME = "{{{projectName}}}"
1414
VERSION = "{{packageVersion}}"
15-
PYTHON_REQUIRES = ">= 3.8"
15+
PYTHON_REQUIRES = ">= 3.9"
1616
REQUIRES = [
1717
"urllib3 >= 2.1.0, < 3.0.0",
1818
"python-dateutil >= 2.8.2",

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.8"
54
- "3.9"
65
- "3.10"
76
- "3.11"
87
- "3.12"
8+
- "3.13"
99
# uncomment the following if needed
10-
#- "3.12-dev" # 3.12 development branch
10+
#- "3.13-dev" # 3.13 development branch
1111
#- "nightly" # nightly build
1212
# command to install dependencies
1313
install:

0 commit comments

Comments
 (0)