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
1 change: 0 additions & 1 deletion .github/workflows/samples-python-client-echo-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
- samples/client/echo_api/python
- samples/client/echo_api/python-disallowAdditionalPropertiesIfNotPresent
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
fail-fast: false
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/samples-python-fastapi-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: '3.10'
python-version: "3.11"
- name: Install dependencies
working-directory: ${{ matrix.sample }}
run: |
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/samples-python-petstore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ jobs:
fail-fast: false
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
# clients
- samples/client/echo_api/python-pydantic-v1/
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/samples-python-pydantic-v1-petstore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
fail-fast: false
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
Expand Down
2 changes: 1 addition & 1 deletion docs/generators/python-fastapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ title: Documentation for the python-fastapi Generator
| generator stability | BETA | |
| generator type | SERVER | |
| generator language | Python | |
| generator language version | 3.10 | |
| generator language version | 3.11 | |
| generator default templating engine | mustache | |
| helpTxt | Generates a Python FastAPI server (beta). Models are defined with the pydantic library | |

Expand Down
2 changes: 1 addition & 1 deletion docs/generators/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ title: Documentation for the python Generator
| generator stability | STABLE | |
| generator type | CLIENT | |
| generator language | Python | |
| generator language version | 3.10+ | |
| generator language version | 3.11+ | |
| 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 @@ -604,7 +604,7 @@ public String generatePackageName(String packageName) {

@Override
public String generatorLanguageVersion() {
return "3.10+";
return "3.11+";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ public void postProcess() {

@Override
public String generatorLanguageVersion() {
return "3.10";
return "3.11";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"]

steps:
- uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ stages:
- pip install -r test-requirements.txt
- pytest --cov={{{packageName}}}

pytest-3.10:
extends: .pytest
image: python:3.10-alpine
pytest-3.11:
extends: .pytest
image: python:3.11-alpine
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ packages = [
include = ["{{#sourceFolder}}{{{sourceFolder}}}/{{/sourceFolder}}{{packageName}}/py.typed"]

[tool.poetry.dependencies]
python = "^3.10"
python = "^3.11"
{{^async}}
urllib3 = ">= 2.7.0, < 3.0.0"
{{/async}}
Expand All @@ -60,7 +60,7 @@ pydantic = ">= 2.11"
typing-extensions = ">= 4.7.1"
{{/poetry1}}
{{^poetry1}}
requires-python = ">=3.10"
requires-python = ">=3.11"

dependencies = [
{{^async}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ from setuptools import setup, find_packages # noqa: H301
# http://pypi.python.org/pypi/setuptools
NAME = "{{{projectName}}}"
VERSION = "{{packageVersion}}"
PYTHON_REQUIRES = ">= 3.10"
PYTHON_REQUIRES = ">= 3.11"

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.

P2: Changing this constant does not enforce the new minimum because setup() never receives python_requires=PYTHON_REQUIRES. Pass the constant into setup() so generated distributions publish the Python 3.11 requirement and installers reject unsupported Python versions.

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 modules/openapi-generator/src/main/resources/python/setup.mustache, line 13:

<comment>Changing this constant does not enforce the new minimum because `setup()` never receives `python_requires=PYTHON_REQUIRES`. Pass the constant into `setup()` so generated distributions publish the Python 3.11 requirement and installers reject unsupported Python versions.</comment>

<file context>
@@ -10,7 +10,7 @@ from setuptools import setup, find_packages  # noqa: H301
 NAME = "{{{projectName}}}"
 VERSION = "{{packageVersion}}"
-PYTHON_REQUIRES = ">= 3.10"
+PYTHON_REQUIRES = ">= 3.11"
 REQUIRES = [
 {{^async}}
</file context>

REQUIRES = [
{{^async}}
"urllib3 >= 2.7.0, < 3.0.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# ref: https://docs.travis-ci.com/user/languages/python
language: python
python:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"]

steps:
- uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ stages:
- pip install -r test-requirements.txt
- pytest --cov=openapi_client

pytest-3.10:
extends: .pytest
image: python:3.10-alpine
pytest-3.11:
extends: .pytest
image: python:3.11-alpine
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# ref: https://docs.travis-ci.com/user/languages/python
language: python
python:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
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.10+
Python 3.11+

Packaging uses standard `[project]` metadata and `[dependency-groups]` (PEP 621/735).
Install the package with `python -m pip install .`; install development dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = [
license = { text = "Apache 2.0" }
readme = "README.md"
keywords = ["OpenAPI", "OpenAPI-Generator", "Echo Server API"]
requires-python = ">=3.10"
requires-python = ">=3.11"

dependencies = [
"urllib3 (>=2.7.0,<3.0.0)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# http://pypi.python.org/pypi/setuptools
NAME = "openapi-client"
VERSION = "1.0.0"
PYTHON_REQUIRES = ">= 3.10"
PYTHON_REQUIRES = ">= 3.11"

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.

P2: This update does not enforce the Python 3.11 floor because PYTHON_REQUIRES is never passed to setup(). Add python_requires=PYTHON_REQUIRES to the setup() call so package metadata rejects Python 3.10.

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-disallowAdditionalPropertiesIfNotPresent/setup.py, line 24:

<comment>This update does not enforce the Python 3.11 floor because `PYTHON_REQUIRES` is never passed to `setup()`. Add `python_requires=PYTHON_REQUIRES` to the `setup()` call so package metadata rejects Python 3.10.</comment>

<file context>
@@ -21,7 +21,7 @@
 NAME = "openapi-client"
 VERSION = "1.0.0"
-PYTHON_REQUIRES = ">= 3.10"
+PYTHON_REQUIRES = ">= 3.11"
 REQUIRES = [
     "urllib3 >= 2.7.0, < 3.0.0",
</file context>

REQUIRES = [
"urllib3 >= 2.7.0, < 3.0.0",
"python-dateutil >= 2.8.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"]

steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 0 additions & 3 deletions samples/client/echo_api/python/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ stages:
- pip install -r test-requirements.txt
- pytest --cov=openapi_client

pytest-3.10:
extends: .pytest
image: python:3.10-alpine
pytest-3.11:
extends: .pytest
image: python:3.11-alpine
Expand Down
1 change: 0 additions & 1 deletion samples/client/echo_api/python/.travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# ref: https://docs.travis-ci.com/user/languages/python
language: python
python:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
Expand Down
2 changes: 1 addition & 1 deletion samples/client/echo_api/python/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.10+
Python 3.11+

Packaging uses standard `[project]` metadata and `[dependency-groups]` (PEP 621/735).
Install the package with `python -m pip install .`; install development dependencies
Expand Down
2 changes: 1 addition & 1 deletion samples/client/echo_api/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = [
license = { text = "Apache 2.0" }
readme = "README.md"
keywords = ["OpenAPI", "OpenAPI-Generator", "Echo Server API"]
requires-python = ">=3.10"
requires-python = ">=3.11"

dependencies = [
"urllib3 (>=2.7.0,<3.0.0)",
Expand Down
2 changes: 1 addition & 1 deletion samples/client/echo_api/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# http://pypi.python.org/pypi/setuptools
NAME = "openapi-client"
VERSION = "1.0.0"
PYTHON_REQUIRES = ">= 3.10"
PYTHON_REQUIRES = ">= 3.11"
REQUIRES = [
"urllib3 >= 2.7.0, < 3.0.0",
"python-dateutil >= 2.8.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"]

steps:
- uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ stages:
- pip install -r test-requirements.txt
- pytest --cov=legacy_model_dict_client

pytest-3.10:
extends: .pytest
image: python:3.10-alpine
pytest-3.11:
extends: .pytest
image: python:3.11-alpine
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# ref: https://docs.travis-ci.com/user/languages/python
language: python
python:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
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.10+
Python 3.11+

Packaging uses standard `[project]` metadata and `[dependency-groups]` (PEP 621/735).
Install the package with `python -m pip install .`; install development dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ authors = [
]
readme = "README.md"
keywords = ["OpenAPI", "OpenAPI-Generator", "Legacy model dictionaries"]
requires-python = ">=3.10"
requires-python = ">=3.11"

dependencies = [
"urllib3 (>=2.7.0,<3.0.0)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# http://pypi.python.org/pypi/setuptools
NAME = "legacy-model-dict-client"
VERSION = "1.0.0"
PYTHON_REQUIRES = ">= 3.10"
PYTHON_REQUIRES = ">= 3.11"

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.

P2: This version change does not affect the published package because setup() never passes PYTHON_REQUIRES as python_requires; add python_requires=PYTHON_REQUIRES so installers reject Python 3.10.

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/others/python-legacy-model-dictionaries/setup.py, line 23:

<comment>This version change does not affect the published package because `setup()` never passes `PYTHON_REQUIRES` as `python_requires`; add `python_requires=PYTHON_REQUIRES` so installers reject Python 3.10.</comment>

<file context>
@@ -20,7 +20,7 @@
 NAME = "legacy-model-dict-client"
 VERSION = "1.0.0"
-PYTHON_REQUIRES = ">= 3.10"
+PYTHON_REQUIRES = ">= 3.11"
 REQUIRES = [
     "urllib3 >= 2.7.0, < 3.0.0",
</file context>

REQUIRES = [
"urllib3 >= 2.7.0, < 3.0.0",
"python-dateutil >= 2.8.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"]

steps:
- uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ stages:
- pip install -r test-requirements.txt
- pytest --cov=petstore_api

pytest-3.10:
extends: .pytest
image: python:3.10-alpine
pytest-3.11:
extends: .pytest
image: python:3.11-alpine
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# ref: https://docs.travis-ci.com/user/languages/python
language: python
python:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
Expand Down
2 changes: 1 addition & 1 deletion samples/openapi3/client/petstore/python-aiohttp/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.10+
Python 3.11+

Packaging retains the deprecated `[tool.poetry.dev-dependencies]` table for
compatibility with legacy Poetry 1 releases. Generate with `poetry1=false` to use
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.10"
python = "^3.11"
python-dateutil = ">= 2.8.2"
aiohttp = ">= 3.14.1"
aiohttp-retry = ">= 2.8.3"
Expand Down
2 changes: 1 addition & 1 deletion samples/openapi3/client/petstore/python-aiohttp/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# http://pypi.python.org/pypi/setuptools
NAME = "petstore-api"
VERSION = "1.0.0"
PYTHON_REQUIRES = ">= 3.10"
PYTHON_REQUIRES = ">= 3.11"

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.

P2: PYTHON_REQUIRES is not passed to setup(), so this package still advertises no Python requirement and can be installed on Python 3.10 despite the intended support removal. Add python_requires=PYTHON_REQUIRES to the setup() call.

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/openapi3/client/petstore/python-aiohttp/setup.py, line 23:

<comment>`PYTHON_REQUIRES` is not passed to `setup()`, so this package still advertises no Python requirement and can be installed on Python 3.10 despite the intended support removal. Add `python_requires=PYTHON_REQUIRES` to the `setup()` call.</comment>

<file context>
@@ -20,7 +20,7 @@
 NAME = "petstore-api"
 VERSION = "1.0.0"
-PYTHON_REQUIRES = ">= 3.10"
+PYTHON_REQUIRES = ">= 3.11"
 REQUIRES = [
     "python-dateutil >= 2.8.2",
</file context>

REQUIRES = [
"python-dateutil >= 2.8.2",
"aiohttp >= 3.14.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"]

steps:
- uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ stages:
- pip install -r test-requirements.txt
- pytest --cov=petstore_api

pytest-3.10:
extends: .pytest
image: python:3.10-alpine
pytest-3.11:
extends: .pytest
image: python:3.11-alpine
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# ref: https://docs.travis-ci.com/user/languages/python
language: python
python:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
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.10+
Python 3.11+

Packaging uses standard `[project]` metadata and `[dependency-groups]` (PEP 621/735).
Install the package with `python -m pip install .`; install development dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ authors = [
license = { text = "Apache-2.0" }
readme = "README.md"
keywords = ["OpenAPI", "OpenAPI-Generator", "OpenAPI Petstore"]
requires-python = ">=3.10"
requires-python = ">=3.11"

dependencies = [
"python-dateutil (>=2.8.2)",
Expand Down
Loading
Loading