Skip to content

Commit 52ac08c

Browse files
stainless-app[bot]meorphis
authored andcommitted
chore: sync repo
1 parent 9ee5f5e commit 52ac08c

24 files changed

+1459
-710
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Create releases
2+
on:
3+
schedule:
4+
- cron: '0 5 * * *' # every day at 5am UTC
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
release:
11+
name: release
12+
if: github.ref == 'refs/heads/main' && github.repository == 'openintegrations/python-sdk'
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: stainless-api/trigger-release-please@v1
19+
id: release
20+
with:
21+
repo: ${{ github.event.repository.full_name }}
22+
stainless-api-key: ${{ secrets.STAINLESS_API_KEY }}
23+
24+
- name: Install Rye
25+
if: ${{ steps.release.outputs.releases_created }}
26+
run: |
27+
curl -sSf https://rye.astral.sh/get | bash
28+
echo "$HOME/.rye/shims" >> $GITHUB_PATH
29+
env:
30+
RYE_VERSION: '0.44.0'
31+
RYE_INSTALL_OPTION: '--yes'
32+
33+
- name: Publish to PyPI
34+
if: ${{ steps.release.outputs.releases_created }}
35+
run: |
36+
bash ./bin/publish-pypi
37+
env:
38+
PYPI_TOKEN: ${{ secrets.OPENINT_PYPI_TOKEN || secrets.PYPI_TOKEN }}

.github/workflows/publish-pypi.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
# This workflow is triggered when a GitHub release is created.
2-
# 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/openintegrations/python-sdk/actions/workflows/publish-pypi.yml
1+
# workflow for re-running publishing to PyPI in case it fails for some reason
2+
# you can run this workflow by navigating to https://www.github.com/openintegrations/python-sdk/actions/workflows/publish-pypi.yml
43
name: Publish PyPI
54
on:
65
workflow_dispatch:
76

8-
release:
9-
types: [published]
10-
117
jobs:
128
publish:
139
name: publish

.github/workflows/release-doctor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ jobs:
1818
run: |
1919
bash ./bin/check-release-environment
2020
env:
21+
STAINLESS_API_KEY: ${{ secrets.STAINLESS_API_KEY }}
2122
PYPI_TOKEN: ${{ secrets.OPENINT_PYPI_TOKEN || secrets.PYPI_TOKEN }}

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.6.0"
2+
".": "1.5.0"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 10
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openint%2Fopenint-67a61cc981caf2a7992bcb19816e09474399f50cfa9a2a6cf2c79b8299a53d16.yml
3-
openapi_spec_hash: 32eae2c2f8547ef3ea3e395bf2f413e2
4-
config_hash: a6e549521fa293498319c532d9cfa93f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openint%2Fopenint-21dd873c4f72eb1599c52a65f085d6ba34b6aa35632111ae1ac1f39b133e642d.yml
3+
openapi_spec_hash: 43cbfe71f732c90beb90f8d33bd285ec
4+
config_hash: 68f87c7c6066f017748605b799b1c902

CHANGELOG.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
11
# Changelog
22

3-
## 1.6.0 (2025-04-29)
4-
5-
Full Changelog: [v1.5.0...v1.6.0](https://github.com/openintegrations/python-sdk/compare/v1.5.0...v1.6.0)
6-
7-
### Features
8-
9-
* **docs:** updating documented docs for stainless ([894766b](https://github.com/openintegrations/python-sdk/commit/894766b4eb1e79fea8f69e665c43949a4fb997ab))
10-
* **docs:** updating documented docs for stainless ([656f9df](https://github.com/openintegrations/python-sdk/commit/656f9df38b872e00b3a40750c44b9349e9055e89))
11-
* **docs:** updating documented docs for stainless ([6a870da](https://github.com/openintegrations/python-sdk/commit/6a870da7731185f03182bc6608b189ad2565efba))
12-
13-
14-
### Chores
15-
16-
* broadly detect json family of content-type headers ([900745b](https://github.com/openintegrations/python-sdk/commit/900745b8a05d6fe02ada55b2072927808db9ff61))
17-
* **ci:** only use depot for staging repos ([ccd3ab3](https://github.com/openintegrations/python-sdk/commit/ccd3ab3fc8908d94ae1010d1d86a54da6d4b6ad1))
18-
* **internal:** codegen related update ([4c57bbc](https://github.com/openintegrations/python-sdk/commit/4c57bbcf4b1f97ae9783631b414f2746f874d149))
19-
* **internal:** minor formatting changes ([17c8baa](https://github.com/openintegrations/python-sdk/commit/17c8baabef0340e6d2fdcade1588f139a4601676))
20-
213
## 1.5.0 (2025-04-23)
224

235
Full Changelog: [v1.4.0...v1.5.0](https://github.com/openintegrations/python-sdk/compare/v1.4.0...v1.5.0)

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,19 @@ import os
2828
from openint import Openint
2929

3030
client = Openint(
31-
api_key=os.environ.get("OPENINT_API_KEY"), # This is the default and can be omitted
31+
token=os.environ.get(
32+
"OPENINT_API_KEY_OR_CUSTOMER_TOKEN"
33+
), # This is the default and can be omitted
3234
)
3335

3436
page = client.list_connections()
3537
print(page.items)
3638
```
3739

38-
While you can provide an `api_key` keyword argument,
40+
While you can provide a `token` keyword argument,
3941
we recommend using [python-dotenv](https://pypi.org/project/python-dotenv/)
40-
to add `OPENINT_API_KEY="My API Key"` to your `.env` file
41-
so that your API Key is not stored in source control.
42+
to add `OPENINT_API_KEY_OR_CUSTOMER_TOKEN="My Token"` to your `.env` file
43+
so that your Token is not stored in source control.
4244

4345
## Async usage
4446

@@ -50,7 +52,9 @@ import asyncio
5052
from openint import AsyncOpenint
5153

5254
client = AsyncOpenint(
53-
api_key=os.environ.get("OPENINT_API_KEY"), # This is the default and can be omitted
55+
token=os.environ.get(
56+
"OPENINT_API_KEY_OR_CUSTOMER_TOKEN"
57+
), # This is the default and can be omitted
5458
)
5559

5660

bin/check-release-environment

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

33
errors=()
44

5+
if [ -z "${STAINLESS_API_KEY}" ]; then
6+
errors+=("The STAINLESS_API_KEY secret has not been set. Please contact Stainless for an API key & set it in your organization secrets on GitHub.")
7+
fi
8+
59
if [ -z "${PYPI_TOKEN}" ]; then
610
errors+=("The OPENINT_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
711
fi

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "openint"
3-
version = "1.6.0"
3+
version = "1.5.0"
44
description = "The official Python library for the Openint API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

0 commit comments

Comments
 (0)