Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This workflow is triggered when a GitHub release is created.
# It can also be run manually to re-publish to PyPI in case it failed for some reason.
# You can run this workflow by navigating to https://www.github.com/stainless-commons/rollin-python/actions/workflows/publish-pypi.yml
name: Publish PyPI
on:
workflow_dispatch:

release:
types: [published]

jobs:
publish:
name: publish
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: '0.9.13'

- name: Publish to PyPI
run: |
bash ./bin/publish-pypi
env:
PYPI_TOKEN: ${{ secrets.ROLLIN_PYPI_TOKEN || secrets.PYPI_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Release Doctor
on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
release_doctor:
name: release doctor
runs-on: ubuntu-latest
if: github.repository == 'stainless-commons/rollin-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')

steps:
- uses: actions/checkout@v6

- name: Check release environment
run: |
bash ./bin/check-release-environment
env:
PYPI_TOKEN: ${{ secrets.ROLLIN_PYPI_TOKEN || secrets.PYPI_TOKEN }}
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.0.2"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 5
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless-commons%2Frollin-d74c3d4ca7ba96520dbec138670e805952ce9fde3d0db839f461454bdfd4e40e.yml
openapi_spec_hash: a03774a443f2fb8bfe042956cd7ae65e
config_hash: f7f823e11cd80dae4a0c97e25c1da962
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless-commons%2Frollin-7bcca4488c625ade3f4de4d4c2ecedbda347d11ce79e9146eaffa0f76142c1e4.yml
openapi_spec_hash: 0a4ee54cf9bdf485a9763c82110dfdda
config_hash: e3fcd81f3932d7df05c2524108bc7f20
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Changelog

## 0.0.2 (2026-02-16)

Full Changelog: [v0.0.1...v0.0.2](https://github.com/stainless-commons/rollin-python/compare/v0.0.1...v0.0.2)

### Chores

* configure new SDK language ([8d66666](https://github.com/stainless-commons/rollin-python/commit/8d66666ef5c1b60ac7765ccabcb8a6d14f1acfc8))
* update SDK settings ([6997733](https://github.com/stainless-commons/rollin-python/commit/6997733f513985b8b46ec7d21a8dca5572756f97))
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ If you’d like to use the repository from source, you can either install from g
To install via git:

```sh
$ pip install git+ssh://git@github.com/stainless-sdks/rollin-python.git
$ pip install git+ssh://git@github.com/stainless-commons/rollin-python.git
```

Alternatively, you can build from source and install the wheel file:
Expand Down Expand Up @@ -120,7 +120,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/rollin-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-commons/rollin-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.

### Publish manually

Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ The REST API documentation can be found on [joinrollin.com](https://joinrollin.c
## Installation

```sh
# install from this staging repo
pip install git+ssh://git@github.com/stainless-sdks/rollin-python.git
# install from the production repo
pip install git+ssh://git@github.com/stainless-commons/rollin-python.git
```

> [!NOTE]
Expand Down Expand Up @@ -81,8 +81,8 @@ By default, the async client uses `httpx` for HTTP requests. However, for improv
You can enable this by installing `aiohttp`:

```sh
# install from this staging repo
pip install 'rollin[aiohttp] @ git+ssh://git@github.com/stainless-sdks/rollin-python.git'
# install from the production repo
pip install 'rollin[aiohttp] @ git+ssh://git@github.com/stainless-commons/rollin-python.git'
```

Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
Expand Down Expand Up @@ -339,9 +339,9 @@ location = response.parse() # get the object that `locations.list()` would have
print(location.id)
```

These methods return an [`APIResponse`](https://github.com/stainless-sdks/rollin-python/tree/main/src/rollin/_response.py) object.
These methods return an [`APIResponse`](https://github.com/stainless-commons/rollin-python/tree/main/src/rollin/_response.py) object.

The async client returns an [`AsyncAPIResponse`](https://github.com/stainless-sdks/rollin-python/tree/main/src/rollin/_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-commons/rollin-python/tree/main/src/rollin/_response.py) with the same structure, the only difference being `await`able methods for reading the response content.

#### `.with_streaming_response`

Expand Down Expand Up @@ -448,7 +448,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/rollin-python/issues) with questions, bugs, or suggestions.
We are keen for your feedback; please open an [issue](https://www.github.com/stainless-commons/rollin-python/issues) with questions, bugs, or suggestions.

### Determining the installed version

Expand Down
21 changes: 21 additions & 0 deletions bin/check-release-environment
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

errors=()

if [ -z "${PYPI_TOKEN}" ]; then
errors+=("The PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
fi

lenErrors=${#errors[@]}

if [[ lenErrors -gt 0 ]]; then
echo -e "Found the following errors in the release environment:\n"

for error in "${errors[@]}"; do
echo -e "- $error\n"
done

exit 1
fi

echo "The environment is ready to push releases!"
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "rollin"
version = "0.0.1"
version = "0.0.2"
description = "The official Python library for the rollin API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down Expand Up @@ -37,8 +37,8 @@ classifiers = [
]

[project.urls]
Homepage = "https://github.com/stainless-sdks/rollin-python"
Repository = "https://github.com/stainless-sdks/rollin-python"
Homepage = "https://github.com/stainless-commons/rollin-python"
Repository = "https://github.com/stainless-commons/rollin-python"

[project.optional-dependencies]
aiohttp = ["aiohttp", "httpx_aiohttp>=0.1.9"]
Expand Down Expand Up @@ -112,7 +112,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/rollin-python/tree/main/\g<2>)'
replacement = '[\1](https://github.com/stainless-commons/rollin-python/tree/main/\g<2>)'

[tool.pytest.ini_options]
testpaths = ["tests"]
Expand Down
66 changes: 66 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"packages": {
".": {}
},
"$schema": "https://raw.githubusercontent.com/stainless-api/release-please/main/schemas/config.json",
"include-v-in-tag": true,
"include-component-in-tag": false,
"versioning": "prerelease",
"prerelease": true,
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": false,
"pull-request-header": "Automated Release PR",
"pull-request-title-pattern": "release: ${version}",
"changelog-sections": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "perf",
"section": "Performance Improvements"
},
{
"type": "revert",
"section": "Reverts"
},
{
"type": "chore",
"section": "Chores"
},
{
"type": "docs",
"section": "Documentation"
},
{
"type": "style",
"section": "Styles"
},
{
"type": "refactor",
"section": "Refactors"
},
{
"type": "test",
"section": "Tests",
"hidden": true
},
{
"type": "build",
"section": "Build System"
},
{
"type": "ci",
"section": "Continuous Integration",
"hidden": true
}
],
"release-type": "python",
"extra-files": [
"src/rollin/_version.py"
]
}
2 changes: 1 addition & 1 deletion src/rollin/_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__ = "rollin"
__version__ = "0.0.1"
__version__ = "0.0.2" # x-release-please-version
8 changes: 4 additions & 4 deletions src/rollin/resources/feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def with_raw_response(self) -> FeedbackResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/stainless-sdks/rollin-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/stainless-commons/rollin-python#accessing-raw-response-data-eg-headers
"""
return FeedbackResourceWithRawResponse(self)

Expand All @@ -39,7 +39,7 @@ def with_streaming_response(self) -> FeedbackResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/stainless-sdks/rollin-python#with_streaming_response
For more information, see https://www.github.com/stainless-commons/rollin-python#with_streaming_response
"""
return FeedbackResourceWithStreamingResponse(self)

Expand Down Expand Up @@ -107,7 +107,7 @@ def with_raw_response(self) -> AsyncFeedbackResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/stainless-sdks/rollin-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/stainless-commons/rollin-python#accessing-raw-response-data-eg-headers
"""
return AsyncFeedbackResourceWithRawResponse(self)

Expand All @@ -116,7 +116,7 @@ def with_streaming_response(self) -> AsyncFeedbackResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/stainless-sdks/rollin-python#with_streaming_response
For more information, see https://www.github.com/stainless-commons/rollin-python#with_streaming_response
"""
return AsyncFeedbackResourceWithStreamingResponse(self)

Expand Down
8 changes: 4 additions & 4 deletions src/rollin/resources/locations.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def with_raw_response(self) -> LocationsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/stainless-sdks/rollin-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/stainless-commons/rollin-python#accessing-raw-response-data-eg-headers
"""
return LocationsResourceWithRawResponse(self)

Expand All @@ -39,7 +39,7 @@ def with_streaming_response(self) -> LocationsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/stainless-sdks/rollin-python#with_streaming_response
For more information, see https://www.github.com/stainless-commons/rollin-python#with_streaming_response
"""
return LocationsResourceWithStreamingResponse(self)

Expand Down Expand Up @@ -159,7 +159,7 @@ def with_raw_response(self) -> AsyncLocationsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/stainless-sdks/rollin-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/stainless-commons/rollin-python#accessing-raw-response-data-eg-headers
"""
return AsyncLocationsResourceWithRawResponse(self)

Expand All @@ -168,7 +168,7 @@ def with_streaming_response(self) -> AsyncLocationsResourceWithStreamingResponse
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/stainless-sdks/rollin-python#with_streaming_response
For more information, see https://www.github.com/stainless-commons/rollin-python#with_streaming_response
"""
return AsyncLocationsResourceWithStreamingResponse(self)

Expand Down
8 changes: 4 additions & 4 deletions src/rollin/resources/regions.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def with_raw_response(self) -> RegionsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/stainless-sdks/rollin-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/stainless-commons/rollin-python#accessing-raw-response-data-eg-headers
"""
return RegionsResourceWithRawResponse(self)

Expand All @@ -35,7 +35,7 @@ def with_streaming_response(self) -> RegionsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/stainless-sdks/rollin-python#with_streaming_response
For more information, see https://www.github.com/stainless-commons/rollin-python#with_streaming_response
"""
return RegionsResourceWithStreamingResponse(self)

Expand Down Expand Up @@ -70,7 +70,7 @@ def with_raw_response(self) -> AsyncRegionsResourceWithRawResponse:
This property can be used as a prefix for any HTTP method call to return
the raw response object instead of the parsed content.

For more information, see https://www.github.com/stainless-sdks/rollin-python#accessing-raw-response-data-eg-headers
For more information, see https://www.github.com/stainless-commons/rollin-python#accessing-raw-response-data-eg-headers
"""
return AsyncRegionsResourceWithRawResponse(self)

Expand All @@ -79,7 +79,7 @@ def with_streaming_response(self) -> AsyncRegionsResourceWithStreamingResponse:
"""
An alternative to `.with_raw_response` that doesn't eagerly read the response body.

For more information, see https://www.github.com/stainless-sdks/rollin-python#with_streaming_response
For more information, see https://www.github.com/stainless-commons/rollin-python#with_streaming_response
"""
return AsyncRegionsResourceWithStreamingResponse(self)

Expand Down
Loading
Loading