Skip to content

Commit 1ed15a7

Browse files
authored
Merge pull request #2684 from cloudflare/release-please--branches--main--changes--next
release: 5.0.0-beta.1
2 parents ac1ae1c + 8fd6121 commit 1ed15a7

File tree

3,640 files changed

+239668
-69581
lines changed

Some content is hidden

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

3,640 files changed

+239668
-69581
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
- 'integrated/**'
99
- 'stl-preview-head/**'
1010
- 'stl-preview-base/**'
11+
pull_request:
12+
branches-ignore:
13+
- 'stl-preview-head/**'
14+
- 'stl-preview-base/**'
1115

1216
concurrency:
1317
group: ${{ github.workflow }}-${{ github.ref }}
@@ -18,8 +22,9 @@ jobs:
1822
timeout-minutes: 10
1923
name: lint
2024
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
25+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
2126
steps:
22-
- uses: actions/checkout@v4
27+
- uses: actions/checkout@v6
2328

2429
- name: Install Rye
2530
run: |
@@ -35,24 +40,40 @@ jobs:
3540
- name: Run lints
3641
run: ./scripts/lint
3742

38-
upload:
39-
if: github.repository == 'stainless-sdks/cloudflare-python'
43+
build:
44+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
4045
timeout-minutes: 10
41-
name: upload
46+
name: build
4247
permissions:
4348
contents: read
4449
id-token: write
45-
runs-on: depot-ubuntu-24.04
50+
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
4651
steps:
47-
- uses: actions/checkout@v4
52+
- uses: actions/checkout@v6
53+
54+
- name: Install Rye
55+
run: |
56+
curl -sSf https://rye.astral.sh/get | bash
57+
echo "$HOME/.rye/shims" >> $GITHUB_PATH
58+
env:
59+
RYE_VERSION: '0.44.0'
60+
RYE_INSTALL_OPTION: '--yes'
61+
62+
- name: Install dependencies
63+
run: rye sync --all-features
64+
65+
- name: Run build
66+
run: rye build
4867

4968
- name: Get GitHub OIDC Token
69+
if: github.repository == 'stainless-sdks/cloudflare-python'
5070
id: github-oidc
5171
uses: actions/github-script@v6
5272
with:
5373
script: core.setOutput('github_token', await core.getIDToken());
5474

5575
- name: Upload tarball
76+
if: github.repository == 'stainless-sdks/cloudflare-python'
5677
env:
5778
URL: https://pkg.stainless.com/s
5879
AUTH: ${{ steps.github-oidc.outputs.github_token }}
@@ -63,8 +84,9 @@ jobs:
6384
timeout-minutes: 30
6485
name: test
6586
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
87+
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
6688
steps:
67-
- uses: actions/checkout@v4
89+
- uses: actions/checkout@v6
6890

6991
- name: Install Rye
7092
run: |
@@ -84,10 +106,10 @@ jobs:
84106
timeout-minutes: 10
85107
name: examples
86108
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
87-
if: github.repository == 'cloudflare/cloudflare-python'
109+
if: github.repository == 'cloudflare/cloudflare-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
88110

89111
steps:
90-
- uses: actions/checkout@v4
112+
- uses: actions/checkout@v6
91113

92114
- name: Install Rye
93115
run: |
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
- next
7+
8+
jobs:
9+
detect_breaking_changes:
10+
runs-on: 'ubuntu-latest'
11+
name: detect-breaking-changes
12+
if: false
13+
permissions:
14+
contents: read
15+
steps:
16+
- name: Calculate fetch-depth
17+
run: |
18+
echo "FETCH_DEPTH=$(expr ${{ github.event.pull_request.commits }} + 1)" >> $GITHUB_ENV
19+
20+
- uses: actions/checkout@v6
21+
with:
22+
# Ensure we can check out the pull request base in the script below.
23+
fetch-depth: ${{ env.FETCH_DEPTH }}
24+
25+
- name: Install Rye
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+
- name: Install dependencies
33+
run: |
34+
rye sync --all-features
35+
- name: Detect removed symbols
36+
run: |
37+
rye run python scripts/detect-breaking-changes.py "${{ github.event.pull_request.base.sha }}"
38+
39+
- name: Detect breaking changes
40+
run: |
41+
# Try to check out previous versions of the breaking change detection script. This ensures that
42+
# we still detect breaking changes when entire files and their tests are removed.
43+
git checkout "${{ github.event.pull_request.base.sha }}" -- ./scripts/detect-breaking-changes 2>/dev/null || true
44+
./scripts/detect-breaking-changes ${{ github.event.pull_request.base.sha }}

.github/workflows/publish-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v6
1818

1919
- name: Install Rye
2020
run: |

.github/workflows/release-doctor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
if: github.repository == 'cloudflare/cloudflare-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
1919

2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v6
2222

2323
- name: Check release environment
2424
run: |

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.prism.log
2-
.vscode
32
_dev
43

54
__pycache__

.release-please-manifest.json

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

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1752
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b15b44e0efd207de48e7e74e742b0b4b190c74f12a941a1a0ef59a51656a5224.yml
3-
openapi_spec_hash: 83243c9ee06f88d0fa91e9b185d8a42e
4-
config_hash: 8601d43fd5ccaf9e3d08f26748a5a63a
1+
configured_endpoints: 2015
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-83f49bc3fa9273ef989d3e8bcd27f6fdaa7d04ae2519a91f4878f46acc501bb9.yml
3+
openapi_spec_hash: 3f4be3af6f51eea4787dc8345f9ca9c1
4+
config_hash: 9d1829ed664bb3efa8638f98bb32cf46

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"python.analysis.importFormat": "relative",
3+
}

0 commit comments

Comments
 (0)