bump version to 0.2.5
Release / Build Artifacts (push) Has been skipped
Release / Publish to PyPI (push) Has been skipped
Release / Publish Release (push) Has been skipped
Release / Pre-release Check (push) Failing after 31s

This commit is contained in:
2026-06-26 21:59:45 +08:00
parent d43c9e4044
commit 1880cd7a34
3 changed files with 14 additions and 12 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ license = { text = "MIT" }
name = "pyflowx" name = "pyflowx"
readme = "README.md" readme = "README.md"
requires-python = ">=3.8" requires-python = ">=3.8"
version = "0.2.4" version = "0.2.5"
[project.scripts] [project.scripts]
autofmt = "pyflowx.cli.autofmt:main" autofmt = "pyflowx.cli.autofmt:main"
+1 -1
View File
@@ -84,7 +84,7 @@ from .runner import CliExitCode, CliRunner
from .storage import JSONBackend, MemoryBackend, StateBackend from .storage import JSONBackend, MemoryBackend, StateBackend
from .task import TaskCmd, TaskEvent, TaskResult, TaskSpec, TaskStatus from .task import TaskCmd, TaskEvent, TaskResult, TaskSpec, TaskStatus
__version__ = "0.2.4" __version__ = "0.2.5"
__all__ = [ __all__ = [
"IS_LINUX", "IS_LINUX",
+12 -10
View File
@@ -236,26 +236,28 @@ def main() -> None:
print(f"版本号已更新为: {new_version}") print(f"版本号已更新为: {new_version}")
# 提交修改 # 提交修改并创建标签
graph = px.Graph.from_specs([ tasks = [
px.TaskSpec("git_add", cmd=["git", "add", "."]), px.TaskSpec("git_add", cmd=["git", "add", "."]),
px.TaskSpec( px.TaskSpec(
"git_commit", "git_commit",
cmd=["git", "commit", "-m", f"bump version to {new_version}"], cmd=["git", "commit", "-m", f"bump version to {new_version}"],
depends_on=("git_add",), depends_on=("git_add",),
), ),
]) ]
px.run(graph, strategy="sequential")
# 创建 git tag
if not args.no_tag: if not args.no_tag:
tag_name = f"v{new_version}" tag_name = f"v{new_version}"
graph = px.Graph.from_specs([ tasks.append(
px.TaskSpec( px.TaskSpec(
"git_tag", "git_tag",
cmd=["git", "tag", "-a", tag_name, "-m", f"Release {tag_name}"], cmd=["git", "tag", "-a", tag_name, "-m", f"Release {tag_name}"],
depends_on=("git_commit",), depends_on=("git_commit",),
), )
]) )
px.run(graph, strategy="sequential")
print(f"已创建标签: {tag_name}") graph = px.Graph.from_specs(tasks)
px.run(graph, strategy="sequential")
if not args.no_tag:
print(f"已创建标签: v{new_version}")