Skip to content

Commit e064962

Browse files
authored
Merge pull request #82 from runloopai/release-please--branches--main--changes--next
release: 0.1.0-alpha.12
2 parents 685ccfe + d9f6914 commit e064962

19 files changed

Lines changed: 313 additions & 77 deletions

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0-alpha.11"
2+
".": "0.1.0-alpha.12"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 22
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-6d8fa9e3b0fd4b024c72d3bda8162e15c33295b9e98feabcc0289ecda9cf1db2.yml
1+
configured_endpoints: 23
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-b8fcc87544efea42048d01a4c7ba4c8abf1725337cfbb6bff607d5fea5cd1e1a.yml

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# Changelog
22

3+
## 0.1.0-alpha.12 (2024-08-15)
4+
5+
Full Changelog: [v0.1.0-alpha.11...v0.1.0-alpha.12](https://github.com/runloopai/api-client-python/compare/v0.1.0-alpha.11...v0.1.0-alpha.12)
6+
7+
### Features
8+
9+
* **api:** OpenAPI spec update via Stainless API ([#83](https://github.com/runloopai/api-client-python/issues/83)) ([df99a13](https://github.com/runloopai/api-client-python/commit/df99a130b3dbbba6b122a65bc9c822b6d589ca26))
10+
* **api:** OpenAPI spec update via Stainless API ([#88](https://github.com/runloopai/api-client-python/issues/88)) ([a8882d4](https://github.com/runloopai/api-client-python/commit/a8882d440edc71f2922e2fa2dff3d0f0b080eb35))
11+
* **api:** OpenAPI spec update via Stainless API ([#89](https://github.com/runloopai/api-client-python/issues/89)) ([a8b5d6a](https://github.com/runloopai/api-client-python/commit/a8b5d6a94d38bc593b8ca48014dcba17c783d297))
12+
* **api:** OpenAPI spec update via Stainless API ([#90](https://github.com/runloopai/api-client-python/issues/90)) ([dc4b13c](https://github.com/runloopai/api-client-python/commit/dc4b13cd4d4fa17f203626e88187f8784ecbac6f))
13+
* **api:** OpenAPI spec update via Stainless API ([#93](https://github.com/runloopai/api-client-python/issues/93)) ([d6ba90f](https://github.com/runloopai/api-client-python/commit/d6ba90fa6af62f376578aa14a5b50e759fc30898))
14+
* **api:** update via SDK Studio ([#91](https://github.com/runloopai/api-client-python/issues/91)) ([612ce32](https://github.com/runloopai/api-client-python/commit/612ce3279298c1158ce963471cd6d53b4a822718))
15+
16+
17+
### Chores
18+
19+
* **ci:** bump prism mock server version ([#85](https://github.com/runloopai/api-client-python/issues/85)) ([ff2c8dd](https://github.com/runloopai/api-client-python/commit/ff2c8ddeaec8bfaa9ebd71886126f02ede9bb2db))
20+
* **ci:** minor changes ([#84](https://github.com/runloopai/api-client-python/issues/84)) ([32f527f](https://github.com/runloopai/api-client-python/commit/32f527f1802bfc63c2156ad7eefd7773a007f501))
21+
* **examples:** minor formatting changes ([#87](https://github.com/runloopai/api-client-python/issues/87)) ([64c9bd5](https://github.com/runloopai/api-client-python/commit/64c9bd5c499d56772028679aa974eac5e78c3b15))
22+
* **internal:** codegen related update ([#92](https://github.com/runloopai/api-client-python/issues/92)) ([0c34d9a](https://github.com/runloopai/api-client-python/commit/0c34d9a7a296d0e0fd4626b6f9629ff737e61590))
23+
* **internal:** ensure package is importable in lint cmd ([#86](https://github.com/runloopai/api-client-python/issues/86)) ([ecf2a95](https://github.com/runloopai/api-client-python/commit/ecf2a95f550db94d2d16ea3774bd9c9bea42b3a4))
24+
* **internal:** remove deprecated ruff config ([#81](https://github.com/runloopai/api-client-python/issues/81)) ([2916f9f](https://github.com/runloopai/api-client-python/commit/2916f9fdc0b19758767e5c93875e14cc3bce4049))
25+
* **internal:** use different 32bit detection method ([#94](https://github.com/runloopai/api-client-python/issues/94)) ([cf748e3](https://github.com/runloopai/api-client-python/commit/cf748e337f3e1f443be098c1b0e72e3c321815c6))
26+
327
## 0.1.0-alpha.11 (2024-08-07)
428

529
Full Changelog: [v0.1.0-alpha.10...v0.1.0-alpha.11](https://github.com/runloopai/api-client-python/compare/v0.1.0-alpha.10...v0.1.0-alpha.11)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Error codes are as followed:
118118

119119
### Retries
120120

121-
Certain errors are automatically retried 2 times by default, with a short exponential backoff.
121+
Certain errors are automatically retried 0 times by default, with a short exponential backoff.
122122
Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
123123
429 Rate Limit, and >=500 Internal errors are all retried by default.
124124

api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ from runloop_api_client.types import (
5353
DevboxListView,
5454
DevboxView,
5555
DevboxReadFileContentsResponse,
56+
DevboxUploadFileResponse,
5657
)
5758
```
5859

@@ -65,6 +66,7 @@ Methods:
6566
- <code title="post /v1/devboxes/{id}/read_file">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">read_file</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_read_file_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
6667
- <code title="post /v1/devboxes/{id}/read_file_contents">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">read_file_contents</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_read_file_contents_params.py">params</a>) -> str</code>
6768
- <code title="post /v1/devboxes/{id}/shutdown">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">shutdown</a>(id) -> <a href="./src/runloop_api_client/types/devbox_view.py">DevboxView</a></code>
69+
- <code title="post /v1/devboxes/{id}/upload_file">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">upload_file</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_upload_file_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_upload_file_response.py">object</a></code>
6870
- <code title="post /v1/devboxes/{id}/write_file">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">write_file</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_write_file_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
6971

7072
## Logs

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "runloop_api_client"
3-
version = "0.1.0-alpha.11"
3+
version = "0.1.0-alpha.12"
44
description = "The official Python library for the runloop API"
55
dynamic = ["readme"]
66
license = "MIT"
@@ -76,10 +76,13 @@ format = { chain = [
7676
"lint" = { chain = [
7777
"check:ruff",
7878
"typecheck",
79+
"check:importable",
7980
]}
8081
"check:ruff" = "ruff check ."
8182
"fix:ruff" = "ruff check --fix ."
8283

84+
"check:importable" = "python -c 'import runloop_api_client'"
85+
8386
typecheck = { chain = [
8487
"typecheck:pyright",
8588
"typecheck:mypy"
@@ -195,7 +198,6 @@ unfixable = [
195198
"T201",
196199
"T203",
197200
]
198-
ignore-init-module-imports = true
199201

200202
[tool.ruff.lint.flake8-tidy-imports.banned-api]
201203
"functools.lru_cache".msg = "This function does not retain type information for the wrapped function's arguments; The `lru_cache` function from `_utils` should be used instead"
@@ -207,7 +209,7 @@ combine-as-imports = true
207209
extra-standard-library = ["typing_extensions"]
208210
known-first-party = ["runloop_api_client", "tests"]
209211

210-
[tool.ruff.per-file-ignores]
212+
[tool.ruff.lint.per-file-ignores]
211213
"bin/**.py" = ["T201", "T203"]
212214
"scripts/**.py" = ["T201", "T203"]
213215
"tests/**.py" = ["T201", "T203"]

scripts/mock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ echo "==> Starting mock server with URL ${URL}"
2121

2222
# Run prism mock on the given spec
2323
if [ "$1" == "--daemon" ]; then
24-
npm exec --package=@stainless-api/prism-cli@5.8.4 -- prism mock "$URL" &> .prism.log &
24+
npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL" &> .prism.log &
2525

2626
# Wait for server to come online
2727
echo -n "Waiting for server"
@@ -37,5 +37,5 @@ if [ "$1" == "--daemon" ]; then
3737

3838
echo
3939
else
40-
npm exec --package=@stainless-api/prism-cli@5.8.4 -- prism mock "$URL"
40+
npm exec --package=@stainless-api/prism-cli@5.8.5 -- prism mock "$URL"
4141
fi

src/runloop_api_client/_base_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from __future__ import annotations
22

3+
import sys
34
import json
45
import time
56
import uuid
@@ -1982,7 +1983,6 @@ def get_python_version() -> str:
19821983

19831984
def get_architecture() -> Arch:
19841985
try:
1985-
python_bitness, _ = platform.architecture()
19861986
machine = platform.machine().lower()
19871987
except Exception:
19881988
return "unknown"
@@ -1998,7 +1998,7 @@ def get_architecture() -> Arch:
19981998
return "x64"
19991999

20002000
# TODO: untested
2001-
if python_bitness == "32bit":
2001+
if sys.maxsize <= 2**32:
20022002
return "x32"
20032003

20042004
if machine:

src/runloop_api_client/_constants.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
# default timeout is 1 minute
99
DEFAULT_TIMEOUT = httpx.Timeout(timeout=60.0, connect=5.0)
10-
DEFAULT_MAX_RETRIES = 2
10+
DEFAULT_MAX_RETRIES = 0
1111
DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=100, max_keepalive_connections=20)
1212

13-
INITIAL_RETRY_DELAY = 0.5
14-
MAX_RETRY_DELAY = 8.0
13+
INITIAL_RETRY_DELAY = 1.0
14+
MAX_RETRY_DELAY = 5.0

src/runloop_api_client/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "runloop_api_client"
4-
__version__ = "0.1.0-alpha.11" # x-release-please-version
4+
__version__ = "0.1.0-alpha.12" # x-release-please-version

0 commit comments

Comments
 (0)