Skip to content

Commit 62c68a3

Browse files
authored
Remove legacy extra (#311)
1 parent 95562b2 commit 62c68a3

91 files changed

Lines changed: 7 additions & 4923 deletions

File tree

Some content is hidden

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

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
1717
- name: Install dependencies
1818
run: poetry install
19-
- name: Type check everything except audio utilities and legacy
20-
run: poetry run mypy . --exclude 'src/hume/empathic_voice/chat/audio' --exclude 'src/hume/legacy/microphone'
19+
- name: Type check everything except audio utilities
20+
run: poetry run mypy . --exclude 'src/hume/empathic_voice/chat/audio'
2121
compile-with-audio:
2222
runs-on: ubuntu-24.04
2323
steps:
@@ -30,7 +30,7 @@ jobs:
3030
- name: Install system dependencies for audio
3131
run: |
3232
sudo apt-get --yes update
33-
sudo apt-get --yes install libasound2-dev libportaudio2 ffmpeg
33+
sudo apt-get --yes install libportaudio2
3434
- name: Bootstrap poetry
3535
run: |
3636
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
@@ -50,7 +50,7 @@ jobs:
5050
- name: Install system dependencies for audio
5151
run: |
5252
sudo apt-get --yes update
53-
sudo apt-get --yes install libasound2-dev libportaudio2 ffmpeg
53+
sudo apt-get --yes install libportaudio2
5454
- name: Bootstrap poetry
5555
run: |
5656
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
@@ -59,7 +59,7 @@ jobs:
5959
- name: Install Fern
6060
run: npm install -g fern-api
6161
- name: Test
62-
run: fern test --command "poetry run pytest -rP . --ignore ./tests/custom/_legacy"
62+
run: fern test --command "poetry run pytest -rP ."
6363

6464
publish:
6565
needs: [compile-without-audio, compile-with-audio, test]

.github/workflows/legacy_ci.yml

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

README.md

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,8 @@
1616

1717
## Migration Guide for Version 0.7.0 and Above
1818

19-
We've released version `0.7.0` of the SDK with significant architectural changes. This update introduces `AsyncHumeClient` and `HumeClient`, improves type safety and async support, and provides more granular configuration options. To help you transition, we've prepared a comprehensive migration guide:
20-
21-
**[View the Migration Guide](https://github.com/HumeAI/hume-python-sdk/wiki/Python-SDK-Migration-Guide)**
22-
23-
Please review this guide before updating, as it covers breaking changes and provides examples for updating your code. Legacy functionality is preserved for backward compatibility. If you have any questions, please open an issue or contact our support team.
19+
There were major breaking changes in version `0.7.0` of the SDK. If upgrading from a previous version, please
20+
**[View the Migration Guide](https://github.com/HumeAI/hume-python-sdk/wiki/Python-SDK-Migration-Guide)**. That release deprecated several interfaces and moved them to the `hume[legacy]` package extra. The `legacy` extra was removed in `0.9.0`. The last version to include `legacy` was `0.8.6`.
2421

2522
## Documentation
2623

@@ -94,21 +91,6 @@ async with aiofiles.open('artifacts.zip', mode='wb') as file:
9491
await file.write(chunk)
9592
```
9693

97-
## Legacy SDK
98-
99-
If you want to continue using the legacy SDKs, simply import them from
100-
the `hume.legacy` module.
101-
102-
```python
103-
from hume.legacy import HumeVoiceClient, VoiceConfig
104-
105-
client = HumeVoiceClient("<your-api-key>")
106-
config = client.empathic_voice.configs.get_config_version(
107-
id="id",
108-
version=1,
109-
)
110-
```
111-
11294
## Namespaces
11395

11496
This SDK contains the APIs for empathic voice, tts, and expression measurement. Even

mypy.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
[mypy]
22
plugins = pydantic.mypy
3-
exclude = src/hume/legacy|tests/custom/_legacy|examples

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,3 @@ build-backend = "poetry.core.masonry.api"
134134
[tool.poetry.extras]
135135
examples=["jupyter"]
136136
microphone=["sounddevice"]
137-
legacy=["pydub", "simpleaudio"]

src/hume/empathic_voice/chat/audio/audio_utilities.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from __future__ import annotations
88
import asyncio, io, wave, queue, shlex
99
from typing import TYPE_CHECKING, AsyncIterable, Optional
10-
from hume.legacy._voice.microphone.audio_utilities import play_audio as play_audio_legacy
1110

1211
_missing: Optional[Exception] = None
1312
try:

src/hume/legacy/__init__.py

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

src/hume/legacy/_common/__init__.py

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

0 commit comments

Comments
 (0)