mirror of
https://ghfast.top/https://github.com/aeroxw/easy_tdx_max.git
synced 2026-09-12 14:34:18 +08:00
release: v1.29.2 — 可编辑安装失效友好报错(#58):入口守卫 _editable_guard 经 force-include 存活于失效态
This commit is contained in:
+7
-3
@@ -4,14 +4,16 @@ build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "easy-tdx"
|
||||
version = "1.29.1"
|
||||
version = "1.29.2"
|
||||
description = "通达信 TCP 协议行情数据客户端,支持在线行情、离线数据读取与写入同步"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
dependencies = ["pandas>=2.0,<3", "tzdata>=2024.1", "click>=8.0,<9"]
|
||||
|
||||
[project.scripts]
|
||||
easy-tdx = "easy_tdx.cli:cli" # cli/__init__.py exposes the click group
|
||||
# 经由守卫转发:可编辑安装失效(仓库被移动/.pth 丢失)时打印修复指引(#58),
|
||||
# 机制见 _editable_guard.py 模块 docstring。
|
||||
easy-tdx = "easy_tdx._editable_guard:main"
|
||||
|
||||
[project.optional-dependencies]
|
||||
dev = ["pytest>=8.0", "pytest-asyncio>=0.23", "pytest-cov", "mypy>=1.9", "ruff>=0.4", "scipy>=1.10,<1.16", "httpx>=0.27", "duckdb>=1.0"]
|
||||
@@ -34,7 +36,9 @@ artifacts = [
|
||||
packages = ["src/easy_tdx"]
|
||||
# 前端 dist 映射到包内 easy_tdx/web/dist/。CI(ci.yml)、publish(publish.yml)
|
||||
# 和 release(release.yml)都会在 pip install / build 前先 npm run build。
|
||||
force-include = { "web-ui/dist" = "easy_tdx/web/dist" }
|
||||
# _editable_guard.py 一并映射进 site-packages 的碎片目录:可编辑安装失效时
|
||||
# src/ 代码全部不可达,唯有这份副本可导入,入口守卫才能打印修复指引(#58)。
|
||||
force-include = { "web-ui/dist" = "easy_tdx/web/dist", "src/easy_tdx/_editable_guard.py" = "easy_tdx/_editable_guard.py" }
|
||||
|
||||
[tool.mypy]
|
||||
strict = true
|
||||
|
||||
Reference in New Issue
Block a user