[deps] Bump numpy/librosa for numpy 2.x compatibility; make torch family optional, fixes #48#49
[deps] Bump numpy/librosa for numpy 2.x compatibility; make torch family optional, fixes #48#49warptengood wants to merge 2 commits intomicrosoft:mainfrom
Conversation
|
@microsoft-github-policy-service agree |
|
This would be awesome to have merged. |
unfortunately I don't have the permission to merge pull requests here |
Are you the trusted publisher in PyPI for |
The Timeline of what happened:
Diff: (as you can see, the only diff between 1.3.3 and 1.3.4 on PyPI is PR#41, and the only diff between 1.3.4 and the current main branch is the version number).
|

Description:
Summary
This PR updates pyproject.toml to unblock users who need numpy >= 2.x and librosa >= 0.11.0, which are increasingly required by modern audio/ML stacks. No changes were made to any source code.
Changes
Why make torch optional?
torch and its sibling libraries (torchaudio, torchlibrosa) are highly environment-sensitive. The correct version
depends on the user's CUDA version, driver, and other installed torch-family packages - and they must all match
exactly. Installing torch from PyPI as a hard dependency frequently results in a CPU-only build being pulled in,
silently overriding a user's carefully configured GPU environment.
The established convention in the ML ecosystem (e.g. accelerate, sentence-transformers) is to treat torch as a
pre-condition that users manage themselves via the official PyTorch install matrix. Making it optional in
pyproject.toml respects that convention without removing any functionality.
Testing
All example scripts were executed successfully without any modifications to source code:
Test environment:
Since no source code was modified, the behavior is identical to the current release - this is purely a dependency
constraint update.