Skip to content

Commit

Permalink
release: 0.8.0 (#116)
Browse files Browse the repository at this point in the history
* feat(api): api update (#115)

* feat(api): api update (#117)

* chore(internal): minor formatting changes (#118)

* feat(api): api update (#119)

* feat(api): api update (#120)

* feat(api): api update (#121)

* feat(api): api update (#122)

* feat(api): api update (#123)

* codegen metadata

* codegen metadata

* chore(internal): change default timeout to an int (#124)

* release: 0.8.0

---------

Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
  • Loading branch information
stainless-app[bot] authored Feb 5, 2025
1 parent 084de25 commit 9862e76
Show file tree
Hide file tree
Showing 22 changed files with 291 additions and 87 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
lint:
name: lint
runs-on: ubuntu-latest


steps:
- uses: actions/checkout@v4
Expand All @@ -30,6 +29,7 @@ jobs:

- name: Run lints
run: ./scripts/lint

test:
name: test
runs-on: ubuntu-latest
Expand All @@ -50,4 +50,3 @@ jobs:

- name: Run tests
run: ./scripts/test

2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.7.0"
".": "0.8.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 15
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/riza%2Friza-api-53d443fce326642ac4579e178d39bd12a49ed8230f1264bda8da4c805d4ae71f.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/riza%2Friza-api-4ca61d8b4e331bab13ac4a139600875a379b3a9c3071e23fe4d9f1997066164c.yml
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 0.8.0 (2025-02-04)

Full Changelog: [v0.7.0...v0.8.0](https://github.com/riza-io/riza-api-python/compare/v0.7.0...v0.8.0)

### Features

* **api:** api update ([#115](https://github.com/riza-io/riza-api-python/issues/115)) ([26f031e](https://github.com/riza-io/riza-api-python/commit/26f031edd8df146556a48a2cec50c1c23ebd0d4e))
* **api:** api update ([#117](https://github.com/riza-io/riza-api-python/issues/117)) ([4105478](https://github.com/riza-io/riza-api-python/commit/41054787b55ec678f3389f40dd70f9edfcd7d950))
* **api:** api update ([#119](https://github.com/riza-io/riza-api-python/issues/119)) ([fa14cbf](https://github.com/riza-io/riza-api-python/commit/fa14cbf315c66627082bfef281477a574b67dbfa))
* **api:** api update ([#120](https://github.com/riza-io/riza-api-python/issues/120)) ([02d8740](https://github.com/riza-io/riza-api-python/commit/02d87408c52a8c495cc87119f89d613019665dc0))
* **api:** api update ([#121](https://github.com/riza-io/riza-api-python/issues/121)) ([e168ac4](https://github.com/riza-io/riza-api-python/commit/e168ac4cf58dc61052fd0ca721610e9004fbf22d))
* **api:** api update ([#122](https://github.com/riza-io/riza-api-python/issues/122)) ([ec346bf](https://github.com/riza-io/riza-api-python/commit/ec346bffdc56c0868c52932721e2648fc584d58b))
* **api:** api update ([#123](https://github.com/riza-io/riza-api-python/issues/123)) ([14f6367](https://github.com/riza-io/riza-api-python/commit/14f6367def814ce48910dffc22f83c24997b06f1))


### Chores

* **internal:** change default timeout to an int ([#124](https://github.com/riza-io/riza-api-python/issues/124)) ([0cc525c](https://github.com/riza-io/riza-api-python/commit/0cc525cddd1b57d169ad6af58427b4e3f8e9abbe))
* **internal:** minor formatting changes ([#118](https://github.com/riza-io/riza-api-python/issues/118)) ([61fdf26](https://github.com/riza-io/riza-api-python/commit/61fdf26af69850b576e4ea8058c6c72940217811))

## 0.7.0 (2025-01-23)

Full Changelog: [v0.6.0...v0.7.0](https://github.com/riza-io/riza-api-python/compare/v0.6.0...v0.7.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "rizaio"
version = "0.7.0"
version = "0.8.0"
description = "The official Python library for the riza API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion scripts/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

cd "$(dirname "$0")/.."

if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ]; then
if ! command -v rye >/dev/null 2>&1 && [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ]; then
brew bundle check >/dev/null 2>&1 || {
echo "==> Installing Homebrew dependencies…"
brew bundle
Expand Down
1 change: 0 additions & 1 deletion scripts/lint
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ rye run lint

echo "==> Making sure it imports"
rye run python -c 'import rizaio'

2 changes: 1 addition & 1 deletion src/rizaio/_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
OVERRIDE_CAST_TO_HEADER = "____stainless_override_cast_to"

# default timeout is 1 minute
DEFAULT_TIMEOUT = httpx.Timeout(timeout=60.0, connect=5.0)
DEFAULT_TIMEOUT = httpx.Timeout(timeout=60, connect=5.0)
DEFAULT_MAX_RETRIES = 2
DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=100, max_keepalive_connections=20)

Expand Down
2 changes: 1 addition & 1 deletion src/rizaio/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "rizaio"
__version__ = "0.7.0" # x-release-please-version
__version__ = "0.8.0" # x-release-please-version
42 changes: 25 additions & 17 deletions src/rizaio/resources/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import Dict, List, Iterable, Optional
from typing import Dict, List, Iterable
from typing_extensions import Literal

import httpx
Expand Down Expand Up @@ -57,8 +57,8 @@ def exec(
args: List[str] | NotGiven = NOT_GIVEN,
env: Dict[str, str] | NotGiven = NOT_GIVEN,
files: Iterable[command_exec_params.File] | NotGiven = NOT_GIVEN,
http: Optional[command_exec_params.HTTP] | NotGiven = NOT_GIVEN,
limits: Optional[command_exec_params.Limits] | NotGiven = NOT_GIVEN,
http: command_exec_params.HTTP | NotGiven = NOT_GIVEN,
limits: command_exec_params.Limits | NotGiven = NOT_GIVEN,
runtime_revision_id: str | NotGiven = NOT_GIVEN,
stdin: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -130,12 +130,12 @@ def exec_func(
self,
*,
code: str,
language: Literal["python", "javascript", "typescript", "ruby", "php"],
language: Literal["python", "javascript", "typescript"],
env: Dict[str, str] | NotGiven = NOT_GIVEN,
files: Iterable[command_exec_func_params.File] | NotGiven = NOT_GIVEN,
http: Optional[command_exec_func_params.HTTP] | NotGiven = NOT_GIVEN,
http: command_exec_func_params.HTTP | NotGiven = NOT_GIVEN,
input: object | NotGiven = NOT_GIVEN,
limits: Optional[command_exec_func_params.Limits] | NotGiven = NOT_GIVEN,
limits: command_exec_func_params.Limits | NotGiven = NOT_GIVEN,
runtime_revision_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -150,17 +150,21 @@ def exec_func(
`execute`. The function will be passed `input` as an object.
Args:
code: The function to execute. Your code must define a function named 'execute' and
return a JSON-serializable value.
code: The function to execute. Your code must define a function named "execute" that
takes in a single argument and returns a JSON-serializable value.
language: The interpreter to use when executing code.
env: Set of key-value pairs to add to the script's execution environment.
env: Set of key-value pairs to add to the function's execution environment.
files: List of input files.
http: Configuration for HTTP requests and authentication.
input: The input to the function. This must be a valid JSON-serializable object. If you
do not pass an input, your function will be called with None (Python) or null
(JavaScript/TypeScript) as the argument.
limits: Configuration for execution environment limits.
runtime_revision_id: The ID of the runtime revision to use when executing code.
Expand Down Expand Up @@ -224,8 +228,8 @@ async def exec(
args: List[str] | NotGiven = NOT_GIVEN,
env: Dict[str, str] | NotGiven = NOT_GIVEN,
files: Iterable[command_exec_params.File] | NotGiven = NOT_GIVEN,
http: Optional[command_exec_params.HTTP] | NotGiven = NOT_GIVEN,
limits: Optional[command_exec_params.Limits] | NotGiven = NOT_GIVEN,
http: command_exec_params.HTTP | NotGiven = NOT_GIVEN,
limits: command_exec_params.Limits | NotGiven = NOT_GIVEN,
runtime_revision_id: str | NotGiven = NOT_GIVEN,
stdin: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
Expand Down Expand Up @@ -297,12 +301,12 @@ async def exec_func(
self,
*,
code: str,
language: Literal["python", "javascript", "typescript", "ruby", "php"],
language: Literal["python", "javascript", "typescript"],
env: Dict[str, str] | NotGiven = NOT_GIVEN,
files: Iterable[command_exec_func_params.File] | NotGiven = NOT_GIVEN,
http: Optional[command_exec_func_params.HTTP] | NotGiven = NOT_GIVEN,
http: command_exec_func_params.HTTP | NotGiven = NOT_GIVEN,
input: object | NotGiven = NOT_GIVEN,
limits: Optional[command_exec_func_params.Limits] | NotGiven = NOT_GIVEN,
limits: command_exec_func_params.Limits | NotGiven = NOT_GIVEN,
runtime_revision_id: str | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -317,17 +321,21 @@ async def exec_func(
`execute`. The function will be passed `input` as an object.
Args:
code: The function to execute. Your code must define a function named 'execute' and
return a JSON-serializable value.
code: The function to execute. Your code must define a function named "execute" that
takes in a single argument and returns a JSON-serializable value.
language: The interpreter to use when executing code.
env: Set of key-value pairs to add to the script's execution environment.
env: Set of key-value pairs to add to the function's execution environment.
files: List of input files.
http: Configuration for HTTP requests and authentication.
input: The input to the function. This must be a valid JSON-serializable object. If you
do not pass an input, your function will be called with None (Python) or null
(JavaScript/TypeScript) as the argument.
limits: Configuration for execution environment limits.
runtime_revision_id: The ID of the runtime revision to use when executing code.
Expand Down
Loading

0 comments on commit 9862e76

Please sign in to comment.