diff --git a/openapi-generator/templates/python/README_onlypackage.mustache b/openapi-generator/templates/python/README_onlypackage.mustache index 18b198d93..149360d07 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 +* urllib3 >= 1.15, < 2.6 * 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 11c002c9a..37aa1eb83 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 +* urllib3 >= 1.15, < 2.6 * 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 a56bedffb..3b219f8ce 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 +urllib3 >= 1.15.1, < 2.6 diff --git a/openapi-generator/templates/python/python-experimental/setup.mustache b/openapi-generator/templates/python/python-experimental/setup.mustache index 656e5b1ec..d6b586867 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", + "urllib3>=1.15,<2.6", "six >= 1.10", "certifi", "python-dateutil", diff --git a/openapi-generator/templates/python/requirements.mustache b/openapi-generator/templates/python/requirements.mustache index eb358efd5..86611d576 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 +urllib3 >= 1.15.1, < 2.6 diff --git a/openapi-generator/templates/python/setup.mustache b/openapi-generator/templates/python/setup.mustache index de5fd3f9a..9fc8bec83 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", "six >= 1.10", "certifi", "python-dateutil"] +REQUIRES = ["urllib3>=1.15,<2.6", "six >= 1.10", "certifi", "python-dateutil"] {{#asyncio}} REQUIRES.append("aiohttp >= 3.0.0") {{/asyncio}}