ci: 构建改用 --no-isolation,修复 runner 无索引导致发布失败 (0.4.1)
publish-dlp-io / publish (push) Successful in 1m33s
publish-dlp-io / publish (push) Successful in 1m33s
runner 上 pypi.tuna.tsinghua.edu.cn 不可达,py -3.13 -m build 的隔离环境在安装 setuptools>=68 时报 "from versions: none",dlp-io-v0.4.0 的发布因此中断(Test/ 构建前的步骤均通过)。setuptools 与 wheel 在 3.10-3.14 上已由 requirements-dev.txt 装好,故改为复用当前解释器直接构建,并显式把 setuptools/wheel 加入依赖安装。 0.4.0 的 tag 已被失败构建占用,按 immutable tag 约定换版本号发布 0.4.1,文档中的 版本引用同步更新。
This commit is contained in:
@@ -114,9 +114,12 @@ jobs:
|
||||
shell: pwsh
|
||||
run: |
|
||||
$ErrorActionPreference = "Stop"
|
||||
py -3.13 -m pip install build twine --progress-bar off
|
||||
# The runner cannot reach a package index, so the isolated build env
|
||||
# cannot be provisioned; reuse the setuptools/wheel already installed
|
||||
# for this interpreter instead.
|
||||
py -3.13 -m pip install build twine setuptools wheel --progress-bar off
|
||||
if ($LASTEXITCODE -ne 0) { throw "build dependency install failed" }
|
||||
py -3.13 -m build
|
||||
py -3.13 -m build --no-isolation
|
||||
if ($LASTEXITCODE -ne 0) { throw "dlp-io build failed" }
|
||||
|
||||
$version = $env:DLP_IO_PACKAGE_VERSION
|
||||
|
||||
@@ -23,7 +23,7 @@ from enum import Enum
|
||||
from multiprocessing.context import AuthenticationError
|
||||
from multiprocessing.connection import Client
|
||||
|
||||
__version__ = "0.4.0"
|
||||
__version__ = "0.4.1"
|
||||
|
||||
__all__ = [
|
||||
"DlpConfig",
|
||||
|
||||
@@ -99,7 +99,7 @@ DLP 透明加密按「进程身份」决定是否介入读写。用「读取加
|
||||
|
||||
## 五、is_encrypted() 判定逻辑
|
||||
|
||||
主判据(0.4.0 起):**物理大小 > helper(白名单)视角的逻辑大小**。
|
||||
主判据(0.4.1 起):**物理大小 > helper(白名单)视角的逻辑大小**。
|
||||
|
||||
DSOC 在加密文件的磁盘数据后保留固定的 1,024 字节尾块,同时驱动对白名单读者
|
||||
虚拟化逻辑大小。`GetCompressedFileSizeW` 对任何进程都返回物理大小,helper 永远
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
`dlp-io` 为 Windows DLP 透明加密环境提供接近 `io.open` 的 Python 文件 API。非白名单进程负责业务逻辑;文件读取由已获 DLP 白名单授权的 Python helper 完成,再通过经过认证的 Windows Named Pipe 返回明文字节;文件写入通过通道探测保证落盘为未加密格式。另提供 `is_encrypted()`,在读取前判断文件是否处于 DLP 加密状态。
|
||||
|
||||
当前版本为 `dlp-io==0.4.0`,distribution 名是 `dlp-io`,import 名是 `dlp_io`。
|
||||
当前版本为 `dlp-io==0.4.1`,distribution 名是 `dlp-io`,import 名是 `dlp_io`。
|
||||
|
||||
DLP 环境的实测特征(白名单矩阵、密文样本字节对比、各写入候选通道的可用性实验)与判定/写入逻辑的完整推导记录见 [DLP_ENVIRONMENT_NOTES.md](DLP_ENVIRONMENT_NOTES.md);DSOC 属性页与厂商 API 的调研记录见 [DLP_DSOC_API_NOTES.md](DLP_DSOC_API_NOTES.md)。
|
||||
|
||||
@@ -13,7 +13,7 @@ DLP 环境的实测特征(白名单矩阵、密文样本字节对比、各写
|
||||
registry 已开放匿名下载,一条命令即可安装;pip 会自动选择最匹配的 wheel:Windows 上 CPython 3.10–3.14 会得到对应的 pyd wheel(整个库编译为单个 `.pyd`),3.8/3.9 及其余环境得到纯 Python wheel(库要求 Python >= 3.8,pyd 版仅覆盖 CI 预装的解释器版本)。
|
||||
|
||||
```powershell
|
||||
py -m pip install --index-url https://gitea.docker.antior.cn/api/packages/antior/pypi/simple dlp-io==0.4.0
|
||||
py -m pip install --index-url https://gitea.docker.antior.cn/api/packages/antior/pypi/simple dlp-io==0.4.1
|
||||
```
|
||||
|
||||
Package 页面:<https://gitea.docker.antior.cn/antior/-/packages/pypi/dlp-io>
|
||||
|
||||
Reference in New Issue
Block a user