Skip to content

Commit 63a2757

Browse files
author
Tom Brandenburg
committed
chore: rename package to flowsh-cli for PyPI publishing
- Rename src/flowsh/ -> src/flowsh_cli/ to match normalized PyPI name flowsh-cli - Update all imports and test invocations - Update test_uv_console_entrypoint to use content-based assertions (uv run allocates PTY, Rich output differs) - Update Makefile compile path - Regenerate uv.lock
1 parent 52afde6 commit 63a2757

10 files changed

Lines changed: 62 additions & 54 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ publish:
2323
lint:
2424
uv run --locked ruff check .
2525
uv run --locked ruff format --check .
26-
uv run --locked python -m py_compile src/flowsh/*.py scripts/workflow_to_harness.py tests/test_workflow_to_harness.py
26+
uv run --locked python -m py_compile src/flowsh_cli/*.py scripts/workflow_to_harness.py tests/test_workflow_to_harness.py
2727

2828
test:
2929
uv run --locked pytest

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Homepage = "https://github.com/tbrandenburg/flowsh"
2525
Source = "https://github.com/tbrandenburg/flowsh"
2626

2727
[project.scripts]
28-
flowsh = "flowsh.cli:main"
28+
flowsh = "flowsh_cli.cli:main"
2929

3030
[dependency-groups]
3131
dev = [

scripts/workflow_to_harness.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@
66

77
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / "src"))
88

9-
from flowsh import WorkflowParseError, harness_path, parse_workflows, render_harness # noqa: E402
10-
from flowsh.cli import main, select_workflows # noqa: E402
9+
from flowsh_cli import ( # noqa: E402
10+
WorkflowParseError,
11+
harness_path,
12+
parse_workflows,
13+
render_harness,
14+
)
15+
from flowsh_cli.cli import main, select_workflows # noqa: E402
1116

1217
__all__ = [
1318
"WorkflowParseError",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""flowsh: generate OpenCode Bash harness scripts from workflow YAML."""
22

3-
from flowsh.models import Workflow, WorkflowParseError, parse_workflows
4-
from flowsh.render import harness_path, render_harness
3+
from flowsh_cli.models import Workflow, WorkflowParseError, parse_workflows
4+
from flowsh_cli.render import harness_path, render_harness
55

66
__version__ = "0.1.0"
77

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from flowsh.cli import main
1+
from flowsh_cli.cli import main
22

33
if __name__ == "__main__":
44
raise SystemExit(main())
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
import typer
1212

13-
from flowsh import __version__
14-
from flowsh.models import Workflow, WorkflowParseError, parse_workflows
15-
from flowsh.render import harness_path, render_harness
13+
from flowsh_cli import __version__
14+
from flowsh_cli.models import Workflow, WorkflowParseError, parse_workflows
15+
from flowsh_cli.render import harness_path, render_harness
1616

1717
app = typer.Typer(
1818
add_completion=False,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import re
44
from pathlib import Path
55

6-
from flowsh.models import AgentStep, BashStep, Step, VarsStep, Workflow
6+
from flowsh_cli.models import AgentStep, BashStep, Step, VarsStep, Workflow
77

88

99
def harness_path(workflow: Workflow) -> Path:

0 commit comments

Comments
 (0)