Skip to content

Commit 42dc45f

Browse files
committed
release(python): 准备 v1.0.0 正式发布
1 parent 8b8d27a commit 42dc45f

3 files changed

Lines changed: 16 additions & 7 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ jobs:
5858
- name: Publish GitHub Release
5959
env:
6060
GH_TOKEN: ${{ github.token }}
61-
# v1.0.0 requires a host that advertises toolchainProviders 0 and buildSystems 1.
62-
PRERELEASE_TAGS: v0.1.0 v0.1.1 v1.0.0
61+
PRERELEASE_TAGS: v0.1.0 v0.1.1
6362
run: |
6463
release_flags=()
6564
installation='Lithe Store 会在收录后提供此版本。打开 设置 → 插件 → 插件市场,搜索 Python Support。'

‎README.md‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@ Python language support plugin for Lithe (`schemaVersion: 0`, `pluginAPIVersion:
44

55
遵循 Lithe 插件契约 v1(`schemaVersion: 0`),为 Lithe 桌面端(macOS / Windows / Linux)提供开箱即用的 Python 语言支持、宿主工具链驱动的 `Pyrefly` 解释器注入、`.venv` / `.conda` / `conda` / `uv` / `pyenv` 多来源环境发现、动态 `pytest` 测试树收集与执行、`uv` / `conda` / `Ruff` 构建任务、源码级断点调试及新建项目向导。跨平台实现与验证记录详见 [docs/feature-matrix.md](docs/feature-matrix.md)。
66

7+
## 兼容性(Compatibility)
8+
9+
Python Support v1.0.0 要求 Lithe 0.8.9 或更新版本。Lithe 0.8.9 支持安装插件并处理 `.py`、`.pyi` 和 `.pyw` 文件。Lithe 0.8.10 起还能按 shebang 识别无后缀 Python 脚本。
10+
11+
Python Support v1.0.0 requires Lithe 0.8.9 or later. Lithe 0.8.9 can install the plugin and work with `.py`, `.pyi`, and `.pyw` files. Lithe 0.8.10 and later also recognize extensionless Python scripts by their shebang.
12+
713
---
814

915
## 核心能力(Capabilities)
1016

1117
1. **语言与编辑器基础(`languages: python`)**
1218
- 识别 `.py`、`.pyi`、`.pyw`,配置 `#` 行注释与括号/引号自动配对,声明 `pyproject.toml` / `setup.py` / `setup.cfg` / `requirements.txt` / `Pipfile` / `pyrefly.toml` 项目标记及 `.venv` / `venv` / `.conda` 项目依赖目录。
13-
- Lithe 0.8.9 可以安装此插件。支持 TextMate 首行匹配的桌面版本还会按 shebang 识别无后缀脚本,提供 Python 高亮和 Pyrefly 诊断。
19+
- 按 shebang 识别的无后缀脚本同样支持 Python 高亮、注释和 Pyrefly 诊断。
1420
2. **后端解析的语言服务器启动与解释器自动注入(`backend` + `languageServers: python` / Pyrefly `1.4.1`)**
1521
- 插件包内的 Rust 后端直接启动 Pyrefly,无需先找到 Python。宿主会传入可用于自动启动的解释器路径,缺失时由 Pyrefly 按自身规则发现项目环境。构建、测试与调试仍用宿主选择的 Python。
1622
- 构建期按平台固定版本与 SHA-256 打包 `pyrefly 1.4.1`(Unix:`bin/pyrefly`,Windows:`bin/pyrefly.exe`),每个包也包含同一目标架构的 `bin/lithe-python-backend`(Windows 为 `.exe`)。

‎docs/releases/v1.0.0.md‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
11
## 中文
22

3-
- 支持 TextMate 首行匹配的 Lithe 可按 shebang 识别无后缀 Python 脚本,提供高亮、注释和 Pyrefly 诊断。
3+
- 在 Lithe 0.8.10 及以上版本中,打开首行含 Python shebang 的无后缀脚本即可使用高亮、注释和 Pyrefly 诊断。
44
- Toolchains 可从 Conda 环境登记表、uv 自定义安装目录和其他受支持的环境位置发现 Python。项目的 `.python-version` 和 `requires-python` 参与解释器选择。
55
- Pyrefly 与宿主选定的解释器保持一致。插件包内的后端可以在尚未安装 Python 时启动 Pyrefly。
66
- Build 面板可用 pytest 收集测试,按已发现的套件和用例精确运行。运行 pytest 和 debugpy 仍需要可用的项目解释器。
77

88
### 升级与兼容性
99

10-
Lithe 0.8.9 支持安装此插件并使用普通 Python 文件功能。无后缀脚本的自动识别需要支持 TextMate 首行匹配的桌面版本。请选择对应操作系统和架构的 ZIP。使用较早桌面版本时,可继续使用 Python Support v0.1.1。
10+
Python Support v1.0.0 要求 Lithe 0.8.9 或更新版本。Lithe 0.8.9 支持安装此插件并处理 `.py`、`.pyi` 和 `.pyw` 文件。从 0.8.10 开始,Lithe 还能按 shebang 自动识别无后缀脚本。
11+
12+
使用兼容的旧版 Lithe 时,仍可手动安装 [Python Support v0.1.1 预发布版](https://github.com/Lithe-IDEA/lithe-plugin-python/releases/tag/v0.1.1)。手动安装时请选择对应操作系统和架构的 ZIP。
1113

1214
---
1315

1416
## English
1517

16-
- On Lithe versions that support TextMate first-line matching, open extensionless Python scripts with a shebang to get highlighting, comment commands, and Pyrefly diagnostics.
18+
- With Lithe 0.8.10 or later, open extensionless scripts with a Python shebang to get highlighting, comment commands, and Pyrefly diagnostics.
1719
- Toolchains can find Python from the Conda environment registry, a custom uv installation directory, and other supported environment locations. The project's `.python-version` and `requires-python` help select an interpreter.
1820
- Pyrefly uses the interpreter selected in Lithe. The bundled backend can start Pyrefly before Python is installed.
1921
- The Build panel can collect tests with pytest and run an exact discovered suite or case. Running pytest and debugpy still requires an available project interpreter.
2022

2123
### Upgrade and compatibility
2224

23-
Lithe 0.8.9 can install this plugin and use its standard Python support. Automatic recognition of extensionless scripts requires a desktop version with TextMate first-line matching. Choose the ZIP for your operating system and architecture. Python Support v0.1.1 remains available for earlier versions of Lithe.
25+
Python Support v1.0.0 requires Lithe 0.8.9 or later. Lithe 0.8.9 can install the plugin and work with `.py`, `.pyi`, and `.pyw` files. Starting with 0.8.10, Lithe can also recognize extensionless scripts by their shebang.
26+
27+
On compatible older versions of Lithe, you can still install the [Python Support v0.1.1 prerelease](https://github.com/Lithe-IDEA/lithe-plugin-python/releases/tag/v0.1.1) manually. For manual installation, choose the ZIP for your operating system and architecture.

0 commit comments

Comments
 (0)