From 2cb36e72a9fce9afc70ddc77cc45407dfdf0f862 Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Wed, 17 Apr 2024 18:38:58 +0000 Subject: [PATCH] feat(api): update via SDK Studio --- CONTRIBUTING.md | 4 ++-- README.md | 10 +++++----- pyproject.toml | 8 ++++---- requirements-dev.lock | 12 ++++++------ requirements.lock | 12 ++++++------ src/riza/_base_client.py | 2 +- 6 files changed, 24 insertions(+), 24 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0e35365..26d0184 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -59,7 +59,7 @@ If you’d like to use the repository from source, you can either install from g To install via git: ```bash -pip install git+ssh://git@github.com/stainless-sdks/TEMP_riza-api-python.git +pip install git+ssh://git@github.com/stainless-sdks/riza-api-python.git ``` Alternatively, you can build from source and install the wheel file: @@ -117,7 +117,7 @@ the changes aren't made through the automated pipeline, you may want to make rel ### Publish with a GitHub workflow -You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-sdks/TEMP_riza-api-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up. +You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-sdks/riza-api-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up. ### Publish manually diff --git a/README.md b/README.md index 8ea91ae..5893021 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Riza Python API library -[![PyPI version](https://img.shields.io/pypi/v/TEMP_riza-api.svg)](https://pypi.org/project/TEMP_riza-api/) +[![PyPI version](https://img.shields.io/pypi/v/riza.svg)](https://pypi.org/project/riza/) The Riza Python library provides convenient access to the Riza REST API from any Python 3.7+ application. The library includes type definitions for all request params and response fields, @@ -16,7 +16,7 @@ The REST API documentation can be found [on docs.riza.io](https://docs.riza.io). ```sh # install from PyPI -pip install --pre TEMP_riza-api +pip install --pre riza ``` ## Usage @@ -203,9 +203,9 @@ v1 = response.parse() # get the object that `v1.execute()` would have returned print(v1.exit_code) ``` -These methods return an [`APIResponse`](https://github.com/stainless-sdks/tree/main/src/riza/_response.py) object. +These methods return an [`APIResponse`](https://github.com/stainless-sdks/riza-api-python/tree/main/src/riza/_response.py) object. -The async client returns an [`AsyncAPIResponse`](https://github.com/stainless-sdks/tree/main/src/riza/_response.py) with the same structure, the only difference being `await`able methods for reading the response content. +The async client returns an [`AsyncAPIResponse`](https://github.com/stainless-sdks/riza-api-python/tree/main/src/riza/_response.py) with the same structure, the only difference being `await`able methods for reading the response content. #### `.with_streaming_response` @@ -293,7 +293,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience. -We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/TEMP_riza-api-python/issues) with questions, bugs, or suggestions. +We are keen for your feedback; please open an [issue](https://www.github.com/stainless-sdks/riza-api-python/issues) with questions, bugs, or suggestions. ## Requirements diff --git a/pyproject.toml b/pyproject.toml index 1e67a0b..b0f3f03 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "TEMP_riza-api" +name = "riza" version = "0.0.1-alpha.0" description = "The official Python library for the riza API" dynamic = ["readme"] @@ -39,8 +39,8 @@ classifiers = [ [project.urls] -Homepage = "https://github.com/stainless-sdks/TEMP_riza-api-python" -Repository = "https://github.com/stainless-sdks/TEMP_riza-api-python" +Homepage = "https://github.com/stainless-sdks/riza-api-python" +Repository = "https://github.com/stainless-sdks/riza-api-python" @@ -108,7 +108,7 @@ path = "README.md" [[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]] # replace relative links with absolute links pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)' -replacement = '[\1](https://github.com/stainless-sdks/tree/main/\g<2>)' +replacement = '[\1](https://github.com/stainless-sdks/riza-api-python/tree/main/\g<2>)' [tool.black] line-length = 120 diff --git a/requirements-dev.lock b/requirements-dev.lock index ba07ca0..21ed73e 100644 --- a/requirements-dev.lock +++ b/requirements-dev.lock @@ -12,7 +12,7 @@ annotated-types==0.6.0 # via pydantic anyio==4.1.0 # via httpx - # via temp-riza-api + # via riza argcomplete==3.1.2 # via nox attrs==23.1.0 @@ -26,7 +26,7 @@ dirty-equals==0.6.0 distlib==0.3.7 # via virtualenv distro==1.8.0 - # via temp-riza-api + # via riza exceptiongroup==1.1.3 # via anyio filelock==3.12.4 @@ -37,7 +37,7 @@ httpcore==1.0.2 # via httpx httpx==0.25.2 # via respx - # via temp-riza-api + # via riza idna==3.4 # via anyio # via httpx @@ -60,7 +60,7 @@ pluggy==1.3.0 py==1.11.0 # via pytest pydantic==2.4.2 - # via temp-riza-api + # via riza pydantic-core==2.10.1 # via pydantic pyright==1.1.353 @@ -80,7 +80,7 @@ six==1.16.0 sniffio==1.3.0 # via anyio # via httpx - # via temp-riza-api + # via riza time-machine==2.9.0 tomli==2.0.1 # via mypy @@ -89,7 +89,7 @@ typing-extensions==4.8.0 # via mypy # via pydantic # via pydantic-core - # via temp-riza-api + # via riza virtualenv==20.24.5 # via nox zipp==3.17.0 diff --git a/requirements.lock b/requirements.lock index ce2544c..82f7568 100644 --- a/requirements.lock +++ b/requirements.lock @@ -12,12 +12,12 @@ annotated-types==0.6.0 # via pydantic anyio==4.1.0 # via httpx - # via temp-riza-api + # via riza certifi==2023.7.22 # via httpcore # via httpx distro==1.8.0 - # via temp-riza-api + # via riza exceptiongroup==1.1.3 # via anyio h11==0.14.0 @@ -25,19 +25,19 @@ h11==0.14.0 httpcore==1.0.2 # via httpx httpx==0.25.2 - # via temp-riza-api + # via riza idna==3.4 # via anyio # via httpx pydantic==2.4.2 - # via temp-riza-api + # via riza pydantic-core==2.10.1 # via pydantic sniffio==1.3.0 # via anyio # via httpx - # via temp-riza-api + # via riza typing-extensions==4.8.0 # via pydantic # via pydantic-core - # via temp-riza-api + # via riza diff --git a/src/riza/_base_client.py b/src/riza/_base_client.py index a4f95fd..baae8f3 100644 --- a/src/riza/_base_client.py +++ b/src/riza/_base_client.py @@ -362,7 +362,7 @@ def __init__( if max_retries is None: # pyright: ignore[reportUnnecessaryComparison] raise TypeError( - "max_retries cannot be None. If you want to disable retries, pass `0`; if you want unlimited retries, pass `math.inf` or a very high number; if you want the default behavior, pass `TEMP_riza-api.DEFAULT_MAX_RETRIES`" + "max_retries cannot be None. If you want to disable retries, pass `0`; if you want unlimited retries, pass `math.inf` or a very high number; if you want the default behavior, pass `riza.DEFAULT_MAX_RETRIES`" ) def _enforce_trailing_slash(self, url: URL) -> URL: