From 5b7b4efdc924098ddd7314c73ba938c082655220 Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Thu, 24 Jul 2025 08:04:22 -0400 Subject: [PATCH] Add broader version support for stable core dependencies, up to the next major version --- CHANGELOG.md | 14 ++++++++++++++ pyproject.toml | 16 ++++++++-------- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c27d7a596..b05ee5708 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Dependency compatibility improvements: Relaxed version constraints for core + dependencies to support broader version ranges while maintaining stability: + + - `aiohttp`, `Markdown`, `nltk`, `numpy`, `Pillow`, `pydantic`, `openai`, + `numba`: Now support up to the next major version (e.g. `numpy>=1.26.4,<3`) + - `pyht`: Relaxed to `>=0.1.6` to resolve `grpcio` conflicts with + `nvidia-riva-client` + - `fastapi`: Updated to support versions `>=0.115.6,<0.117.0` + - `torch`/`torchaudio`: Changed from exact pinning (`==2.5.0`) to compatible + range (`~=2.5.0`) + - `aws_sdk_bedrock_runtime`: Added Python 3.12+ constraint via environment + marker + - `numba`: Reduced minimum version to `0.60.0` for better compatibility + - Changed `NeuphonicHttpTTSService` to use a POST based request instead of the `pyneuphonic` package. This removes a package requirement, allowing Neuphonic to work with more services. diff --git a/pyproject.toml b/pyproject.toml index 02e8ab698..0c5be3a27 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,22 +20,22 @@ classifiers = [ "Topic :: Scientific/Engineering :: Artificial Intelligence" ] dependencies = [ - "aiohttp~=3.11.12", + "aiohttp>=3.11.12,<4", "audioop-lts~=0.2.1; python_version>='3.13'", "docstring_parser~=0.16", "loguru~=0.7.3", - "Markdown~=3.7", - "nltk>=3.9.1", - "numpy>=1.26.4", - "Pillow~=11.1.0", + "Markdown>=3.7,<4", + "nltk>=3.9.1,<4", + "numpy>=1.26.4,<3", + "Pillow>=11.1.0,<12", "protobuf~=5.29.3", - "pydantic~=2.10.6", + "pydantic>=2.10.6,<3", "pyloudnorm~=0.1.1", "resampy~=0.4.3", "soxr~=0.5.0", - "openai~=1.74.0", + "openai>=1.74.0,<2", # Explicit dependency pins for Python 3.11+ compatibility - "numba>=0.60.0", + "numba>=0.60.0,<1", ] [project.urls]