Skip to content

Commit a3e3877

Browse files
authored
Merge pull request #106 from hyperspell/release-please--branches--main--changes--next
release: 0.34.0
2 parents 2606901 + e78b7a6 commit a3e3877

31 files changed

Lines changed: 244 additions & 74 deletions

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,18 @@ jobs:
6161
run: rye build
6262

6363
- name: Get GitHub OIDC Token
64-
if: github.repository == 'stainless-sdks/hyperspell-python'
64+
if: |-
65+
github.repository == 'stainless-sdks/hyperspell-python' &&
66+
!startsWith(github.ref, 'refs/heads/stl/')
6567
id: github-oidc
6668
uses: actions/github-script@v8
6769
with:
6870
script: core.setOutput('github_token', await core.getIDToken());
6971

7072
- name: Upload tarball
71-
if: github.repository == 'stainless-sdks/hyperspell-python'
73+
if: |-
74+
github.repository == 'stainless-sdks/hyperspell-python' &&
75+
!startsWith(github.ref, 'refs/heads/stl/')
7276
env:
7377
URL: https://pkg.stainless.com/s
7478
AUTH: ${{ steps.github-oidc.outputs.github_token }}

.github/workflows/publish-pypi.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ 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
@@ -27,5 +30,3 @@ jobs:
2730
- name: Publish to PyPI
2831
run: |
2932
bash ./bin/publish-pypi
30-
env:
31-
PYPI_TOKEN: ${{ secrets.HYPERSPELL_PYPI_TOKEN || secrets.PYPI_TOKEN }}

.github/workflows/release-doctor.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,3 @@ jobs:
1717
- name: Check release environment
1818
run: |
1919
bash ./bin/check-release-environment
20-
env:
21-
PYPI_TOKEN: ${{ secrets.HYPERSPELL_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.33.0"
2+
".": "0.34.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: 23
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-36cb6e2474f3fe09749b7a2f24409d48c8db332d624fa7eeb1ee6b6135774133.yml
3-
openapi_spec_hash: 339a1b55d6b1a55213d16bf336045d0d
4-
config_hash: 983708fc30c86269c2149a960d0bfec1
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-e94268bb224f0aa46f151c81dba49c8def81c73b48da8a6f31b4f8a60aa5055c.yml
3+
openapi_spec_hash: 2e2f8148f72a724fbafd05c51b7a62c9
4+
config_hash: b387daed43fa717ef3ac5811ae06307c

CHANGELOG.md

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

3+
## 0.34.0 (2026-03-14)
4+
5+
Full Changelog: [v0.33.0...v0.34.0](https://github.com/hyperspell/python-sdk/compare/v0.33.0...v0.34.0)
6+
7+
### Features
8+
9+
* **api:** api update ([f690c84](https://github.com/hyperspell/python-sdk/commit/f690c841ce28801b1511142026b62d7fcc2706ba))
10+
* **api:** api update ([784a11e](https://github.com/hyperspell/python-sdk/commit/784a11e826b748f682186bbb39e8f7580cb4d683))
11+
* **api:** api update ([0f66c9d](https://github.com/hyperspell/python-sdk/commit/0f66c9dfe8e50d22f1a66f6de9b3ee0f1a89ab38))
12+
* **api:** api update ([b76b873](https://github.com/hyperspell/python-sdk/commit/b76b873e4c01f4c9421cc6e452f216c19374b687))
13+
* **api:** api update ([b75e2b3](https://github.com/hyperspell/python-sdk/commit/b75e2b3bbb5a871a39d147e4cb0949d7279f3271))
14+
* **api:** api update ([d330dea](https://github.com/hyperspell/python-sdk/commit/d330deaec6f907f4abee6dd8fc786da018ea72a7))
15+
* **api:** api update ([e01d911](https://github.com/hyperspell/python-sdk/commit/e01d911cb400b1ee3827332299f054d278f867d4))
16+
* **api:** manual updates ([48f1e5b](https://github.com/hyperspell/python-sdk/commit/48f1e5b7a76e607c52a3a29c289352e07ca466c6))
17+
18+
19+
### Chores
20+
21+
* **api:** python trusted publisher ([3d7a283](https://github.com/hyperspell/python-sdk/commit/3d7a283ebe54b78a23964a17a3167c50da0aeba2))
22+
* **ci:** skip uploading artifacts on stainless-internal branches ([2361dcb](https://github.com/hyperspell/python-sdk/commit/2361dcb5e76f8aeca00e12a4fcf6b912fca1084a))
23+
* **internal:** add request options to SSE classes ([6b5c9ad](https://github.com/hyperspell/python-sdk/commit/6b5c9ad8271ecb8887faf8cb678805e6d481459c))
24+
* **internal:** make `test_proxy_environment_variables` more resilient ([3cc3332](https://github.com/hyperspell/python-sdk/commit/3cc33321d35a6162c6c8540b571d4d3c2b63a022))
25+
* **internal:** make `test_proxy_environment_variables` more resilient to env ([2c99a7f](https://github.com/hyperspell/python-sdk/commit/2c99a7f619b2581f2bf7bc2bea4519fc1f6c5733))
26+
* **test:** do not count install time for mock server timeout ([ee29761](https://github.com/hyperspell/python-sdk/commit/ee29761e756adb19eb1f07232abde4e2a1e20d4f))
27+
* update placeholder string ([5608e0b](https://github.com/hyperspell/python-sdk/commit/5608e0bb6e840cd1b52b8ca79ec6042bc704de82))
28+
329
## 0.33.0 (2026-02-20)
430

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

README.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@ client = Hyperspell()
134134

135135
all_memories = []
136136
# Automatically fetches more pages as needed.
137-
for memory in client.memories.list(
138-
collection="REPLACE_ME",
139-
):
137+
for memory in client.memories.list():
140138
# Do something with memory here
141139
all_memories.append(memory)
142140
print(all_memories)
@@ -154,9 +152,7 @@ client = AsyncHyperspell()
154152
async def main() -> None:
155153
all_memories = []
156154
# Iterate through items across all pages, issuing requests as needed.
157-
async for memory in client.memories.list(
158-
collection="REPLACE_ME",
159-
):
155+
async for memory in client.memories.list():
160156
all_memories.append(memory)
161157
print(all_memories)
162158

@@ -167,9 +163,7 @@ asyncio.run(main())
167163
Alternatively, you can use the `.has_next_page()`, `.next_page_info()`, or `.get_next_page()` methods for more granular control working with pages:
168164

169165
```python
170-
first_page = await client.memories.list(
171-
collection="REPLACE_ME",
172-
)
166+
first_page = await client.memories.list()
173167
if first_page.has_next_page():
174168
print(f"will fetch next page using these details: {first_page.next_page_info()}")
175169
next_page = await first_page.get_next_page()
@@ -181,9 +175,7 @@ if first_page.has_next_page():
181175
Or just work directly with the returned data:
182176

183177
```python
184-
first_page = await client.memories.list(
185-
collection="REPLACE_ME",
186-
)
178+
first_page = await client.memories.list()
187179

188180
print(f"next page cursor: {first_page.next_cursor}") # => "next page cursor: ..."
189181
for memory in first_page.items:

bin/check-release-environment

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
errors=()
44

5-
if [ -z "${PYPI_TOKEN}" ]; then
6-
errors+=("The PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
7-
fi
8-
95
lenErrors=${#errors[@]}
106

117
if [[ lenErrors -gt 0 ]]; then

bin/publish-pypi

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@
33
set -eux
44
mkdir -p dist
55
rye build --clean
6-
rye publish --yes --token=$PYPI_TOKEN
6+
if [ -n "${PYPI_TOKEN:-}" ]; then
7+
rye publish --yes --token=$PYPI_TOKEN
8+
else
9+
rye publish --yes
10+
fi

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "hyperspell"
3-
version = "0.33.0"
3+
version = "0.34.0"
44
description = "The official Python library for the hyperspell API"
55
dynamic = ["readme"]
66
license = "MIT"

0 commit comments

Comments
 (0)