v10.6.3: Bump timeouts to 60 seconds
ci/woodpecker/push/woodpecker Pipeline failed Details
ci/woodpecker/tag/woodpecker Pipeline failed Details

This commit is contained in:
Administrator 2023-09-18 10:19:52 +00:00
parent d84c2975ee
commit 027bc13ad2
4 changed files with 17 additions and 18 deletions

View File

@ -1,16 +1,9 @@
pipeline: pipeline:
pre-commit:
group: pre-commit-test
image: python:3.11
commands:
- pip install pre-commit==2.20.0
- pre-commit run --all-files
python-3.7: python-3.7:
group: test group: test
image: python:3.7-alpine image: python:3.7-alpine
commands: commands:
- pip install pipenv==2022.10.25 - pip install pipenv==2023.8.20
- pipenv install --dev --deploy - pipenv install --dev --deploy
- pipenv run almake test-pytest # We only test with pytest on 3.7 - pipenv run almake test-pytest # We only test with pytest on 3.7
@ -18,7 +11,7 @@ pipeline:
group: test group: test
image: python:3.8 image: python:3.8
commands: commands:
- pip install pipenv==2022.10.25 - pip install pipenv==2023.8.20
- pipenv install --dev --deploy - pipenv install --dev --deploy
- pipenv run almake test - pipenv run almake test
- pipenv run almake build-dist - pipenv run almake build-dist
@ -28,7 +21,7 @@ pipeline:
group: test group: test
image: python:3.9 image: python:3.9
commands: commands:
- pip install pipenv==2022.10.25 - pip install pipenv==2023.8.20
- pipenv install --dev --deploy - pipenv install --dev --deploy
- pipenv run almake test - pipenv run almake test
- pipenv run almake build-dist - pipenv run almake build-dist
@ -38,7 +31,7 @@ pipeline:
group: test group: test
image: python:3.10 image: python:3.10
commands: commands:
- pip install pipenv==2022.10.25 - pip install pipenv==2023.8.20
- pipenv install --dev --deploy - pipenv install --dev --deploy
- pipenv run almake test - pipenv run almake test
- pipenv run almake build-dist - pipenv run almake build-dist
@ -48,7 +41,7 @@ pipeline:
group: test group: test
image: python:3.11 image: python:3.11
commands: commands:
- pip install pipenv==2022.10.25 - pip install pipenv==2023.8.20
- pipenv install --dev --deploy - pipenv install --dev --deploy
- pipenv run almake test - pipenv run almake test
- pipenv run almake build-dist - pipenv run almake build-dist

View File

@ -15,6 +15,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Nothing yet. - Nothing yet.
## [10.6.3 - 2023-09-18]
## Changed
- Bumped httpx timeouts from 5 seconds to 60 seconds (this may be fine-tuned in the future).
## [10.6.2 - 2023-07-07] ## [10.6.2 - 2023-07-07]
## Changed ## Changed

View File

@ -1,5 +1,5 @@
"""SporeStack API and CLI for launching servers with Monero or Bitcoin""" """SporeStack API library and CLI for launching servers with Monero or Bitcoin"""
__all__ = ["api", "api_client", "exceptions"] __all__ = ["api", "api_client", "exceptions"]
__version__ = "10.6.2" __version__ = "10.6.3"

View File

@ -20,9 +20,7 @@ TOR_ENDPOINT = (
API_ENDPOINT = CLEARNET_ENDPOINT API_ENDPOINT = CLEARNET_ENDPOINT
GET_TIMEOUT = 60 TIMEOUT = httpx.Timeout(60.0)
POST_TIMEOUT = 90
USE_TOR_PROXY = "auto"
HEADERS = {"User-Agent": f"sporestack-python/{__version__}"} HEADERS = {"User-Agent": f"sporestack-python/{__version__}"}
@ -102,7 +100,9 @@ class APIClient:
proxy = None proxy = None
if _is_onion_url(self.api_endpoint): if _is_onion_url(self.api_endpoint):
proxy = _get_tor_proxy() proxy = _get_tor_proxy()
self._httpx_client = httpx.Client(headers=headers, proxies=proxy) self._httpx_client = httpx.Client(
headers=headers, proxies=proxy, timeout=TIMEOUT
)
def server_launch( def server_launch(
self, self,