From 9f02a67705a05249fcd5f410bf2ff16d966a5eac Mon Sep 17 00:00:00 2001 From: Mladen Jablanovic Date: Tue, 10 Feb 2026 13:43:41 +0100 Subject: [PATCH 1/2] feat(python): Relax strict urllib3 version pin #SCD-642 --- openapi-generator/templates/python/README_onlypackage.mustache | 2 +- .../python/python-experimental/README_onlypackage.mustache | 2 +- .../templates/python/python-experimental/requirements.mustache | 2 +- .../templates/python/python-experimental/setup.mustache | 2 +- openapi-generator/templates/python/requirements.mustache | 2 +- openapi-generator/templates/python/setup.mustache | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/openapi-generator/templates/python/README_onlypackage.mustache b/openapi-generator/templates/python/README_onlypackage.mustache index 149360d0..13c89feb 100644 --- a/openapi-generator/templates/python/README_onlypackage.mustache +++ b/openapi-generator/templates/python/README_onlypackage.mustache @@ -24,7 +24,7 @@ This python library package is generated without supporting files like setup.py To be able to use it, you will need these dependencies in your own package that uses this library: -* urllib3 >= 1.15, < 2.6 +* urllib3 >= 1.15, < 3, != 2.6.0 * six >= 1.10 * certifi * python-dateutil diff --git a/openapi-generator/templates/python/python-experimental/README_onlypackage.mustache b/openapi-generator/templates/python/python-experimental/README_onlypackage.mustache index 37aa1eb8..187d8f09 100644 --- a/openapi-generator/templates/python/python-experimental/README_onlypackage.mustache +++ b/openapi-generator/templates/python/python-experimental/README_onlypackage.mustache @@ -25,7 +25,7 @@ This python library package is generated without supporting files like setup.py To be able to use it, you will need these dependencies in your own package that uses this library: -* urllib3 >= 1.15, < 2.6 +* urllib3 >= 1.15, < 3, != 2.6.0 * six >= 1.10 * certifi * python-dateutil diff --git a/openapi-generator/templates/python/python-experimental/requirements.mustache b/openapi-generator/templates/python/python-experimental/requirements.mustache index 3b219f8c..bc7695f6 100644 --- a/openapi-generator/templates/python/python-experimental/requirements.mustache +++ b/openapi-generator/templates/python/python-experimental/requirements.mustache @@ -4,4 +4,4 @@ future; python_version<="2.7" six >= 1.10 python_dateutil >= 2.5.3 setuptools >= 21.0.0 -urllib3 >= 1.15.1, < 2.6 +urllib3 >= 1.15.1, < 3, != 2.6.0 diff --git a/openapi-generator/templates/python/python-experimental/setup.mustache b/openapi-generator/templates/python/python-experimental/setup.mustache index d6b58686..69f8db8e 100644 --- a/openapi-generator/templates/python/python-experimental/setup.mustache +++ b/openapi-generator/templates/python/python-experimental/setup.mustache @@ -17,7 +17,7 @@ VERSION = "{{packageVersion}}" # http://pypi.python.org/pypi/setuptools REQUIRES = [ - "urllib3>=1.15,<2.6", + "urllib3>=1.15,<3,!=2.6.0", "six >= 1.10", "certifi", "python-dateutil", diff --git a/openapi-generator/templates/python/requirements.mustache b/openapi-generator/templates/python/requirements.mustache index 86611d57..4c3232f8 100644 --- a/openapi-generator/templates/python/requirements.mustache +++ b/openapi-generator/templates/python/requirements.mustache @@ -3,4 +3,4 @@ future; python_version<="2.7" six >= 1.10 python_dateutil >= 2.5.3 setuptools >= 21.0.0 -urllib3 >= 1.15.1, < 2.6 +urllib3 >= 1.15.1, < 3, != 2.6.0 diff --git a/openapi-generator/templates/python/setup.mustache b/openapi-generator/templates/python/setup.mustache index 9fc8bec8..7fb96087 100644 --- a/openapi-generator/templates/python/setup.mustache +++ b/openapi-generator/templates/python/setup.mustache @@ -16,7 +16,7 @@ VERSION = "{{packageVersion}}" # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["urllib3>=1.15,<2.6", "six >= 1.10", "certifi", "python-dateutil"] +REQUIRES = ["urllib3>=1.15,<3,!=2.6.0", "six >= 1.10", "certifi", "python-dateutil"] {{#asyncio}} REQUIRES.append("aiohttp >= 3.0.0") {{/asyncio}} From 06dfbbe61eb810a19f23d3973e8a721c74ecaa4b Mon Sep 17 00:00:00 2001 From: Mladen Jablanovic Date: Wed, 11 Feb 2026 09:58:23 +0100 Subject: [PATCH 2/2] review suggestions --- openapi-generator/templates/python/README_onlypackage.mustache | 2 +- .../python/python-experimental/README_onlypackage.mustache | 2 +- .../templates/python/python-experimental/setup.mustache | 2 +- openapi-generator/templates/python/setup.mustache | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/openapi-generator/templates/python/README_onlypackage.mustache b/openapi-generator/templates/python/README_onlypackage.mustache index 13c89feb..80f152ad 100644 --- a/openapi-generator/templates/python/README_onlypackage.mustache +++ b/openapi-generator/templates/python/README_onlypackage.mustache @@ -24,7 +24,7 @@ This python library package is generated without supporting files like setup.py To be able to use it, you will need these dependencies in your own package that uses this library: -* urllib3 >= 1.15, < 3, != 2.6.0 +* urllib3 >= 1.15.1, < 3, != 2.6.0 * six >= 1.10 * certifi * python-dateutil diff --git a/openapi-generator/templates/python/python-experimental/README_onlypackage.mustache b/openapi-generator/templates/python/python-experimental/README_onlypackage.mustache index 187d8f09..8f09ebf7 100644 --- a/openapi-generator/templates/python/python-experimental/README_onlypackage.mustache +++ b/openapi-generator/templates/python/python-experimental/README_onlypackage.mustache @@ -25,7 +25,7 @@ This python library package is generated without supporting files like setup.py To be able to use it, you will need these dependencies in your own package that uses this library: -* urllib3 >= 1.15, < 3, != 2.6.0 +* urllib3 >= 1.15.1, < 3, != 2.6.0 * six >= 1.10 * certifi * python-dateutil diff --git a/openapi-generator/templates/python/python-experimental/setup.mustache b/openapi-generator/templates/python/python-experimental/setup.mustache index 69f8db8e..7087d66a 100644 --- a/openapi-generator/templates/python/python-experimental/setup.mustache +++ b/openapi-generator/templates/python/python-experimental/setup.mustache @@ -17,7 +17,7 @@ VERSION = "{{packageVersion}}" # http://pypi.python.org/pypi/setuptools REQUIRES = [ - "urllib3>=1.15,<3,!=2.6.0", + "urllib3 >= 1.15.1, < 3, != 2.6.0", "six >= 1.10", "certifi", "python-dateutil", diff --git a/openapi-generator/templates/python/setup.mustache b/openapi-generator/templates/python/setup.mustache index 7fb96087..17029b51 100644 --- a/openapi-generator/templates/python/setup.mustache +++ b/openapi-generator/templates/python/setup.mustache @@ -16,7 +16,7 @@ VERSION = "{{packageVersion}}" # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools -REQUIRES = ["urllib3>=1.15,<3,!=2.6.0", "six >= 1.10", "certifi", "python-dateutil"] +REQUIRES = ["urllib3 >= 1.15.1, < 3, != 2.6.0", "six >= 1.10", "certifi", "python-dateutil"] {{#asyncio}} REQUIRES.append("aiohttp >= 3.0.0") {{/asyncio}}