Skip to content

Commit b59e930

Browse files
chore: change production repo to replicate/replicate-python-beta
We renamed it from replicate/replicate-python-stainless in anticipation of the beta release.
1 parent 24fe88a commit b59e930

File tree

23 files changed

+76
-76
lines changed

23 files changed

+76
-76
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This workflow is triggered when a GitHub release is created.
22
# It can also be run manually to re-publish to PyPI in case it failed for some reason.
3-
# You can run this workflow by navigating to https://www.github.com/replicate/replicate-python-stainless/actions/workflows/publish-pypi.yml
3+
# You can run this workflow by navigating to https://www.github.com/replicate/replicate-python-beta/actions/workflows/publish-pypi.yml
44
name: Publish PyPI
55
on:
66
workflow_dispatch:

.github/workflows/release-doctor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
release_doctor:
1010
name: release doctor
1111
runs-on: ubuntu-latest
12-
if: github.repository == 'replicate/replicate-python-stainless' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
12+
if: github.repository == 'replicate/replicate-python-beta' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
1313

1414
steps:
1515
- uses: actions/checkout@v4

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 37
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/replicate%2Freplicate-client-7a537f433b0b71a42a3d53ce6182cc06790157bbb379461eed93cdb68659bc92.yml
33
openapi_spec_hash: 5c7633dce3ece58e21f74d826946914c
4-
config_hash: 2c7c9d1642de34f563e0774bb1cd0ff0
4+
config_hash: 9d8cb02f2fcc20fef865630116f4037d

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ If you’d like to use the repository from source, you can either install from g
6262
To install via git:
6363

6464
```sh
65-
$ pip install git+ssh://[email protected]/replicate/replicate-python-stainless.git
65+
$ pip install git+ssh://[email protected]/replicate/replicate-python-beta.git
6666
```
6767

6868
Alternatively, you can build from source and install the wheel file:
@@ -120,7 +120,7 @@ the changes aren't made through the automated pipeline, you may want to make rel
120120

121121
### Publish with a GitHub workflow
122122

123-
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/replicate/replicate-python-stainless/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
123+
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/replicate/replicate-python-beta/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
124124

125125
### Publish manually
126126

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,9 @@ prediction = response.parse() # get the object that `predictions.create()` woul
417417
print(prediction.id)
418418
```
419419

420-
These methods return an [`APIResponse`](https://github.com/replicate/replicate-python-stainless/tree/main/src/replicate/_response.py) object.
420+
These methods return an [`APIResponse`](https://github.com/replicate/replicate-python-beta/tree/main/src/replicate/_response.py) object.
421421

422-
The async client returns an [`AsyncAPIResponse`](https://github.com/replicate/replicate-python-stainless/tree/main/src/replicate/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
422+
The async client returns an [`AsyncAPIResponse`](https://github.com/replicate/replicate-python-beta/tree/main/src/replicate/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.
423423

424424
#### `.with_streaming_response`
425425

@@ -657,7 +657,7 @@ This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) con
657657

658658
We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
659659

660-
We are keen for your feedback; please open an [issue](https://www.github.com/replicate/replicate-python-stainless/issues) with questions, bugs, or suggestions.
660+
We are keen for your feedback; please open an [issue](https://www.github.com/replicate/replicate-python-beta/issues) with questions, bugs, or suggestions.
661661

662662
### Determining the installed version
663663

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ classifiers = [
3636
]
3737

3838
[project.urls]
39-
Homepage = "https://github.com/replicate/replicate-python-stainless"
40-
Repository = "https://github.com/replicate/replicate-python-stainless"
39+
Homepage = "https://github.com/replicate/replicate-python-beta"
40+
Repository = "https://github.com/replicate/replicate-python-beta"
4141

4242
[project.optional-dependencies]
4343
aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.8"]
@@ -125,7 +125,7 @@ path = "README.md"
125125
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
126126
# replace relative links with absolute links
127127
pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
128-
replacement = '[\1](https://github.com/replicate/replicate-python-stainless/tree/main/\g<2>)'
128+
replacement = '[\1](https://github.com/replicate/replicate-python-beta/tree/main/\g<2>)'
129129

130130
[tool.pytest.ini_options]
131131
testpaths = ["tests"]

src/replicate/_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def assert_is_file_content(obj: object, *, key: str | None = None) -> None:
3434
if not is_file_content(obj):
3535
prefix = f"Expected entry at `{key}`" if key is not None else f"Expected file input `{obj!r}`"
3636
raise RuntimeError(
37-
f"{prefix} to be bytes, an io.IOBase instance, PathLike or a tuple but received {type(obj)} instead. See https://github.com/replicate/replicate-python-stainless/tree/main#file-uploads"
37+
f"{prefix} to be bytes, an io.IOBase instance, PathLike or a tuple but received {type(obj)} instead. See https://github.com/replicate/replicate-python-beta/tree/main#file-uploads"
3838
) from None
3939

4040

src/replicate/resources/account.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def with_raw_response(self) -> AccountResourceWithRawResponse:
2626
This property can be used as a prefix for any HTTP method call to return
2727
the raw response object instead of the parsed content.
2828
29-
For more information, see https://www.github.com/replicate/replicate-python-stainless#accessing-raw-response-data-eg-headers
29+
For more information, see https://www.github.com/replicate/replicate-python-beta#accessing-raw-response-data-eg-headers
3030
"""
3131
return AccountResourceWithRawResponse(self)
3232

@@ -35,7 +35,7 @@ def with_streaming_response(self) -> AccountResourceWithStreamingResponse:
3535
"""
3636
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
3737
38-
For more information, see https://www.github.com/replicate/replicate-python-stainless#with_streaming_response
38+
For more information, see https://www.github.com/replicate/replicate-python-beta#with_streaming_response
3939
"""
4040
return AccountResourceWithStreamingResponse(self)
4141

@@ -88,7 +88,7 @@ def with_raw_response(self) -> AsyncAccountResourceWithRawResponse:
8888
This property can be used as a prefix for any HTTP method call to return
8989
the raw response object instead of the parsed content.
9090
91-
For more information, see https://www.github.com/replicate/replicate-python-stainless#accessing-raw-response-data-eg-headers
91+
For more information, see https://www.github.com/replicate/replicate-python-beta#accessing-raw-response-data-eg-headers
9292
"""
9393
return AsyncAccountResourceWithRawResponse(self)
9494

@@ -97,7 +97,7 @@ def with_streaming_response(self) -> AsyncAccountResourceWithStreamingResponse:
9797
"""
9898
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
9999
100-
For more information, see https://www.github.com/replicate/replicate-python-stainless#with_streaming_response
100+
For more information, see https://www.github.com/replicate/replicate-python-beta#with_streaming_response
101101
"""
102102
return AsyncAccountResourceWithStreamingResponse(self)
103103

src/replicate/resources/collections.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def with_raw_response(self) -> CollectionsResourceWithRawResponse:
2828
This property can be used as a prefix for any HTTP method call to return
2929
the raw response object instead of the parsed content.
3030
31-
For more information, see https://www.github.com/replicate/replicate-python-stainless#accessing-raw-response-data-eg-headers
31+
For more information, see https://www.github.com/replicate/replicate-python-beta#accessing-raw-response-data-eg-headers
3232
"""
3333
return CollectionsResourceWithRawResponse(self)
3434

@@ -37,7 +37,7 @@ def with_streaming_response(self) -> CollectionsResourceWithStreamingResponse:
3737
"""
3838
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
3939
40-
For more information, see https://www.github.com/replicate/replicate-python-stainless#with_streaming_response
40+
For more information, see https://www.github.com/replicate/replicate-python-beta#with_streaming_response
4141
"""
4242
return CollectionsResourceWithStreamingResponse(self)
4343

@@ -145,7 +145,7 @@ def with_raw_response(self) -> AsyncCollectionsResourceWithRawResponse:
145145
This property can be used as a prefix for any HTTP method call to return
146146
the raw response object instead of the parsed content.
147147
148-
For more information, see https://www.github.com/replicate/replicate-python-stainless#accessing-raw-response-data-eg-headers
148+
For more information, see https://www.github.com/replicate/replicate-python-beta#accessing-raw-response-data-eg-headers
149149
"""
150150
return AsyncCollectionsResourceWithRawResponse(self)
151151

@@ -154,7 +154,7 @@ def with_streaming_response(self) -> AsyncCollectionsResourceWithStreamingRespon
154154
"""
155155
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
156156
157-
For more information, see https://www.github.com/replicate/replicate-python-stainless#with_streaming_response
157+
For more information, see https://www.github.com/replicate/replicate-python-beta#with_streaming_response
158158
"""
159159
return AsyncCollectionsResourceWithStreamingResponse(self)
160160

src/replicate/resources/deployments/deployments.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def with_raw_response(self) -> DeploymentsResourceWithRawResponse:
4444
This property can be used as a prefix for any HTTP method call to return
4545
the raw response object instead of the parsed content.
4646
47-
For more information, see https://www.github.com/replicate/replicate-python-stainless#accessing-raw-response-data-eg-headers
47+
For more information, see https://www.github.com/replicate/replicate-python-beta#accessing-raw-response-data-eg-headers
4848
"""
4949
return DeploymentsResourceWithRawResponse(self)
5050

@@ -53,7 +53,7 @@ def with_streaming_response(self) -> DeploymentsResourceWithStreamingResponse:
5353
"""
5454
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
5555
56-
For more information, see https://www.github.com/replicate/replicate-python-stainless#with_streaming_response
56+
For more information, see https://www.github.com/replicate/replicate-python-beta#with_streaming_response
5757
"""
5858
return DeploymentsResourceWithStreamingResponse(self)
5959

@@ -463,7 +463,7 @@ def with_raw_response(self) -> AsyncDeploymentsResourceWithRawResponse:
463463
This property can be used as a prefix for any HTTP method call to return
464464
the raw response object instead of the parsed content.
465465
466-
For more information, see https://www.github.com/replicate/replicate-python-stainless#accessing-raw-response-data-eg-headers
466+
For more information, see https://www.github.com/replicate/replicate-python-beta#accessing-raw-response-data-eg-headers
467467
"""
468468
return AsyncDeploymentsResourceWithRawResponse(self)
469469

@@ -472,7 +472,7 @@ def with_streaming_response(self) -> AsyncDeploymentsResourceWithStreamingRespon
472472
"""
473473
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
474474
475-
For more information, see https://www.github.com/replicate/replicate-python-stainless#with_streaming_response
475+
For more information, see https://www.github.com/replicate/replicate-python-beta#with_streaming_response
476476
"""
477477
return AsyncDeploymentsResourceWithStreamingResponse(self)
478478

0 commit comments

Comments
 (0)