Skip to content

Commit d104487

Browse files
authored
Merge pull request #107 from hyperspell/release-please--branches--main--changes--next
release: 0.35.0
2 parents a558deb + 782bd22 commit d104487

41 files changed

Lines changed: 3366 additions & 440 deletions

Some content is hidden

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

.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: 23 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: CI
22
on:
33
push:
4-
branches-ignore:
5-
- 'generated'
6-
- 'codegen/**'
7-
- 'integrated/**'
8-
- 'stl-preview-head/**'
9-
- 'stl-preview-base/**'
4+
branches:
5+
- '**'
6+
- '!integrated/**'
7+
- '!stl-preview-head/**'
8+
- '!stl-preview-base/**'
9+
- '!generated'
10+
- '!codegen/**'
11+
- 'codegen/stl/**'
1012
pull_request:
1113
branches-ignore:
1214
- 'stl-preview-head/**'
@@ -21,16 +23,13 @@ jobs:
2123
steps:
2224
- uses: actions/checkout@v6
2325

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

3231
- name: Install dependencies
33-
run: rye sync --all-features
32+
run: uv sync --all-extras
3433

3534
- name: Run lints
3635
run: ./scripts/lint
@@ -46,19 +45,16 @@ jobs:
4645
steps:
4746
- uses: actions/checkout@v6
4847

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

5753
- name: Install dependencies
58-
run: rye sync --all-features
54+
run: uv sync --all-extras
5955

6056
- name: Run build
61-
run: rye build
57+
run: uv build
6258

6359
- name: Get GitHub OIDC Token
6460
if: |-
@@ -87,13 +83,10 @@ jobs:
8783
steps:
8884
- uses: actions/checkout@v6
8985

90-
- name: Install Rye
91-
run: |
92-
curl -sSf https://rye.astral.sh/get | bash
93-
echo "$HOME/.rye/shims" >> $GITHUB_PATH
94-
env:
95-
RYE_VERSION: '0.44.0'
96-
RYE_INSTALL_OPTION: '--yes'
86+
- name: Install uv
87+
uses: astral-sh/setup-uv@v5
88+
with:
89+
version: '0.10.2'
9790

9891
- name: Bootstrap
9992
run: ./scripts/bootstrap

.github/workflows/publish-pypi.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,10 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v6
2121

22-
- name: Install Rye
23-
run: |
24-
curl -sSf https://rye.astral.sh/get | bash
25-
echo "$HOME/.rye/shims" >> $GITHUB_PATH
26-
env:
27-
RYE_VERSION: '0.44.0'
28-
RYE_INSTALL_OPTION: '--yes'
22+
- name: Install uv
23+
uses: astral-sh/setup-uv@v5
24+
with:
25+
version: '0.9.13'
2926

3027
- name: Publish to PyPI
3128
run: |

.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.34.0"
2+
".": "0.35.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 23
1+
configured_endpoints: 26
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-e94268bb224f0aa46f151c81dba49c8def81c73b48da8a6f31b4f8a60aa5055c.yml
33
openapi_spec_hash: 2e2f8148f72a724fbafd05c51b7a62c9
4-
config_hash: b387daed43fa717ef3ac5811ae06307c
4+
config_hash: 9e504d1d5b3c05b3d92cff348f2053df

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

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Changelog
22

3+
## 0.35.0 (2026-03-17)
4+
5+
Full Changelog: [v0.34.0...v0.35.0](https://github.com/hyperspell/python-sdk/compare/v0.34.0...v0.35.0)
6+
7+
### Features
8+
9+
* **api:** manual updates ([57f61a3](https://github.com/hyperspell/python-sdk/commit/57f61a30e64edabde28811e7f3120c584b712bc6))
10+
* **api:** manual updates ([5a96266](https://github.com/hyperspell/python-sdk/commit/5a9626654c7dd350086bf1ed0b2a57855780cd76))
11+
* **api:** Update edition to 2026-02-23 ([1b40f77](https://github.com/hyperspell/python-sdk/commit/1b40f77b3ed34e46a0e53c737224a8059ba6b052))
12+
13+
14+
### Bug Fixes
15+
16+
* **deps:** bump minimum typing-extensions version ([401d90e](https://github.com/hyperspell/python-sdk/commit/401d90e10737fbe2bcb7ff03a6ddf7a745027402))
17+
* pass PYPI_TOKEN secret to publish step ([#108](https://github.com/hyperspell/python-sdk/issues/108)) ([8efbde0](https://github.com/hyperspell/python-sdk/commit/8efbde0f510d0ceb34b20cb37faad32d71773634))
18+
* **pydantic:** do not pass `by_alias` unless set ([420c153](https://github.com/hyperspell/python-sdk/commit/420c153d3d0c00100ad7531ecf287dc818aa0045))
19+
20+
21+
### Chores
22+
23+
* **internal:** tweak CI branches ([692b283](https://github.com/hyperspell/python-sdk/commit/692b283cd22646a5fe6591d073a32a5984df6eb5))
24+
* remove custom code ([a0a90a0](https://github.com/hyperspell/python-sdk/commit/a0a90a0982eb2484619ea01bcc784a42f5d353a8))
25+
326
## 0.34.0 (2026-03-14)
427

528
Full Changelog: [v0.33.0...v0.34.0](https://github.com/hyperspell/python-sdk/compare/v0.33.0...v0.34.0)

CONTRIBUTING.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
## Setting up the environment
22

3-
### With Rye
3+
### With `uv`
44

5-
We use [Rye](https://rye.astral.sh/) to manage dependencies because it will automatically provision a Python environment with the expected Python version. To set it up, run:
5+
We use [uv](https://docs.astral.sh/uv/) to manage dependencies because it will automatically provision a Python environment with the expected Python version. To set it up, run:
66

77
```sh
88
$ ./scripts/bootstrap
99
```
1010

11-
Or [install Rye manually](https://rye.astral.sh/guide/installation/) and run:
11+
Or [install uv manually](https://docs.astral.sh/uv/getting-started/installation/) and run:
1212

1313
```sh
14-
$ rye sync --all-features
14+
$ uv sync --all-extras
1515
```
1616

17-
You can then run scripts using `rye run python script.py` or by activating the virtual environment:
17+
You can then run scripts using `uv run python script.py` or by manually activating the virtual environment:
1818

1919
```sh
20-
# Activate the virtual environment - https://docs.python.org/3/library/venv.html#how-venvs-work
20+
# manually activate - https://docs.python.org/3/library/venv.html#how-venvs-work
2121
$ source .venv/bin/activate
2222

23-
# now you can omit the `rye run` prefix
23+
# now you can omit the `uv run` prefix
2424
$ python script.py
2525
```
2626

27-
### Without Rye
27+
### Without `uv`
2828

29-
Alternatively if you don't want to install `Rye`, you can stick with the standard `pip` setup by ensuring you have the Python version specified in `.python-version`, create a virtual environment however you desire and then install dependencies using this command:
29+
Alternatively if you don't want to install `uv`, you can stick with the standard `pip` setup by ensuring you have the Python version specified in `.python-version`, create a virtual environment however you desire and then install dependencies using this command:
3030

3131
```sh
3232
$ pip install -r requirements-dev.lock
@@ -45,7 +45,7 @@ All files in the `examples/` directory are not modified by the generator and can
4545
```py
4646
# add an example to examples/<your-example>.py
4747

48-
#!/usr/bin/env -S rye run python
48+
#!/usr/bin/env -S uv run python
4949
5050
```
5151

@@ -72,7 +72,7 @@ Building this package will create two files in the `dist/` directory, a `.tar.gz
7272
To create a distributable version of the library, all you have to do is run this command:
7373

7474
```sh
75-
$ rye build
75+
$ uv build
7676
# or
7777
$ python -m build
7878
```

api.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Shared Types
22

33
```python
4-
from hyperspell.types import Metadata, Notification, QueryResult
4+
from hyperspell.types import Metadata, Notification, QueryResult, Resource
55
```
66

77
# Connections
@@ -68,7 +68,6 @@ Types:
6868
from hyperspell.types import (
6969
Memory,
7070
MemoryStatus,
71-
MemoryListResponse,
7271
MemoryDeleteResponse,
7372
MemoryAddBulkResponse,
7473
MemoryStatusResponse,
@@ -78,7 +77,7 @@ from hyperspell.types import (
7877
Methods:
7978

8079
- <code title="post /memories/update/{source}/{resource_id}">client.memories.<a href="./src/hyperspell/resources/memories.py">update</a>(resource_id, \*, source, \*\*<a href="src/hyperspell/types/memory_update_params.py">params</a>) -> <a href="./src/hyperspell/types/memory_status.py">MemoryStatus</a></code>
81-
- <code title="get /memories/list">client.memories.<a href="./src/hyperspell/resources/memories.py">list</a>(\*\*<a href="src/hyperspell/types/memory_list_params.py">params</a>) -> <a href="./src/hyperspell/types/memory_list_response.py">SyncCursorPage[MemoryListResponse]</a></code>
80+
- <code title="get /memories/list">client.memories.<a href="./src/hyperspell/resources/memories.py">list</a>(\*\*<a href="src/hyperspell/types/memory_list_params.py">params</a>) -> <a href="./src/hyperspell/types/shared/resource.py">SyncCursorPage[Resource]</a></code>
8281
- <code title="delete /memories/delete/{source}/{resource_id}">client.memories.<a href="./src/hyperspell/resources/memories.py">delete</a>(resource_id, \*, source) -> <a href="./src/hyperspell/types/memory_delete_response.py">MemoryDeleteResponse</a></code>
8382
- <code title="post /memories/add">client.memories.<a href="./src/hyperspell/resources/memories.py">add</a>(\*\*<a href="src/hyperspell/types/memory_add_params.py">params</a>) -> <a href="./src/hyperspell/types/memory_status.py">MemoryStatus</a></code>
8483
- <code title="post /memories/add/bulk">client.memories.<a href="./src/hyperspell/resources/memories.py">add_bulk</a>(\*\*<a href="src/hyperspell/types/memory_add_bulk_params.py">params</a>) -> <a href="./src/hyperspell/types/memory_add_bulk_response.py">MemoryAddBulkResponse</a></code>
@@ -101,6 +100,25 @@ Methods:
101100
- <code title="post /evaluate/highlight/{highlight_id}">client.evaluate.<a href="./src/hyperspell/resources/evaluate.py">score_highlight</a>(highlight_id, \*\*<a href="src/hyperspell/types/evaluate_score_highlight_params.py">params</a>) -> <a href="./src/hyperspell/types/evaluate_score_highlight_response.py">EvaluateScoreHighlightResponse</a></code>
102101
- <code title="post /evaluate/query/{query_id}">client.evaluate.<a href="./src/hyperspell/resources/evaluate.py">score_query</a>(query_id, \*\*<a href="src/hyperspell/types/evaluate_score_query_params.py">params</a>) -> <a href="./src/hyperspell/types/evaluate_score_query_response.py">EvaluateScoreQueryResponse</a></code>
103102

103+
# Actions
104+
105+
Types:
106+
107+
```python
108+
from hyperspell.types import ActionAddReactionResponse, ActionSendMessageResponse
109+
```
110+
111+
Methods:
112+
113+
- <code title="post /actions/add_reaction">client.actions.<a href="./src/hyperspell/resources/actions.py">add_reaction</a>(\*\*<a href="src/hyperspell/types/action_add_reaction_params.py">params</a>) -> <a href="./src/hyperspell/types/action_add_reaction_response.py">ActionAddReactionResponse</a></code>
114+
- <code title="post /actions/send_message">client.actions.<a href="./src/hyperspell/resources/actions.py">send_message</a>(\*\*<a href="src/hyperspell/types/action_send_message_params.py">params</a>) -> <a href="./src/hyperspell/types/action_send_message_response.py">ActionSendMessageResponse</a></code>
115+
116+
# Sessions
117+
118+
Methods:
119+
120+
- <code title="post /trace/add">client.sessions.<a href="./src/hyperspell/resources/sessions.py">add</a>(\*\*<a href="src/hyperspell/types/session_add_params.py">params</a>) -> <a href="./src/hyperspell/types/memory_status.py">MemoryStatus</a></code>
121+
104122
# Vaults
105123

106124
Types:

0 commit comments

Comments
 (0)