Skip to content

Commit 08484c1

Browse files
authored
Merge pull request #1 from zbdpay/release-please--branches--main--changes--next
release: 0.1.0-alpha.1
2 parents 77175a0 + 8b5cf7e commit 08484c1

File tree

102 files changed

+1038
-602
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+1038
-602
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
name: CI
22
on:
33
push:
4-
branches:
5-
- main
4+
branches-ignore:
5+
- 'generated'
6+
- 'codegen/**'
7+
- 'integrated/**'
8+
- 'stl-preview-head/**'
9+
- 'stl-preview-base/**'
610
pull_request:
7-
branches:
8-
- main
9-
- next
11+
branches-ignore:
12+
- 'stl-preview-head/**'
13+
- 'stl-preview-base/**'
1014

1115
jobs:
1216
lint:
17+
timeout-minutes: 10
1318
name: lint
14-
runs-on: ubuntu-latest
19+
runs-on: ${{ github.repository == 'stainless-sdks/zbd-payments-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
20+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
1521
steps:
1622
- uses: actions/checkout@v4
1723

@@ -29,9 +35,35 @@ jobs:
2935
- name: Run lints
3036
run: ./scripts/lint
3137

38+
upload:
39+
if: github.repository == 'stainless-sdks/zbd-payments-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
40+
timeout-minutes: 10
41+
name: upload
42+
permissions:
43+
contents: read
44+
id-token: write
45+
runs-on: depot-ubuntu-24.04
46+
steps:
47+
- uses: actions/checkout@v4
48+
49+
- name: Get GitHub OIDC Token
50+
id: github-oidc
51+
uses: actions/github-script@v6
52+
with:
53+
script: core.setOutput('github_token', await core.getIDToken());
54+
55+
- name: Upload tarball
56+
env:
57+
URL: https://pkg.stainless.com/s
58+
AUTH: ${{ steps.github-oidc.outputs.github_token }}
59+
SHA: ${{ github.sha }}
60+
run: ./scripts/utils/upload-artifact.sh
61+
3262
test:
63+
timeout-minutes: 10
3364
name: test
34-
runs-on: ubuntu-latest
65+
runs-on: ${{ github.repository == 'stainless-sdks/zbd-payments-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
66+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
3567
steps:
3668
- uses: actions/checkout@v4
3769

.github/workflows/publish-pypi.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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/zbdpay/zbd-payments-python-sdk/actions/workflows/publish-pypi.yml
4+
name: Publish PyPI
5+
on:
6+
workflow_dispatch:
7+
8+
release:
9+
types: [published]
10+
11+
jobs:
12+
publish:
13+
name: publish
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Install Rye
20+
run: |
21+
curl -sSf https://rye.astral.sh/get | bash
22+
echo "$HOME/.rye/shims" >> $GITHUB_PATH
23+
env:
24+
RYE_VERSION: '0.44.0'
25+
RYE_INSTALL_OPTION: '--yes'
26+
27+
- name: Publish to PyPI
28+
run: |
29+
bash ./bin/publish-pypi
30+
env:
31+
PYPI_TOKEN: ${{ secrets.ZBD_PAYMENTS_PYPI_TOKEN || secrets.PYPI_TOKEN }}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release Doctor
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
8+
jobs:
9+
release_doctor:
10+
name: release doctor
11+
runs-on: ubuntu-latest
12+
if: github.repository == 'zbdpay/zbd-payments-python-sdk' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Check release environment
18+
run: |
19+
bash ./bin/check-release-environment
20+
env:
21+
PYPI_TOKEN: ${{ secrets.ZBD_PAYMENTS_PYPI_TOKEN || secrets.PYPI_TOKEN }}

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.1.0-alpha.1"
3+
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 33
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/zbd%2Fzbd-payments-8a37aac39f339fd14d09cc1bbc1444f4d24d0dfd5f8d28d6a4cf096c1a583c4c.yml
3-
openapi_spec_hash: 26af776d03d1f1fbcfd2c76856c1f678
4-
config_hash: d2ecaa08414cfa2db88041eb1eb589bc
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/zbd%2Fzbd-payments-b07ae2569a1c3d44292fec44abb406b201a641a1ae03c8aa265ff8b1b7d07325.yml
3+
openapi_spec_hash: 068c6e3db049853428040e8baaaa8ec1
4+
config_hash: 7be95e9a7e9d28075d025f3c19c59b8b

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Changelog
2+
3+
## 0.1.0-alpha.1 (2025-06-30)
4+
5+
Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/zbdpay/zbd-payments-python-sdk/compare/v0.0.1-alpha.0...v0.1.0-alpha.1)
6+
7+
### Features
8+
9+
* **api:** update via SDK Studio ([e140140](https://github.com/zbdpay/zbd-payments-python-sdk/commit/e1401402adc0922f9d480bd4915508829a012ea6))
10+
* **api:** update via SDK Studio ([d365689](https://github.com/zbdpay/zbd-payments-python-sdk/commit/d365689aea13350770ebb29003703506b2d93bc6))
11+
* **api:** update via SDK Studio ([77175a0](https://github.com/zbdpay/zbd-payments-python-sdk/commit/77175a07ea0bd1874d86fecb7b82e2e2388bacb0))
12+
* **client:** add support for aiohttp ([8788187](https://github.com/zbdpay/zbd-payments-python-sdk/commit/8788187346d655321d0f7039833533060ad23a58))
13+
14+
15+
### Bug Fixes
16+
17+
* **ci:** correct conditional ([80e453a](https://github.com/zbdpay/zbd-payments-python-sdk/commit/80e453a6e788e1d0486512289db060a0c2116c4b))
18+
* **ci:** release-doctor — report correct token name ([80668d2](https://github.com/zbdpay/zbd-payments-python-sdk/commit/80668d2c8e761c84183950b40f2d01319f0cbbe3))
19+
20+
21+
### Chores
22+
23+
* change publish docs url ([ade5ab6](https://github.com/zbdpay/zbd-payments-python-sdk/commit/ade5ab6d9c14e7f91a6cbb1addf75189ae3dc42e))
24+
* **ci:** only run for pushes and fork pull requests ([859534a](https://github.com/zbdpay/zbd-payments-python-sdk/commit/859534a6d07900299587933720f1054d5b67d036))
25+
* configure new SDK language ([679c119](https://github.com/zbdpay/zbd-payments-python-sdk/commit/679c119fa94c1e1c88d78576c52b183be1dca2ca))
26+
* configure new SDK language ([07173a5](https://github.com/zbdpay/zbd-payments-python-sdk/commit/07173a50fe45ea94e40ed83b04dc09384bf458e1))
27+
* **internal:** codegen related update ([5cba4a2](https://github.com/zbdpay/zbd-payments-python-sdk/commit/5cba4a2c05d6d3a8a483ada0c22720aaeb619303))
28+
* **tests:** skip some failing tests on the latest python versions ([680eed5](https://github.com/zbdpay/zbd-payments-python-sdk/commit/680eed5b78810d2296df2e60a3c8bf0f11c73d51))
29+
* update SDK settings ([9be94bf](https://github.com/zbdpay/zbd-payments-python-sdk/commit/9be94bf044c25787f3832724f9f00ad05e0d5878))

CONTRIBUTING.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ $ rye sync --all-features
1717
You can then run scripts using `rye run python script.py` or by activating the virtual environment:
1818

1919
```sh
20-
$ rye shell
21-
# or manually activate - https://docs.python.org/3/library/venv.html#how-venvs-work
20+
# Activate the virtual environment - https://docs.python.org/3/library/venv.html#how-venvs-work
2221
$ source .venv/bin/activate
2322

2423
# now you can omit the `rye run` prefix
@@ -37,7 +36,7 @@ $ pip install -r requirements-dev.lock
3736

3837
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may
3938
result in merge conflicts between manual patches and changes from the generator. The generator will never
40-
modify the contents of the `src/zbdpay_payments_sdk/lib/` and `examples/` directories.
39+
modify the contents of the `src/zbdpay/lib/` and `examples/` directories.
4140

4241
## Adding and running examples
4342

@@ -63,7 +62,7 @@ If you’d like to use the repository from source, you can either install from g
6362
To install via git:
6463

6564
```sh
66-
$ pip install git+ssh://git@github.com/stainless-sdks/zbd-payments-python.git
65+
$ pip install git+ssh://git@github.com/zbdpay/zbd-payments-python-sdk.git
6766
```
6867

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

122121
### Publish with a GitHub workflow
123122

124-
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/stainless-sdks/zbd-payments-python/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/zbdpay/zbd-payments-python-sdk/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
125124

126125
### Publish manually
127126

0 commit comments

Comments
 (0)