Skip to content

Commit 8b54087

Browse files
chore: sync repo
1 parent 8a3dd6a commit 8b54087

File tree

132 files changed

+7025
-4689
lines changed

Some content is hidden

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

132 files changed

+7025
-4689
lines changed

.devcontainer/Dockerfile

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

44
USER vscode
55

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
6+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
87

98
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": "rye sync --all-features",
10+
"postStartCommand": "uv sync --all-extras",
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": "/home/vscode/.rye/shims:${env:PATH}"
23+
"PATH": "${env:PATH}"
2424
}
2525
}
2626
}

.github/workflows/ci.yml

Lines changed: 22 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -18,53 +18,47 @@ jobs:
1818
lint:
1919
timeout-minutes: 10
2020
name: lint
21-
runs-on: ${{ github.repository == 'stainless-sdks/brand.dev-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
22-
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
21+
runs-on: ${{ github.repository == 'stainless-sdks/context.dev-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
22+
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 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'
26+
- name: Install uv
27+
uses: astral-sh/setup-uv@v5
28+
with:
29+
version: '0.10.2'
3330

3431
- name: Install dependencies
35-
run: rye sync --all-features
32+
run: uv sync --all-extras
3633

3734
- name: Run lints
3835
run: ./scripts/lint
3936

4037
build:
41-
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
38+
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
4239
timeout-minutes: 10
4340
name: build
4441
permissions:
4542
contents: read
4643
id-token: write
47-
runs-on: ${{ github.repository == 'stainless-sdks/brand.dev-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
44+
runs-on: ${{ github.repository == 'stainless-sdks/context.dev-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
4845
steps:
4946
- uses: actions/checkout@v6
5047

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'
48+
- name: Install uv
49+
uses: astral-sh/setup-uv@v5
50+
with:
51+
version: '0.10.2'
5852

5953
- name: Install dependencies
60-
run: rye sync --all-features
54+
run: uv sync --all-extras
6155

6256
- name: Run build
63-
run: rye build
57+
run: uv build
6458

6559
- name: Get GitHub OIDC Token
6660
if: |-
67-
github.repository == 'stainless-sdks/brand.dev-python' &&
61+
github.repository == 'stainless-sdks/context.dev-python' &&
6862
!startsWith(github.ref, 'refs/heads/stl/')
6963
id: github-oidc
7064
uses: actions/github-script@v8
@@ -73,7 +67,7 @@ jobs:
7367

7468
- name: Upload tarball
7569
if: |-
76-
github.repository == 'stainless-sdks/brand.dev-python' &&
70+
github.repository == 'stainless-sdks/context.dev-python' &&
7771
!startsWith(github.ref, 'refs/heads/stl/')
7872
env:
7973
URL: https://pkg.stainless.com/s
@@ -84,18 +78,15 @@ jobs:
8478
test:
8579
timeout-minutes: 10
8680
name: test
87-
runs-on: ${{ github.repository == 'stainless-sdks/brand.dev-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
81+
runs-on: ${{ github.repository == 'stainless-sdks/context.dev-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
8882
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
8983
steps:
9084
- uses: actions/checkout@v6
9185

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

10091
- name: Bootstrap
10192
run: ./scripts/bootstrap

.github/workflows/publish-pypi.yml

Lines changed: 8 additions & 10 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/brand-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/context-python-sdk/actions/workflows/publish-pypi.yml
44
name: Publish PyPI
55
on:
66
workflow_dispatch:
@@ -12,20 +12,18 @@ jobs:
1212
publish:
1313
name: publish
1414
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
id-token: write
1518

1619
steps:
1720
- uses: actions/checkout@v6
1821

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'
22+
- name: Install uv
23+
uses: astral-sh/setup-uv@v5
24+
with:
25+
version: '0.9.13'
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: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@ jobs:
99
release_doctor:
1010
name: release doctor
1111
runs-on: ubuntu-latest
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')
12+
if: github.repository == 'brand-dot-dev/context-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 }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.prism.log
2+
.stdy.log
23
_dev
34

45
__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-
".": "1.37.0"
2+
".": "0.2.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/brand-dev%2Fbrand.dev-67e4ffa39d74649a6ae6b21e9f86cffa83c8a02d640ca6b4d4a3e619b54fbd38.yml
3-
openapi_spec_hash: 762e7ea7ae23297cc6b01f600a485410
4-
config_hash: 4cd3173ea1cce7183640aae49cfbb374
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: ab5135cc119f83ae2821f9445ed99d16

Brewfile

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

0 commit comments

Comments
 (0)