diff --git a/openapi-generator/templates/python/README_onlypackage.mustache b/openapi-generator/templates/python/README_onlypackage.mustache index 149360d0..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, < 2.6 +* 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 37aa1eb8..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, < 2.6 +* urllib3 >= 1.15.1, < 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..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,<2.6", + "urllib3 >= 1.15.1, < 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..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,<2.6", "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}}