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
5 changes: 4 additions & 1 deletion sdks/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ include = ["dropbox_sign/py.typed"]
[tool.poetry.dependencies]
python = "^3.8"

urllib3 = ">= 1.25.3, < 3.0.0"
urllib3 = [
{ version = ">= 2.8.0, < 3.0.0", python = ">=3.10" },
{ version = ">= 1.25.3, < 3.0.0", python = "<3.10" },
]
python-dateutil = ">= 2.8.2"
pydantic = ">= 2"
typing-extensions = ">= 4.7.1"
Expand Down
3 changes: 2 additions & 1 deletion sdks/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
urllib3 >= 1.25.3, < 3.0.0
urllib3 >= 2.8.0, < 3.0.0; python_version >= "3.10"
urllib3 >= 1.25.3, < 3.0.0; python_version < "3.10"
python_dateutil >= 2.8.2
pydantic >= 2
typing-extensions >= 4.7.1
3 changes: 2 additions & 1 deletion sdks/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
VERSION = "1.11-dev"
PYTHON_REQUIRES = ">= 3.8"
REQUIRES = [
"urllib3 >= 1.25.3, < 3.0.0",
"urllib3 >= 2.8.0, < 3.0.0; python_version >= '3.10'",
"urllib3 >= 1.25.3, < 3.0.0; python_version < '3.10'",
"python-dateutil >= 2.8.2",
"pydantic >= 2",
"typing-extensions >= 4.7.1",
Expand Down
5 changes: 5 additions & 0 deletions sdks/python/templates/README_onlypackage.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ 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:

{{^useCustomTemplateCode}}
* urllib3 >= 1.25.3, < 3.0.0
{{/useCustomTemplateCode}}
{{#useCustomTemplateCode}}
* urllib3 >= 2.8.0, < 3.0.0 (Python 3.10+) or >= 1.25.3, < 3.0.0 (Python 3.8 and 3.9)
{{/useCustomTemplateCode}}
* python-dateutil >= 2.8.2
{{#asyncio}}
* aiohttp >= 3.8.4
Expand Down
8 changes: 8 additions & 0 deletions sdks/python/templates/pyproject.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ include = ["{{packageName}}/py.typed"]
[tool.poetry.dependencies]
python = "^3.8"

{{^useCustomTemplateCode}}
urllib3 = ">= 1.25.3, < 3.0.0"
{{/useCustomTemplateCode}}
{{#useCustomTemplateCode}}
urllib3 = [
{ version = ">= 2.8.0, < 3.0.0", python = ">=3.10" },
{ version = ">= 1.25.3, < 3.0.0", python = "<3.10" },
]
{{/useCustomTemplateCode}}
python-dateutil = ">= 2.8.2"
{{#asyncio}}
aiohttp = ">= 3.8.4"
Expand Down
6 changes: 6 additions & 0 deletions sdks/python/templates/requirements.mustache
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{{^useCustomTemplateCode}}
urllib3 >= 1.25.3, < 3.0.0
{{/useCustomTemplateCode}}
{{#useCustomTemplateCode}}
urllib3 >= 2.8.0, < 3.0.0; python_version >= "3.10"
urllib3 >= 1.25.3, < 3.0.0; python_version < "3.10"
{{/useCustomTemplateCode}}
python_dateutil >= 2.8.2
{{#asyncio}}
aiohttp >= 3.8.4
Expand Down
6 changes: 6 additions & 0 deletions sdks/python/templates/setup.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ NAME = "{{{projectName}}}"
VERSION = "{{packageVersion}}"
PYTHON_REQUIRES = ">= 3.8"
REQUIRES = [
{{^useCustomTemplateCode}}
"urllib3 >= 1.25.3, < 3.0.0",
{{/useCustomTemplateCode}}
{{#useCustomTemplateCode}}
"urllib3 >= 2.8.0, < 3.0.0; python_version >= '3.10'",
"urllib3 >= 1.25.3, < 3.0.0; python_version < '3.10'",
{{/useCustomTemplateCode}}
"python-dateutil >= 2.8.2",
{{#asyncio}}
"aiohttp >= 3.8.4",
Expand Down
Loading