Skip to content

Commit ca58200

Browse files
authored
Merge pull request #13 from onkernel/release-please--branches--main--changes--next
release: 0.1.0-alpha.11
2 parents 221d5a5 + 4edebfe commit ca58200

File tree

9 files changed

+37
-7
lines changed

9 files changed

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

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 5
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-f40e779e2a48f5e37361f2f4a9879e5c40f2851b8033c23db69ec7b91242bf69.yml
3-
openapi_spec_hash: 2dfa146149e61363f1ec40bf9251eb7c
4-
config_hash: 2ddaa85513b6670889b1a56c905423c7
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-1fe396b957ced73281fc0a61a69b630836aa5c89a8dccce2c5a1716bc9775e80.yml
3+
openapi_spec_hash: 9a0d67fb0781be034b77839584109638
4+
config_hash: df889df131f7438197abd59faace3c77

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.11 (2025-05-19)
4+
5+
Full Changelog: [v0.1.0-alpha.10...v0.1.0-alpha.11](https://github.com/onkernel/kernel-python-sdk/compare/v0.1.0-alpha.10...v0.1.0-alpha.11)
6+
7+
### Features
8+
9+
* **api:** update via SDK Studio ([16afb5a](https://github.com/onkernel/kernel-python-sdk/commit/16afb5a7a1da33771aca73685dc32b0a1e90ce2d))
10+
* **api:** update via SDK Studio ([08c35c8](https://github.com/onkernel/kernel-python-sdk/commit/08c35c8662ad34c76936c9dbeac7057a74e4a0df))
11+
312
## 0.1.0-alpha.10 (2025-05-19)
413

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

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ client = Kernel(
3636
deployment = client.apps.deployments.create(
3737
entrypoint_rel_path="main.ts",
3838
file=b"REPLACE_ME",
39+
env_vars={"OPENAI_API_KEY": "x"},
3940
version="1.0.0",
4041
)
4142
print(deployment.apps)
@@ -66,6 +67,7 @@ async def main() -> None:
6667
deployment = await client.apps.deployments.create(
6768
entrypoint_rel_path="main.ts",
6869
file=b"REPLACE_ME",
70+
env_vars={"OPENAI_API_KEY": "x"},
6971
version="1.0.0",
7072
)
7173
print(deployment.apps)

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.10"
3+
version = "0.1.0-alpha.11"
44
description = "The official Python library for the kernel API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

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.10" # x-release-please-version
4+
__version__ = "0.1.0-alpha.11" # x-release-please-version

src/kernel/resources/apps/deployments.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Mapping, cast
5+
from typing import Dict, Mapping, cast
66
from typing_extensions import Literal
77

88
import httpx
@@ -49,6 +49,7 @@ def create(
4949
*,
5050
entrypoint_rel_path: str,
5151
file: FileTypes,
52+
env_vars: Dict[str, str] | NotGiven = NOT_GIVEN,
5253
force: bool | NotGiven = NOT_GIVEN,
5354
region: Literal["aws.us-east-1a"] | NotGiven = NOT_GIVEN,
5455
version: str | NotGiven = NOT_GIVEN,
@@ -67,6 +68,9 @@ def create(
6768
6869
file: ZIP file containing the application source directory
6970
71+
env_vars: Map of environment variables to set for the deployed application. Each key-value
72+
pair represents an environment variable.
73+
7074
force: Allow overwriting an existing app version
7175
7276
region: Region for deployment. Currently we only support "aws.us-east-1a"
@@ -85,6 +89,7 @@ def create(
8589
{
8690
"entrypoint_rel_path": entrypoint_rel_path,
8791
"file": file,
92+
"env_vars": env_vars,
8893
"force": force,
8994
"region": region,
9095
"version": version,
@@ -131,6 +136,7 @@ async def create(
131136
*,
132137
entrypoint_rel_path: str,
133138
file: FileTypes,
139+
env_vars: Dict[str, str] | NotGiven = NOT_GIVEN,
134140
force: bool | NotGiven = NOT_GIVEN,
135141
region: Literal["aws.us-east-1a"] | NotGiven = NOT_GIVEN,
136142
version: str | NotGiven = NOT_GIVEN,
@@ -149,6 +155,9 @@ async def create(
149155
150156
file: ZIP file containing the application source directory
151157
158+
env_vars: Map of environment variables to set for the deployed application. Each key-value
159+
pair represents an environment variable.
160+
152161
force: Allow overwriting an existing app version
153162
154163
region: Region for deployment. Currently we only support "aws.us-east-1a"
@@ -167,6 +176,7 @@ async def create(
167176
{
168177
"entrypoint_rel_path": entrypoint_rel_path,
169178
"file": file,
179+
"env_vars": env_vars,
170180
"force": force,
171181
"region": region,
172182
"version": version,

src/kernel/types/apps/deployment_create_params.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from __future__ import annotations
44

5+
from typing import Dict
56
from typing_extensions import Literal, Required, TypedDict
67

78
from ..._types import FileTypes
@@ -16,6 +17,12 @@ class DeploymentCreateParams(TypedDict, total=False):
1617
file: Required[FileTypes]
1718
"""ZIP file containing the application source directory"""
1819

20+
env_vars: Dict[str, str]
21+
"""Map of environment variables to set for the deployed application.
22+
23+
Each key-value pair represents an environment variable.
24+
"""
25+
1926
force: bool
2027
"""Allow overwriting an existing app version"""
2128

tests/api_resources/apps/test_deployments.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def test_method_create_with_all_params(self, client: Kernel) -> None:
3232
deployment = client.apps.deployments.create(
3333
entrypoint_rel_path="src/app.py",
3434
file=b"raw file contents",
35+
env_vars={"foo": "string"},
3536
force=False,
3637
region="aws.us-east-1a",
3738
version="1.0.0",
@@ -85,6 +86,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncKernel) ->
8586
deployment = await async_client.apps.deployments.create(
8687
entrypoint_rel_path="src/app.py",
8788
file=b"raw file contents",
89+
env_vars={"foo": "string"},
8890
force=False,
8991
region="aws.us-east-1a",
9092
version="1.0.0",

0 commit comments

Comments
 (0)