From 20d0cf362e8636ea7d9db0ce2961a5ec5822d9ac Mon Sep 17 00:00:00 2001 From: sibianl Date: Mon, 20 Oct 2025 21:13:17 +0800 Subject: [PATCH] fix(build): update python version limit --- README.md | 2 +- pyproject.toml | 2 +- src/parallax/cli.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c2b7f6d2..f8af2fe1 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ A fully decentralized inference engine developed by [Gradient](https://gradient. ## Installation ### Prerequisites -- Python>=3.11.0 +- Python>=3.11.0,<3.14.0 - Ubuntu-24.04 for Blackwell GPUs Below are installation methods for different operating systems. diff --git a/pyproject.toml b/pyproject.toml index a53887e3..6a99e408 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ name = "parallax" version = "0.0.1" description = "Decentralised pipeline-parallel LLM serving with Sglang + MLX-LM + Lattica" readme = "README.md" -requires-python = ">=3.11" +requires-python = ">=3.11,<3.14" packages = [ { include = "parallax", from = "src" }, { include = "scheduling", from = "src" }, diff --git a/src/parallax/cli.py b/src/parallax/cli.py index 64ce2c67..b039855a 100644 --- a/src/parallax/cli.py +++ b/src/parallax/cli.py @@ -22,9 +22,9 @@ def check_python_version(): """Check if Python version is 3.11 or higher.""" - if sys.version_info < (3, 11): + if sys.version_info < (3, 11) or sys.version_info >= (3, 14): print( - f"Error: Python 3.11 or higher is required. Current version is {sys.version_info.major}.{sys.version_info.minor}." + f"Error: Python 3.11 or higher and less than 3.14 is required. Current version is {sys.version_info.major}.{sys.version_info.minor}." ) sys.exit(1)