Compare commits

...

3 Commits

Author SHA1 Message Date
zhou 9f87f86189 bump version to 0.4.11
CI / Lint, Typecheck & Test (push) Has been cancelled
Release / Build, Publish & Release (push) Failing after 22s
2026-07-08 21:53:24 +08:00
zhou 9ac68ddb2a fix: 修复 CI 环境下 bumpversion -h 帮助输出 ANSI 转义码导致断言失败 2026-07-08 21:53:12 +08:00
zhou 2d7bbd1a1f fix: 修复 CI 环境下 bumpversion -h 帮助输出 ANSI 转义码导致断言失败
CI / Lint, Typecheck & Test (push) Has been cancelled
2026-07-08 21:52:34 +08:00
4 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ license = { text = "MIT" }
name = "pyflowx"
readme = "README.md"
requires-python = ">=3.10"
version = "0.4.10"
version = "0.4.11"
[project.scripts]
emlman = "pyflowx.cli.legacy.emlmanager:main"
+1 -1
View File
@@ -112,7 +112,7 @@ from .task import (
from .tools import ToolSpec, list_subcommands, list_tools, run_tool, tool
from .yaml_loader import load_yaml, parse_yaml_string
__version__ = "0.4.10"
__version__ = "0.4.11"
def graph(
+9 -1
View File
@@ -2,6 +2,7 @@
from __future__ import annotations
import re
import subprocess
from pathlib import Path
@@ -9,6 +10,13 @@ import pytest
from pyflowx.ops.dev import bumpversion
_ANSI_RE = re.compile(r"\x1b\[[0-9;]*[a-zA-Z]")
def _strip_ansi(text: str) -> str:
"""移除 ANSI 转义码,使断言在 CI(富终端) 与本地环境一致."""
return _ANSI_RE.sub("", text)
@pytest.fixture(autouse=True)
def auto_use_tmp_path(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None:
@@ -205,7 +213,7 @@ class TestBumpversionCliDispatch:
app = PfApp(["bumpversion", "-h"])
rc = app.run()
assert rc == 0
out = capsys.readouterr().out
out = _strip_ansi(capsys.readouterr().out)
assert "--part" in out
assert "patch" in out
Generated
+1 -1
View File
@@ -1298,7 +1298,7 @@ wheels = [
[[package]]
name = "pyflowx"
version = "0.4.9"
version = "0.4.10"
source = { editable = "." }
dependencies = [
{ name = "pyyaml" },