Skip to content

Commit 82e472f

Browse files
committed
fix: update default timeout to 60s
1 parent f0cf624 commit 82e472f

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 <support@shipengine.com>"]

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy