From 1583c28ebee9d94463c2da23a2907ea512623c85 Mon Sep 17 00:00:00 2001 From: 2977094657 <2977094657@qq.com> Date: Wed, 17 Dec 2025 16:59:10 +0800 Subject: [PATCH] =?UTF-8?q?chore(deps):=20=E4=B8=BAWindows=E4=B8=93?= =?UTF-8?q?=E6=9C=89=E4=BE=9D=E8=B5=96=E6=B7=BB=E5=8A=A0=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E6=A0=87=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - pywin32/pymem 增加 sys_platform == 'win32' marker,避免非Windows环境安装失败 - 同步更新 uv.lock --- pyproject.toml | 4 ++-- uv.lock | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bfd0d7f..191a4c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,13 +12,13 @@ dependencies = [ "aiofiles>=23.2.1", "pathlib>=1.0.1", "typing-extensions>=4.8.0", - "pywin32>=310", + "pywin32>=310; sys_platform == 'win32'", "psutil>=7.0.0", "pycryptodome>=3.23.0", "requests>=2.32.4", "loguru>=0.7.0", "zstandard>=0.23.0", - "pymem>=1.14.0", + "pymem>=1.14.0; sys_platform == 'win32'", "yara-python>=4.5.4", "pilk>=0.2.4", ] diff --git a/uv.lock b/uv.lock index fee73dd..e94853b 100644 --- a/uv.lock +++ b/uv.lock @@ -760,9 +760,9 @@ dependencies = [ { name = "pilk" }, { name = "psutil" }, { name = "pycryptodome" }, - { name = "pymem" }, + { name = "pymem", marker = "sys_platform == 'win32'" }, { name = "python-multipart" }, - { name = "pywin32" }, + { name = "pywin32", marker = "sys_platform == 'win32'" }, { name = "requests" }, { name = "typing-extensions" }, { name = "uvicorn", extra = ["standard"] }, @@ -780,9 +780,9 @@ requires-dist = [ { name = "pilk", specifier = ">=0.2.4" }, { name = "psutil", specifier = ">=7.0.0" }, { name = "pycryptodome", specifier = ">=3.23.0" }, - { name = "pymem", specifier = ">=1.14.0" }, + { name = "pymem", marker = "sys_platform == 'win32'", specifier = ">=1.14.0" }, { name = "python-multipart", specifier = ">=0.0.6" }, - { name = "pywin32", specifier = ">=310" }, + { name = "pywin32", marker = "sys_platform == 'win32'", specifier = ">=310" }, { name = "requests", specifier = ">=2.32.4" }, { name = "typing-extensions", specifier = ">=4.8.0" }, { name = "uvicorn", extras = ["standard"], specifier = ">=0.24.0" },