From b9fcadcf96896e2bf68705d8c15492d2649bc527 Mon Sep 17 00:00:00 2001 From: Thanh Nguyen <74597207+ThanhNguyxn@users.noreply.github.com> Date: Sat, 31 Jan 2026 16:37:39 +0700 Subject: [PATCH] fix: relax dependency constraints to support Python 3.13 Fixes #22 Changes: - Remove upper bound on torch (>= 2.2.0) to allow torch 2.5+ which has wheels for Python 3.13 - Relax other dependency constraints that were unnecessarily strict: - numpy: >= 1.26, < 3 (was < 2.2) - safetensors: >= 0.4.0 (removed < 0.5) - huggingface-hub: >= 0.24 (removed < 0.25) - einops: >= 0.7 (was == 0.7) - sentencepiece: >= 0.2 (was == 0.2) - sounddevice: >= 0.5 (was == 0.5) - sphn: >= 0.1.4 (removed < 0.2) - aiohttp: >= 3.10.5 (removed < 3.11) These changes ensure compatibility with Python 3.13 while maintaining backward compatibility with Python 3.10-3.12. The previous torch < 2.5 constraint was the root cause of the issue, as PyTorch only added CPython 3.13 wheel support starting from v2.5.0. --- moshi/pyproject.toml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/moshi/pyproject.toml b/moshi/pyproject.toml index ead71e9..b0b1832 100644 --- a/moshi/pyproject.toml +++ b/moshi/pyproject.toml @@ -3,15 +3,15 @@ name = "moshi-personaplex" requires-python = ">= 3.10" description = "Personaplex finetune of moshi to enable role and voice control." dependencies = [ - "numpy >= 1.26, < 2.2", - "safetensors >= 0.4.0, < 0.5", - "huggingface-hub >= 0.24, < 0.25", - "einops == 0.7", - "sentencepiece == 0.2", - "sounddevice == 0.5", - "sphn >= 0.1.4, < 0.2", - "torch >= 2.2.0, < 2.5", - "aiohttp>=3.10.5, <3.11", + "numpy >= 1.26, < 3", + "safetensors >= 0.4.0", + "huggingface-hub >= 0.24", + "einops >= 0.7", + "sentencepiece >= 0.2", + "sounddevice >= 0.5", + "sphn >= 0.1.4", + "torch >= 2.2.0", + "aiohttp >= 3.10.5", ] authors = [{name="Rajarshi Roy", email="rajarshir@nvidia.com"}] maintainers = [{name="Rajarshi Roy", email="rajarshir@nvidia.com"}] @@ -28,4 +28,4 @@ version = {attr = "moshi.__version__"} [build-system] requires = ["setuptools"] -build-backend = "setuptools.build_meta" \ No newline at end of file +build-backend = "setuptools.build_meta"