Skip to content

Commit f018fbf

Browse files
authored
Merge pull request #30 from ShipEngine/jpill/increase-default-timeout-to-60s
fix: update default timeout to 60s
2 parents f0cf624 + 82e472f commit f018fbf

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@
1313
### Miscellaneous Chores
1414

1515
* release 1.0.0 ([c1407d2](https://www.github.com/ShipEngine/shipengine-python/commit/c1407d2de88182c75ba6dafff1ab30a3ed71efc6))
16+
17+
## 1.0.1
18+
19+
* increase default timeout from 5s to 60s

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "shipengine"
3-
version = "1.0.0"
3+
version = "1.0.1"
44
description = "The official Python library for ShipEngine API."
55
readme = "README.md"
66
authors = ["ShipEngine <[email protected]>"]

shipengine/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""ShipEngine SDK."""
2-
__version__ = "1.0.0"
2+
__version__ = "1.0.1"
33

44
import logging
55
from logging import NullHandler

shipengine/shipengine_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ShipEngineConfig:
1616
DEFAULT_RETRIES: int = 1
1717
"""Default number of retries the ShipEngineClient should make before returning an exception."""
1818

19-
DEFAULT_TIMEOUT: int = 5
19+
DEFAULT_TIMEOUT: int = 60
2020
"""Default timeout for the ShipEngineClient in seconds."""
2121

2222
def __init__(self, config: Dict[str, Any]) -> None:

shipengine/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.0"
1+
__version__ = "1.0.1"

tests/test_shipengine_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def test_config_defaults(self) -> None:
198198

199199
assert config.retries == 1
200200
assert config.page_size == 50
201-
assert config.timeout == 5
201+
assert config.timeout == 60
202202
assert config.base_uri is BaseURL.SHIPENGINE_RPC_URL.value
203203

204204
def test_to_dict_method(self) -> None:

0 commit comments

Comments
 (0)