Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}

USER vscode

RUN curl -sSf https://rye.astral.sh/get | RYE_VERSION="0.35.0" RYE_INSTALL_OPTION="--yes" bash
RUN curl -sSf https://rye.astral.sh/get | RYE_VERSION="0.44.0" RYE_INSTALL_OPTION="--yes" bash
ENV PATH=/home/vscode/.rye/shims:$PATH

RUN echo "[[ -d .venv ]] && source .venv/bin/activate" >> /home/vscode/.bashrc
RUN echo "[[ -d .venv ]] && source .venv/bin/activate || export PATH=\$PATH" >> /home/vscode/.bashrc
3 changes: 3 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
}
}
}
},
"features": {
"ghcr.io/devcontainers/features/node:1": {}
}

// Features to add to the dev container. More info: https://containers.dev/features.
Expand Down
69 changes: 56 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
name: CI
on:
push:
branches:
- main
branches-ignore:
- 'generated'
- 'codegen/**'
- 'integrated/**'
- 'stl-preview-head/**'
- 'stl-preview-base/**'
pull_request:
branches:
- main
- next
branches-ignore:
- 'stl-preview-head/**'
- 'stl-preview-base/**'

jobs:
lint:
timeout-minutes: 10
name: lint
runs-on: ubuntu-latest


runs-on: ${{ github.repository == 'stainless-sdks/hedra-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4

Expand All @@ -22,18 +26,58 @@ jobs:
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: '0.35.0'
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'

- name: Install dependencies
run: rye sync --all-features

- name: Run lints
run: ./scripts/lint

build:
if: github.repository == 'stainless-sdks/hedra-python' && (github.event_name == 'push' || github.event.pull_request.head.repo.fork)
timeout-minutes: 10
name: build
permissions:
contents: read
id-token: write
runs-on: depot-ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: Install Rye
run: |
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'

- name: Install dependencies
run: rye sync --all-features

- name: Run build
run: rye build

- name: Get GitHub OIDC Token
id: github-oidc
uses: actions/github-script@v6
with:
script: core.setOutput('github_token', await core.getIDToken());

- name: Upload tarball
env:
URL: https://pkg.stainless.com/s
AUTH: ${{ steps.github-oidc.outputs.github_token }}
SHA: ${{ github.sha }}
run: ./scripts/utils/upload-artifact.sh

test:
timeout-minutes: 10
name: test
runs-on: ubuntu-latest

runs-on: ${{ github.repository == 'stainless-sdks/hedra-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4

Expand All @@ -42,12 +86,11 @@ jobs:
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: '0.35.0'
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'

- name: Bootstrap
run: ./scripts/bootstrap

- name: Run tests
run: ./scripts/test

2 changes: 1 addition & 1 deletion .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
curl -sSf https://rye.astral.sh/get | bash
echo "$HOME/.rye/shims" >> $GITHUB_PATH
env:
RYE_VERSION: '0.35.0'
RYE_VERSION: '0.44.0'
RYE_INSTALL_OPTION: '--yes'

- name: Publish to PyPI
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.2"
".": "0.2.0"
}
6 changes: 4 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
configured_endpoints: 9
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hedra%2Fhedra-ec0a74ecb65d56fac6808e750a0e649159a77e7728a91a7c2cb49f009e02c0e7.yml
configured_endpoints: 8
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hedra%2Fhedra-0f3a0efa69517e8b7ca4b4b12b89185d938f0d1742cd6ddf481de5597524c5c5.yml
openapi_spec_hash: 90a6c1fdbfe22ccbde6dc441a0af6ca1
config_hash: fe26a9db7bd1285642bc570b3dd98559
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# Changelog

## 0.2.0 (2025-07-05)

Full Changelog: [v0.1.2...v0.2.0](https://github.com/hedra-labs/hedra-python/compare/v0.1.2...v0.2.0)

### Features

* **api:** manual updates ([3bb2b5c](https://github.com/hedra-labs/hedra-python/commit/3bb2b5c6e0e832485dba2b0fc8fc60f547beeade))
* **api:** manual updates ([9c57f52](https://github.com/hedra-labs/hedra-python/commit/9c57f52e8f2aa3c3d4eba2cd05aee0f943e8deaa))


### Bug Fixes

* **client:** compat with new httpx 0.28.0 release ([#23](https://github.com/hedra-labs/hedra-python/issues/23)) ([007fd82](https://github.com/hedra-labs/hedra-python/commit/007fd824c21468b3e3bc986d2f08b58256bbe5d1))


### Chores

* **api:** update openapi specification ([6fe8c7c](https://github.com/hedra-labs/hedra-python/commit/6fe8c7cc172b2e02fe4fdf3ad98a53f60189e191))
* **internal:** codegen related update ([#24](https://github.com/hedra-labs/hedra-python/issues/24)) ([bc62c46](https://github.com/hedra-labs/hedra-python/commit/bc62c46f7db7259fa292523c38d6a34f664aff21))
* **internal:** exclude mypy from running on tests ([#22](https://github.com/hedra-labs/hedra-python/issues/22)) ([cdd20eb](https://github.com/hedra-labs/hedra-python/commit/cdd20ebf2f188eeca21a23528f443b44366a431a))
* **internal:** fix compat model_dump method when warnings are passed ([#19](https://github.com/hedra-labs/hedra-python/issues/19)) ([591c5fa](https://github.com/hedra-labs/hedra-python/commit/591c5fa63f422f06056f8f143807dbfd69185db9))
* rebuild project due to codegen change ([#13](https://github.com/hedra-labs/hedra-python/issues/13)) ([1175b8d](https://github.com/hedra-labs/hedra-python/commit/1175b8d115ffeac5f353b3b36bce819d9a1b0c94))
* rebuild project due to codegen change ([#15](https://github.com/hedra-labs/hedra-python/issues/15)) ([52b39df](https://github.com/hedra-labs/hedra-python/commit/52b39df5468ca2ab5245a9876669be5545a54e7c))
* rebuild project due to codegen change ([#16](https://github.com/hedra-labs/hedra-python/issues/16)) ([bc36a8c](https://github.com/hedra-labs/hedra-python/commit/bc36a8c6f977f92da2d593bb056eba537a1a5836))
* rebuild project due to codegen change ([#17](https://github.com/hedra-labs/hedra-python/issues/17)) ([b75af72](https://github.com/hedra-labs/hedra-python/commit/b75af72041260621da34f76e7b59d6147ac30722))
* rebuild project due to codegen change ([#18](https://github.com/hedra-labs/hedra-python/issues/18)) ([7806a74](https://github.com/hedra-labs/hedra-python/commit/7806a74949b47b1347b1498e1cee7d8dbadb2e9c))
* remove now unused `cached-property` dep ([#21](https://github.com/hedra-labs/hedra-python/issues/21)) ([cadbf83](https://github.com/hedra-labs/hedra-python/commit/cadbf8369caba1d4eb7ac920a1a4cc17c740bee2))


### Documentation

* add info log level to readme ([#20](https://github.com/hedra-labs/hedra-python/issues/20)) ([9dff95f](https://github.com/hedra-labs/hedra-python/commit/9dff95f5e8d23cc79bbf62a3776167ff1fd6c0f9))

## 0.1.2 (2024-11-02)

Full Changelog: [v0.1.0-alpha.2...v0.1.2](https://github.com/hedra-labs/hedra-python/compare/v0.1.0-alpha.2...v0.1.2)
Expand Down
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ $ rye sync --all-features
You can then run scripts using `rye run python script.py` or by activating the virtual environment:

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

# now you can omit the `rye run` prefix
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2024 Hedra
Copyright 2025 Hedra

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Loading
Loading