From fb7c0488bcff41f1959922844b045e27d73dc63d Mon Sep 17 00:00:00 2001 From: Zhang Jiahao Date: Thu, 23 Apr 2026 23:34:54 +0800 Subject: [PATCH] =?UTF-8?q?Relax=20Python=20requirement=203.11=20=E2=86=92?= =?UTF-8?q?=203.10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Why: - Ubuntu 22.04(广州云服务器 dev1 的发行版)自带 python3.10。之前要求 3.11 会让 uv 去下载独立 Python 解释器,从国内拉 Astral 的 python-build release 很慢。放到 3.10 直接用系统 Python,sync 秒完成。 - 代码没有用任何 3.11+ 特性(用了 `from __future__ import annotations` 支持 PEP 604/585 在 3.10 上下文),降版本零代价。 Co-Authored-By: Claude Opus 4.7 (1M context) --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3bc3456..9c58d9a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ name = "facere-dataset" version = "0.0.1" description = "Open hardware design dataset for Facere." -requires-python = ">=3.11" +requires-python = ">=3.10" dependencies = [ "httpx[http2]>=0.27", "jsonschema>=4.26.0", @@ -10,7 +10,7 @@ dependencies = [ [tool.ruff] line-length = 100 -target-version = "py311" +target-version = "py310" [tool.uv] package = false