pythoncow 0.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,20 @@
1
+ Metadata-Version: 2.4
2
+ Name: pythoncow
3
+ Version: 0.1.0
4
+ Summary: A tiny placeholder CLI named pythoncow
5
+ Project-URL: Repository, https://github.com/sudo-yf/pythoncow
6
+ Requires-Python: >=3.9
7
+ Description-Content-Type: text/markdown
8
+
9
+ # pythoncow
10
+
11
+ A tiny placeholder Python CLI package.
12
+
13
+ ## Usage
14
+
15
+ ```bash
16
+ uvx pythoncow
17
+ uvx pythoncow --help
18
+ ```
19
+
20
+ This first release is intentionally minimal and only prints placeholder text.
@@ -0,0 +1,12 @@
1
+ # pythoncow
2
+
3
+ A tiny placeholder Python CLI package.
4
+
5
+ ## Usage
6
+
7
+ ```bash
8
+ uvx pythoncow
9
+ uvx pythoncow --help
10
+ ```
11
+
12
+ This first release is intentionally minimal and only prints placeholder text.
@@ -0,0 +1,29 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.27.0"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "pythoncow"
7
+ version = "0.1.0"
8
+ description = "A tiny placeholder CLI named pythoncow"
9
+ readme = "README.md"
10
+ requires-python = ">=3.9"
11
+ dependencies = []
12
+
13
+ [project.scripts]
14
+ pythoncow = "pythoncow.cli:main"
15
+
16
+ [project.urls]
17
+ Repository = "https://github.com/sudo-yf/pythoncow"
18
+
19
+ [tool.hatch.build.targets.wheel]
20
+ packages = ["src/pythoncow"]
21
+
22
+ [tool.hatch.build.targets.sdist]
23
+ include = [
24
+ "/README.md",
25
+ "/pyproject.toml",
26
+ "/src/pythoncow/__init__.py",
27
+ "/src/pythoncow/__main__.py",
28
+ "/src/pythoncow/cli.py",
29
+ ]
@@ -0,0 +1 @@
1
+ __version__ = "0.1.0"
@@ -0,0 +1,5 @@
1
+ from .cli import main
2
+
3
+
4
+ if __name__ == "__main__":
5
+ raise SystemExit(main())
@@ -0,0 +1,32 @@
1
+ from __future__ import annotations
2
+
3
+ import sys
4
+ from typing import Optional, Sequence
5
+
6
+ from . import __version__
7
+
8
+
9
+ def print_help() -> None:
10
+ print("Usage: pythoncow [--help] [--version]")
11
+ print("")
12
+ print("A tiny placeholder CLI.")
13
+
14
+
15
+ def main(argv: Optional[Sequence[str]] = None) -> int:
16
+ args = list(sys.argv[1:] if argv is None else argv)
17
+
18
+ if not args:
19
+ print("pythoncow: placeholder CLI is ready.")
20
+ return 0
21
+
22
+ if args[0] in {"-h", "--help", "help"}:
23
+ print_help()
24
+ return 0
25
+
26
+ if args[0] in {"-V", "--version", "version"}:
27
+ print(__version__)
28
+ return 0
29
+
30
+ print(f"pythoncow: unsupported argument: {args[0]}", file=sys.stderr)
31
+ print_help()
32
+ return 2