Skip to content

Commit d388e19

Browse files
feat(api): regenerate SDK from latest OpenAPI spec
Automated SDK regeneration from latest OpenAPI spec (stlc self-hosted pipeline, run 26739416901).
1 parent 406097c commit d388e19

9 files changed

Lines changed: 44 additions & 59 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
lint:
1919
timeout-minutes: 10
2020
name: lint
21-
runs-on: ${{ github.repository == 'stainless-sdks/dodo-payments-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
21+
runs-on: ubuntu-latest
2222
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
2323
steps:
2424
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -44,7 +44,7 @@ jobs:
4444
permissions:
4545
contents: read
4646
id-token: write
47-
runs-on: ${{ github.repository == 'stainless-sdks/dodo-payments-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
47+
runs-on: ubuntu-latest
4848
steps:
4949
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5050

@@ -61,44 +61,3 @@ jobs:
6161

6262
- name: Run build
6363
run: rye build
64-
65-
- name: Get GitHub OIDC Token
66-
if: |-
67-
github.repository == 'stainless-sdks/dodo-payments-python' &&
68-
!startsWith(github.ref, 'refs/heads/stl/')
69-
id: github-oidc
70-
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
71-
with:
72-
script: core.setOutput('github_token', await core.getIDToken());
73-
74-
- name: Upload tarball
75-
if: |-
76-
github.repository == 'stainless-sdks/dodo-payments-python' &&
77-
!startsWith(github.ref, 'refs/heads/stl/')
78-
env:
79-
URL: https://pkg.stainless.com/s
80-
AUTH: ${{ steps.github-oidc.outputs.github_token }}
81-
SHA: ${{ github.sha }}
82-
run: ./scripts/utils/upload-artifact.sh
83-
84-
test:
85-
timeout-minutes: 10
86-
name: test
87-
runs-on: ${{ github.repository == 'stainless-sdks/dodo-payments-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
88-
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
89-
steps:
90-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
91-
92-
- name: Install Rye
93-
run: |
94-
curl -sSf https://rye.astral.sh/get | bash
95-
echo "$HOME/.rye/shims" >> $GITHUB_PATH
96-
env:
97-
RYE_VERSION: '0.44.0'
98-
RYE_INSTALL_OPTION: '--yes'
99-
100-
- name: Bootstrap
101-
run: ./scripts/bootstrap
102-
103-
- name: Run tests
104-
run: ./scripts/test

.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+
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
2122
PYPI_TOKEN: ${{ secrets.DODO_PAYMENTS_PYPI_TOKEN || secrets.PYPI_TOKEN }}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release Please
2+
on:
3+
push:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
release-please:
14+
if: github.repository == 'dodopayments/dodopayments-python'
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
19+
id: app-token
20+
with:
21+
client-id: ${{ vars.APP_CLIENT_ID }}
22+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
23+
24+
- uses: googleapis/release-please-action@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071 # v4.4.1
25+
id: release
26+
with:
27+
token: ${{ steps.app-token.outputs.token }}

.stats.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
configured_endpoints: 129
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/dodo-payments/dodo-payments-1b34d3f97b8b78222aaa5ad0e32add5aa49307a8cc563a556bc3e5ea78585175.yml
3-
openapi_spec_hash: 3ae2b45a65b68c25007835eafc758f3e
4-
config_hash: b9fa2634135996e7865bc69f4d985177

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 "${APP_PRIVATE_KEY}" ]; then
6+
errors+=("The APP_PRIVATE_KEY secret has not been set. Add the dodo-squirrels GitHub App private key as a repository secret, and set the APP_CLIENT_ID repository variable.")
7+
fi
8+
59
if [ -z "${PYPI_TOKEN}" ]; then
610
errors+=("The PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
711
fi

release-please-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"packages": {
33
".": {}
44
},
5-
"$schema": "https://raw.githubusercontent.com/stainless-api/release-please/main/schemas/config.json",
5+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
66
"include-v-in-tag": true,
77
"include-component-in-tag": false,
88
"versioning": "prerelease",

scripts/mock

Lines changed: 8 additions & 7 deletions
Large diffs are not rendered by default.

scripts/utils/upload-artifact.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ UPLOAD_RESPONSE=$(curl -v -X PUT \
2020

2121
if echo "$UPLOAD_RESPONSE" | grep -q "HTTP/[0-9.]* 200"; then
2222
echo -e "\033[32mUploaded build to Stainless storage.\033[0m"
23-
echo -e "\033[32mInstallation: pip install 'https://pkg.stainless.com/s/dodo-payments-python/$SHA/$FILENAME'\033[0m"
23+
echo -e "\033[32mInstallation: pip install 'https://pkg.stainless.com/s/dodopayments-python/$SHA/$FILENAME'\033[0m"
2424
else
2525
echo -e "\033[31mFailed to upload artifact.\033[0m"
2626
exit 1

src/dodo_payments/lib/.keep

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)