dummy-workers-py 1.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,66 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ dist/
11
+ build/
12
+ *.egg-info/
13
+ .eggs/
14
+
15
+ # Virtual environments
16
+ venv/
17
+ env/
18
+ ENV/
19
+ .venv/
20
+ .env/
21
+
22
+ # uv package manager
23
+ .uv/
24
+
25
+ # Jupyter Notebook
26
+ .ipynb_checkpoints
27
+
28
+ # IDE specific files
29
+ .idea/
30
+ .vscode/
31
+ *.swp
32
+ *.swo
33
+
34
+ # Local development settings
35
+ .env
36
+ .envrc
37
+
38
+ # Unit test / coverage reports
39
+ htmcov/
40
+ .tox/
41
+ .nox/
42
+ .coverage
43
+ .coverage.*
44
+ .cache
45
+ nosetests.xml
46
+ coverage.xml
47
+ *.cover
48
+ .hypothesis/
49
+ .pytest_cache/
50
+
51
+ # mypy
52
+ .mypy_cache/
53
+ .dmypy.json
54
+ dmypy.json
55
+
56
+ # Sphinx documentation
57
+ docs/_build/
58
+
59
+ # pyenv
60
+ .python-version
61
+
62
+ # OS specific
63
+ .DS_Store
64
+ Thumbs.db
65
+
66
+ tests/test_workspace
@@ -0,0 +1,15 @@
1
+ # CHANGELOG
2
+
3
+ <!-- version list -->
4
+
5
+ ## v1.1.0 (2026-03-12)
6
+
7
+ ### Features
8
+
9
+ - Add status command to CLI
10
+ ([`cef8ada`](https://github.com/hoodmane/workers-py-test/commit/cef8adad249c07f3253b2ab2513c0cae0b61ccac))
11
+
12
+
13
+ ## v1.0.0 (2026-03-12)
14
+
15
+ - Initial Release
@@ -0,0 +1,9 @@
1
+ Metadata-Version: 2.4
2
+ Name: dummy-workers-py
3
+ Version: 1.1.0
4
+ Summary: Dummy workers-py CLI for CI/CD testing
5
+ License-Expression: Apache-2.0
6
+ Requires-Python: >=3.12
7
+ Requires-Dist: click
8
+ Requires-Dist: dummy-workers-runtime-sdk>=0.1.0
9
+ Requires-Dist: rich
@@ -0,0 +1,66 @@
1
+ [build-system]
2
+ requires = ["hatchling", "hatch-vcs"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "dummy-workers-py"
7
+ version = "1.1.0"
8
+ description = "Dummy workers-py CLI for CI/CD testing"
9
+ requires-python = ">=3.12"
10
+ license = "Apache-2.0"
11
+ dependencies = [
12
+ "click",
13
+ "rich",
14
+ "dummy-workers-runtime-sdk>=0.1.0",
15
+ ]
16
+
17
+ [project.scripts]
18
+ pywrangler = "pywrangler.cli:app"
19
+
20
+ [tool.hatch.build.targets.wheel]
21
+ packages = ["src/pywrangler"]
22
+
23
+ [tool.ruff]
24
+ line-length = 100
25
+ target-version = "py312"
26
+
27
+ [tool.ruff.lint]
28
+ select = [
29
+ "B",
30
+ "C4",
31
+ "C90",
32
+ "E",
33
+ "F",
34
+ "I",
35
+ "PERF",
36
+ "PGH",
37
+ "PL",
38
+ "UP",
39
+ "W",
40
+ ]
41
+
42
+ [tool.mypy]
43
+ python_version = "3.12"
44
+ strict = true
45
+
46
+ [[tool.mypy.overrides]]
47
+ module = "pywrangler.*"
48
+ strict = true
49
+
50
+ [[tool.mypy.overrides]]
51
+ module = "tests.*"
52
+ strict = false
53
+ check_untyped_defs = true
54
+
55
+ [tool.pytest.ini_options]
56
+ testpaths = ["tests"]
57
+
58
+ [tool.semantic_release]
59
+ commit_parser = "conventional-monorepo"
60
+ version_variables = ["src/pywrangler/__init__.py:__version__"]
61
+ version_toml = ["pyproject.toml:project.version"]
62
+ tag_format = "dummy-workers-py-v{version}"
63
+ build_command = "pip install build && python -m build"
64
+
65
+ [tool.semantic_release.commit_parser_options]
66
+ scope_prefix = "dummy-workers-py-"
@@ -0,0 +1,3 @@
1
+ """Workers-py CLI tool - Dummy package for CI/CD testing."""
2
+
3
+ __version__ = "1.1.0"
@@ -0,0 +1,3 @@
1
+ from .cli import app
2
+
3
+ app()
@@ -0,0 +1,48 @@
1
+ """CLI entry point for pywrangler."""
2
+
3
+ import click
4
+ from rich.console import Console
5
+
6
+ from . import __version__
7
+
8
+ console = Console()
9
+
10
+
11
+ @click.group()
12
+ @click.version_option(version=__version__, prog_name="pywrangler")
13
+ @click.option("--debug", is_flag=True, help="Enable debug mode")
14
+ def app(debug: bool) -> None:
15
+ """Pywrangler - Python tooling for Cloudflare Workers (test dummy)."""
16
+ if debug:
17
+ console.print("[yellow]Debug mode enabled[/yellow]")
18
+
19
+
20
+ @app.command()
21
+ def sync() -> None:
22
+ """Sync Python packages for Workers."""
23
+ console.print("[green]Syncing packages...[/green]")
24
+ console.print("[green]Done![/green]")
25
+
26
+
27
+ @app.command()
28
+ def types() -> None:
29
+ """Generate Python type stubs from wrangler config."""
30
+ console.print("[green]Generating type stubs...[/green]")
31
+ console.print("[green]Done![/green]")
32
+
33
+
34
+ @app.command()
35
+ def info() -> None:
36
+ """Show environment information."""
37
+ from workers import __version__ as sdk_version
38
+
39
+ console.print(f"pywrangler version: {__version__}")
40
+ console.print(f"workers-runtime-sdk version: {sdk_version}")
41
+
42
+
43
+ @app.command()
44
+ def status() -> None:
45
+ """Show current deployment status."""
46
+ console.print("[bold]Deployment Status[/bold]")
47
+ console.print(" Workers: [green]healthy[/green]")
48
+ console.print(" Runtime: [green]ready[/green]")
File without changes
@@ -0,0 +1,39 @@
1
+ """Tests for the pywrangler CLI."""
2
+
3
+ from click.testing import CliRunner
4
+
5
+ from pywrangler.cli import app
6
+
7
+
8
+ def test_help() -> None:
9
+ runner = CliRunner()
10
+ result = runner.invoke(app, ["--help"])
11
+ assert result.exit_code == 0
12
+ assert "Pywrangler" in result.output
13
+
14
+
15
+ def test_version() -> None:
16
+ runner = CliRunner()
17
+ result = runner.invoke(app, ["--version"])
18
+ assert result.exit_code == 0
19
+ assert "pywrangler" in result.output
20
+
21
+
22
+ def test_sync_command() -> None:
23
+ runner = CliRunner()
24
+ result = runner.invoke(app, ["sync"])
25
+ assert result.exit_code == 0
26
+
27
+
28
+ def test_types_command() -> None:
29
+ runner = CliRunner()
30
+ result = runner.invoke(app, ["types"])
31
+ assert result.exit_code == 0
32
+
33
+
34
+ def test_info_command() -> None:
35
+ runner = CliRunner()
36
+ result = runner.invoke(app, ["info"])
37
+ assert result.exit_code == 0
38
+ assert "pywrangler version" in result.output
39
+ assert "workers-runtime-sdk version" in result.output