Bug 267923 - audio/py-pyaudio: Update to version 0.2.12
Summary: audio/py-pyaudio: Update to version 0.2.12
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Guangyuan Yang
URL: https://people.csail.mit.edu/hubert/p...
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-22 14:15 UTC by Jaap Akkerhuis
Modified: 2022-11-22 23:37 UTC (History)
1 user (show)

See Also:


Attachments
patch to upgrade (2.86 KB, patch)
2022-11-22 14:15 UTC, Jaap Akkerhuis
jaap: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaap Akkerhuis 2022-11-22 14:15:06 UTC
Created attachment 238246 [details]
patch to upgrade

PyAudio 0.2.12

  - Modernize build process for Microsoft Windows, using the native toolchain.

    Setuptool setup.py and INSTALL instructions are more streamlined.
    Building from Cygwin/MinGW is no longer supported nor tested.

    Thanks to Sean Zimmermann for the patches and general help!

  - Change default frames per buffer size to paFramesPerBufferUnspecified.

    Previously, pyaudio.py set a default frames per buffer size of 1024,
    which can lead to dropped frames on some systems.  Now, by default,
    PortAudio selects the buffer size based on host and latency
    requirements.

    Thanks to Jason Hihn for the suggestion!

  - Minor fixes and refactoring for compatibility with Python 3.7+.

    Updates include:
    * Remove call to deprecated PyEval_InitThreads() for Python 3.7+
    * Use Py_ssize_t types in appropriate places (for Python 3.10+).
    * Remove the min macro to ease compilation for Windows.

  - Use the locale's preferred encoding to decode device names.

    Thanks to Eiichi Takamori for the patch!

  - Unit tests: add skipIf decorators to skip tests that require hardware.

    Set the PYAUDIO_SKIP_HW_TESTS environment variable to disable tests that
    require sound hardware, useful for (automated) test environments without
    access to audio devices.

    Thanks to Matěj Cepl for the suggestion and patch!

  - Documentation, examples, and unit tests: various fixes.

    * Add more unit tests and repair a few that test the GIL on macOS.
    * Remove examples/error.py, which is redundant with tests/error_tests.py.
    * Fix type documentation of return value types in docstrings.

    Thanks to Vasily Zakharov for pointing out the return-value type errors!

  - Modernize packaging: add LICENSE.txt, pyproject.toml, and classifiers.
Comment 1 commit-hook freebsd_committer freebsd_triage 2022-11-22 23:37:29 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5fa414e007da2a629cd622c09827d71512cfdca1

commit 5fa414e007da2a629cd622c09827d71512cfdca1
Author:     Jaap Akkerhuis <jaap@NLnetLabs.nl>
AuthorDate: 2022-11-22 23:36:48 +0000
Commit:     Guangyuan Yang <ygy@FreeBSD.org>
CommitDate: 2022-11-22 23:36:48 +0000

    audio/py-pyaudio: Update to 0.2.12

    Changelog:      https://people.csail.mit.edu/hubert/pyaudio/

    PR:             267923

 audio/py-pyaudio/Makefile             | 13 +++++++------
 audio/py-pyaudio/distinfo             |  6 +++---
 audio/py-pyaudio/files/patch-setup.py | 24 ++++++++++++------------
 3 files changed, 22 insertions(+), 21 deletions(-)