Release funasr-onnx 0.4.2 without Torch runtime dependency#3242
Release funasr-onnx 0.4.2 without Torch runtime dependency#3242LauraGPT wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Code Review
This pull request bumps the version of funasr_onnx to 0.4.2 and introduces a new contract test suite to verify the release version, ensure that torch is not listed in the runtime dependencies, and confirm that there are no torch imports in the package source. Feedback suggests improving the dependency parsing logic in the tests to robustly handle other PEP 508 operators (like != or ~=) using regular expressions, preventing potential false negatives in the torch-free dependency check.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Summary
funasr-onnxfrom0.4.1to the immutable0.4.2release candidate;jieba, rejects Torch as a runtime dependency, and rejects Torch imports in the ONNX package source;twine check, installs the wheel in a clean environment, runspip check, imports all four public entry points, and uploads the release candidate artifact.Why
The source fixes for #2604 are already on
main: SenseVoice post-processing is NumPy-only and the missingjiebadependency is declared. PyPI still servesfunasr-onnx==0.4.1, however, so users continue to receive the old Torch-importing wheel. Re-uploading the existing version is not safe; this PR creates a new version and makes the release contract reproducible.This PR does not close #2604 by itself. Keep the issue open until
0.4.2is uploaded to PyPI and the downloaded PyPI wheel passes the same smoke test.Verification
python -m build: wheel and sdist built successfully;twine check: both distributions passed;funasr-onnx==0.4.2, Torch absent,jiebapresent, andParaformer,Fsmn_vad,CT_Transformer,SenseVoiceSmallall import successfully;<|zh|><|NEUTRAL|><|Speech|><|withitn|>欢迎大家来体验达摩院推出的语音识别模型。;git diff --checkpassed.Local release-candidate checksums:
Post-merge release gate
A maintainer still needs to upload the final artifacts with the project PyPI credential. After upload, download
funasr-onnx==0.4.2from PyPI into fresh Python 3.11 and 3.12 environments and repeat the no-Torch dependency/import smoke before closing #2604.