Skip to content

Commit 586d478

Browse files
committed
Release 0.1.5
1 parent a0dcffd commit 586d478

File tree

260 files changed

+27204
-15920
lines changed

Some content is hidden

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

260 files changed

+27204
-15920
lines changed

.devcontainer/Dockerfile

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

.devcontainer/devcontainer.json

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

.fernignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Specify files that shouldn't be modified by Fern

.github/workflows/ci.yml

Lines changed: 49 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,61 @@
1-
name: CI
2-
on:
3-
push:
4-
branches-ignore:
5-
- 'generated'
6-
- 'codegen/**'
7-
- 'integrated/**'
8-
- 'stl-preview-head/**'
9-
- 'stl-preview-base/**'
10-
pull_request:
11-
branches-ignore:
12-
- 'stl-preview-head/**'
13-
- 'stl-preview-base/**'
1+
name: ci
142

3+
on: [push]
154
jobs:
16-
lint:
17-
timeout-minutes: 10
18-
name: lint
19-
runs-on: ${{ github.repository == 'stainless-sdks/klavis-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
5+
compile:
6+
runs-on: ubuntu-latest
207
steps:
21-
- uses: actions/checkout@v4
22-
23-
- name: Install Rye
8+
- name: Checkout repo
9+
uses: actions/checkout@v4
10+
- name: Set up python
11+
uses: actions/setup-python@v4
12+
with:
13+
python-version: 3.8
14+
- name: Bootstrap poetry
2415
run: |
25-
curl -sSf https://rye.astral.sh/get | bash
26-
echo "$HOME/.rye/shims" >> $GITHUB_PATH
27-
env:
28-
RYE_VERSION: '0.44.0'
29-
RYE_INSTALL_OPTION: '--yes'
30-
16+
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
3117
- name: Install dependencies
32-
run: rye sync --all-features
33-
34-
- name: Run lints
35-
run: ./scripts/lint
36-
37-
upload:
38-
if: github.repository == 'stainless-sdks/klavis-python'
39-
timeout-minutes: 10
40-
name: upload
41-
permissions:
42-
contents: read
43-
id-token: write
44-
runs-on: depot-ubuntu-24.04
18+
run: poetry install
19+
- name: Compile
20+
run: poetry run mypy .
21+
test:
22+
runs-on: ubuntu-latest
4523
steps:
46-
- uses: actions/checkout@v4
47-
48-
- name: Get GitHub OIDC Token
49-
id: github-oidc
50-
uses: actions/github-script@v6
24+
- name: Checkout repo
25+
uses: actions/checkout@v4
26+
- name: Set up python
27+
uses: actions/setup-python@v4
5128
with:
52-
script: core.setOutput('github_token', await core.getIDToken());
29+
python-version: 3.8
30+
- name: Bootstrap poetry
31+
run: |
32+
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
33+
- name: Install dependencies
34+
run: poetry install
5335

54-
- name: Upload tarball
55-
env:
56-
URL: https://pkg.stainless.com/s
57-
AUTH: ${{ steps.github-oidc.outputs.github_token }}
58-
SHA: ${{ github.sha }}
59-
run: ./scripts/utils/upload-artifact.sh
36+
- name: Test
37+
run: poetry run pytest -rP .
6038

61-
test:
62-
timeout-minutes: 10
63-
name: test
64-
runs-on: ${{ github.repository == 'stainless-sdks/klavis-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
39+
publish:
40+
needs: [compile, test]
41+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
42+
runs-on: ubuntu-latest
6543
steps:
66-
- uses: actions/checkout@v4
67-
68-
- name: Install Rye
44+
- name: Checkout repo
45+
uses: actions/checkout@v4
46+
- name: Set up python
47+
uses: actions/setup-python@v4
48+
with:
49+
python-version: 3.8
50+
- name: Bootstrap poetry
6951
run: |
70-
curl -sSf https://rye.astral.sh/get | bash
71-
echo "$HOME/.rye/shims" >> $GITHUB_PATH
52+
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
53+
- name: Install dependencies
54+
run: poetry install
55+
- name: Publish to pypi
56+
run: |
57+
poetry config repositories.remote https://upload.pypi.org/legacy/
58+
poetry --no-interaction -v publish --build --repository remote --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD"
7259
env:
73-
RYE_VERSION: '0.44.0'
74-
RYE_INSTALL_OPTION: '--yes'
75-
76-
- name: Bootstrap
77-
run: ./scripts/bootstrap
78-
79-
- name: Run tests
80-
run: ./scripts/test
60+
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
61+
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

.github/workflows/publish-pypi.yml

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

.github/workflows/release-doctor.yml

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

.gitignore

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
1-
.prism.log
2-
.vscode
3-
_dev
4-
5-
__pycache__
6-
.mypy_cache
7-
8-
dist
9-
10-
.venv
11-
.idea
12-
13-
.env
14-
.envrc
15-
codegen.log
16-
Brewfile.lock.json
1+
.mypy_cache/
2+
.ruff_cache/
3+
__pycache__/
4+
dist/
5+
poetry.toml

.python-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

.release-please-manifest.json

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

.stats.yml

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

0 commit comments

Comments
 (0)