diff --git a/.gitea/workflows/publish-dlp-io.yaml b/.gitea/workflows/publish-dlp-io.yaml index 43c200c..6a7a2e2 100644 --- a/.gitea/workflows/publish-dlp-io.yaml +++ b/.gitea/workflows/publish-dlp-io.yaml @@ -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 diff --git a/dlp_io.py b/dlp_io.py index 67edd94..41270d0 100644 --- a/dlp_io.py +++ b/dlp_io.py @@ -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", diff --git a/docs/DLP_ENVIRONMENT_NOTES.md b/docs/DLP_ENVIRONMENT_NOTES.md index ce488c8..70fd99b 100644 --- a/docs/DLP_ENVIRONMENT_NOTES.md +++ b/docs/DLP_ENVIRONMENT_NOTES.md @@ -99,7 +99,7 @@ DLP 透明加密按「进程身份」决定是否介入读写。用「读取加 ## 五、is_encrypted() 判定逻辑 -主判据(0.4.0 起):**物理大小 > helper(白名单)视角的逻辑大小**。 +主判据(0.4.1 起):**物理大小 > helper(白名单)视角的逻辑大小**。 DSOC 在加密文件的磁盘数据后保留固定的 1,024 字节尾块,同时驱动对白名单读者 虚拟化逻辑大小。`GetCompressedFileSizeW` 对任何进程都返回物理大小,helper 永远 diff --git a/docs/DLP_IO_LIBRARY.md b/docs/DLP_IO_LIBRARY.md index 94a4954..c7ec9e6 100644 --- a/docs/DLP_IO_LIBRARY.md +++ b/docs/DLP_IO_LIBRARY.md @@ -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 页面: