Skip to content

Commit 5f8fc19

Browse files
authored
Merge pull request #4 from onkernel/release-please--branches--main--changes--next
release: 0.1.0-alpha.3
2 parents 4b133b3 + 56caa58 commit 5f8fc19

File tree

7 files changed

+45
-3
lines changed

7 files changed

+45
-3
lines changed

.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.2"
2+
".": "0.1.0-alpha.3"
33
}

CHANGELOG.md

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

3+
## 0.1.0-alpha.3 (2025-05-10)
4+
5+
Full Changelog: [v0.1.0-alpha.2...v0.1.0-alpha.3](https://github.com/onkernel/kernel-python-sdk/compare/v0.1.0-alpha.2...v0.1.0-alpha.3)
6+
7+
### Bug Fixes
8+
9+
* **package:** support direct resource imports ([679b117](https://github.com/onkernel/kernel-python-sdk/commit/679b11723a5699be2b6b50ccce2b84a88d1e0a7b))
10+
* **tests:** skip broken binary tests for now ([69638c0](https://github.com/onkernel/kernel-python-sdk/commit/69638c0d0da19a74a91e182a209c3de06985e112))
11+
312
## 0.1.0-alpha.2 (2025-05-09)
413

514
Full Changelog: [v0.1.0-alpha.1...v0.1.0-alpha.2](https://github.com/onkernel/kernel-python-sdk/compare/v0.1.0-alpha.1...v0.1.0-alpha.2)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "kernel"
3-
version = "0.1.0-alpha.2"
3+
version = "0.1.0-alpha.3"
44
description = "The official Python library for the kernel API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/kernel/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
import typing as _t
4+
35
from . import types
46
from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes
57
from ._utils import file_from_path
@@ -68,6 +70,9 @@
6870
"DefaultAsyncHttpxClient",
6971
]
7072

73+
if not _t.TYPE_CHECKING:
74+
from ._utils._resources_proxy import resources as resources
75+
7176
_setup_logging()
7277

7378
# Update the __module__ attribute for exported symbols so that

src/kernel/_utils/_resources_proxy.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
from __future__ import annotations
2+
3+
from typing import Any
4+
from typing_extensions import override
5+
6+
from ._proxy import LazyProxy
7+
8+
9+
class ResourcesProxy(LazyProxy[Any]):
10+
"""A proxy for the `kernel.resources` module.
11+
12+
This is used so that we can lazily import `kernel.resources` only when
13+
needed *and* so that users can just import `kernel` and reference `kernel.resources`
14+
"""
15+
16+
@override
17+
def __load__(self) -> Any:
18+
import importlib
19+
20+
mod = importlib.import_module("kernel.resources")
21+
return mod
22+
23+
24+
resources = ResourcesProxy().__as_proxied__()

src/kernel/_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__ = "kernel"
4-
__version__ = "0.1.0-alpha.2" # x-release-please-version
4+
__version__ = "0.1.0-alpha.3" # x-release-please-version

tests/test_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,7 @@ def test_parse_retry_after_header(self, remaining_retries: int, retry_after: str
704704
calculated = client._calculate_retry_timeout(remaining_retries, options, headers)
705705
assert calculated == pytest.approx(timeout, 0.5 * 0.875) # pyright: ignore[reportUnknownMemberType]
706706

707+
@pytest.mark.skip() # SDK-2615
707708
@mock.patch("kernel._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
708709
@pytest.mark.respx(base_url=base_url)
709710
def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) -> None:
@@ -724,6 +725,7 @@ def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) -> No
724725

725726
assert _get_open_connections(self.client) == 0
726727

728+
@pytest.mark.skip() # SDK-2615
727729
@mock.patch("kernel._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
728730
@pytest.mark.respx(base_url=base_url)
729731
def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) -> None:
@@ -1502,6 +1504,7 @@ async def test_parse_retry_after_header(self, remaining_retries: int, retry_afte
15021504
calculated = client._calculate_retry_timeout(remaining_retries, options, headers)
15031505
assert calculated == pytest.approx(timeout, 0.5 * 0.875) # pyright: ignore[reportUnknownMemberType]
15041506

1507+
@pytest.mark.skip() # SDK-2615
15051508
@mock.patch("kernel._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
15061509
@pytest.mark.respx(base_url=base_url)
15071510
async def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter) -> None:
@@ -1522,6 +1525,7 @@ async def test_retrying_timeout_errors_doesnt_leak(self, respx_mock: MockRouter)
15221525

15231526
assert _get_open_connections(self.client) == 0
15241527

1528+
@pytest.mark.skip() # SDK-2615
15251529
@mock.patch("kernel._base_client.BaseClient._calculate_retry_timeout", _low_retry_timeout)
15261530
@pytest.mark.respx(base_url=base_url)
15271531
async def test_retrying_status_errors_doesnt_leak(self, respx_mock: MockRouter) -> None:

0 commit comments

Comments
 (0)