Replace TachyPy audio backends with TachyAudio#11
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates TachyPy’s Audio utility away from TachyPy-owned sounddevice/dummy backends to a thin wrapper around tachyaudio.OutputStream, aligning packaging, docs, and tests with the new dependency and raising the minimum Python version to match TachyAudio.
Changes:
- Replace internal audio backend implementations with a
tachyaudio.OutputStream-backed scheduler. - Update tests to mock
tachyaudiostreams instead ofsounddevice/dummy backends. - Update packaging/docs/CI for
tachyaudio>=0.2.0b1, Python>=3.10, and removeTACHYPY_AUDIO_BACKEND=dummyCI configuration.
Reviewed changes
Copilot reviewed 13 out of 14 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
src/tachypy/audio.py |
Replaces backend abstraction with direct tachyaudio.OutputStream usage and adds stream configuration options. |
tests/test_audio.py |
Updates unit tests to use the new default backend behavior and error expectations. |
tests/test_audio_extended.py |
Reworks extended tests to validate tachyaudio stream interactions via fakes. |
tests/test_audio_backends.py |
Adjusts tests to reflect tachyaudio being required and legacy backends rejected. |
setup.cfg |
Adds tachyaudio>=0.2.0b1, bumps version, raises Python requirement, updates extras. |
setup.py |
Bumps version and raises python_requires. |
requirements.txt |
Adds tachyaudio>=0.2.0b1. |
README.md |
Updates installation/audio documentation to reflect tachyaudio-backed audio. |
docs/audio.rst |
Rewrites audio docs around TachyAudio-backed scheduling and configuration. |
docs/getting_started.rst |
Updates installation guidance and optional extras list. |
docs/testing.rst |
Updates CI testing guidance to mock tachyaudio.OutputStream. |
docs/examples.rst |
Removes mention of TACHYPY_AUDIO_BACKEND=dummy. |
docs/conf.py |
Switches autodoc mock import from sounddevice to tachyaudio. |
.github/workflows/ci.yml |
Removes dummy-backend env var from CI matrix jobs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Contributor
Author
|
closes #1 |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
mathiassalvas
approved these changes
Jun 15, 2026
Contributor
Author
|
Published TachyPy 0.1.17 to PyPI: https://pypi.org/project/tachypy/0.1.17/ Release checks run locally before upload:
PyPI verification now reports latest version as |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tachyaudio.OutputStreamwrappertachyaudio>=0.2.0b1as the base audio dependency and removesounddeviceextras/docs>=3.10to match TachyAudio0.1.17because0.1.16is already publishedValidation
./.venv/bin/pytest --cov=tachypy --cov-report=term-missing --cov-fail-under=80-> 82 passed, 92.04% coverage./.venv/bin/ruff check src tests-> passed./.venv/bin/python -m sphinx -b html docs /tmp/tachypy-docs-build-> passed./.venv/bin/python -m pip check-> no broken requirementstachyaudio==0.2.0b1from PyPI and importedtachypy.Audiosuccessfully