Skip to content

Commit 8278600

Browse files
chore: sync repo
1 parent cc43711 commit 8278600

File tree

131 files changed

+4684
-6905
lines changed

Some content is hidden

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

131 files changed

+4684
-6905
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}
33

44
USER vscode
55

6-
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
6+
RUN curl -sSf https://rye.astral.sh/get | RYE_VERSION="0.44.0" RYE_INSTALL_OPTION="--yes" bash
7+
ENV PATH=/home/vscode/.rye/shims:$PATH
78

89
RUN echo "[[ -d .venv ]] && source .venv/bin/activate || export PATH=\$PATH" >> /home/vscode/.bashrc

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"context": ".."
88
},
99

10-
"postStartCommand": "uv sync --all-extras",
10+
"postStartCommand": "rye sync --all-features",
1111

1212
"customizations": {
1313
"vscode": {
@@ -20,7 +20,7 @@
2020
"python.defaultInterpreterPath": ".venv/bin/python",
2121
"python.typeChecking": "basic",
2222
"terminal.integrated.env.linux": {
23-
"PATH": "${env:PATH}"
23+
"PATH": "/home/vscode/.rye/shims:${env:PATH}"
2424
}
2525
}
2626
}

.github/workflows/ci.yml

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,21 @@ jobs:
1818
lint:
1919
timeout-minutes: 10
2020
name: lint
21-
runs-on: ${{ github.repository == 'stainless-sdks/context.dev-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
21+
runs-on: ${{ github.repository == 'stainless-sdks/brand.dev-python' && 'depot-ubuntu-24.04' || '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@v6
2525

26-
- name: Install uv
27-
uses: astral-sh/setup-uv@v5
28-
with:
29-
version: '0.10.2'
26+
- name: Install Rye
27+
run: |
28+
curl -sSf https://rye.astral.sh/get | bash
29+
echo "$HOME/.rye/shims" >> $GITHUB_PATH
30+
env:
31+
RYE_VERSION: '0.44.0'
32+
RYE_INSTALL_OPTION: '--yes'
3033

3134
- name: Install dependencies
32-
run: uv sync --all-extras
35+
run: rye sync --all-features
3336

3437
- name: Run lints
3538
run: ./scripts/lint
@@ -41,24 +44,27 @@ jobs:
4144
permissions:
4245
contents: read
4346
id-token: write
44-
runs-on: ${{ github.repository == 'stainless-sdks/context.dev-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
47+
runs-on: ${{ github.repository == 'stainless-sdks/brand.dev-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
4548
steps:
4649
- uses: actions/checkout@v6
4750

48-
- name: Install uv
49-
uses: astral-sh/setup-uv@v5
50-
with:
51-
version: '0.10.2'
51+
- name: Install Rye
52+
run: |
53+
curl -sSf https://rye.astral.sh/get | bash
54+
echo "$HOME/.rye/shims" >> $GITHUB_PATH
55+
env:
56+
RYE_VERSION: '0.44.0'
57+
RYE_INSTALL_OPTION: '--yes'
5258

5359
- name: Install dependencies
54-
run: uv sync --all-extras
60+
run: rye sync --all-features
5561

5662
- name: Run build
57-
run: uv build
63+
run: rye build
5864

5965
- name: Get GitHub OIDC Token
6066
if: |-
61-
github.repository == 'stainless-sdks/context.dev-python' &&
67+
github.repository == 'stainless-sdks/brand.dev-python' &&
6268
!startsWith(github.ref, 'refs/heads/stl/')
6369
id: github-oidc
6470
uses: actions/github-script@v8
@@ -67,7 +73,7 @@ jobs:
6773

6874
- name: Upload tarball
6975
if: |-
70-
github.repository == 'stainless-sdks/context.dev-python' &&
76+
github.repository == 'stainless-sdks/brand.dev-python' &&
7177
!startsWith(github.ref, 'refs/heads/stl/')
7278
env:
7379
URL: https://pkg.stainless.com/s
@@ -78,15 +84,18 @@ jobs:
7884
test:
7985
timeout-minutes: 10
8086
name: test
81-
runs-on: ${{ github.repository == 'stainless-sdks/context.dev-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
87+
runs-on: ${{ github.repository == 'stainless-sdks/brand.dev-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
8288
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
8389
steps:
8490
- uses: actions/checkout@v6
8591

86-
- name: Install uv
87-
uses: astral-sh/setup-uv@v5
88-
with:
89-
version: '0.10.2'
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'
9099

91100
- name: Bootstrap
92101
run: ./scripts/bootstrap

.github/workflows/publish-pypi.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This workflow is triggered when a GitHub release is created.
22
# 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/context-dot-dev/python-sdk/actions/workflows/publish-pypi.yml
3+
# You can run this workflow by navigating to https://www.github.com/brand-dot-dev/python-sdk/actions/workflows/publish-pypi.yml
44
name: Publish PyPI
55
on:
66
workflow_dispatch:
@@ -12,18 +12,20 @@ jobs:
1212
publish:
1313
name: publish
1414
runs-on: ubuntu-latest
15-
permissions:
16-
contents: read
17-
id-token: write
1815

1916
steps:
2017
- uses: actions/checkout@v6
2118

22-
- name: Install uv
23-
uses: astral-sh/setup-uv@v5
24-
with:
25-
version: '0.9.13'
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'
2626

2727
- name: Publish to PyPI
2828
run: |
2929
bash ./bin/publish-pypi
30+
env:
31+
PYPI_TOKEN: ${{ secrets.BRAND_DEV_PYPI_TOKEN || secrets.PYPI_TOKEN }}

.github/workflows/release-doctor.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ jobs:
99
release_doctor:
1010
name: release doctor
1111
runs-on: ubuntu-latest
12-
if: github.repository == 'context-dot-dev/python-sdk' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
12+
if: github.repository == 'brand-dot-dev/python-sdk' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
1313

1414
steps:
1515
- uses: actions/checkout@v6
1616

1717
- name: Check release environment
1818
run: |
1919
bash ./bin/check-release-environment
20+
env:
21+
PYPI_TOKEN: ${{ secrets.BRAND_DEV_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-
".": "0.3.0"
2+
".": "1.37.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: 20
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev%2Fcontext.dev-3a8af8deb24e840300df2b1a74edfb075287af9f38e6d343960ba75fce00ab68.yml
3-
openapi_spec_hash: acc99bb843c5c7d630bc2a80b1b97444
4-
config_hash: 23402de9dae83f5e9234b577722ab85c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-e6540b8abe35309c0b139a2b5985bf318903714d712b866e282da36b87f1ee72.yml
3+
openapi_spec_hash: 2c1b55e2428c0b6c5a91d1d6a2ba9980
4+
config_hash: 4cd3173ea1cce7183640aae49cfbb374

Brewfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
brew "uv"
1+
brew "rye"
22

0 commit comments

Comments
 (0)