pokerbots-dev 0.0.1__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.
- pokerbots_dev-0.0.1/.gitignore +11 -0
- pokerbots_dev-0.0.1/PKG-INFO +20 -0
- pokerbots_dev-0.0.1/README.md +8 -0
- pokerbots_dev-0.0.1/pyproject.toml +25 -0
- pokerbots_dev-0.0.1/src/pokerbots_cli/__init__.py +6 -0
- pokerbots_dev-0.0.1/src/pokerbots_cli/main.py +15 -0
- pokerbots_dev-0.0.1/tests/test_cli.py +15 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: pokerbots-dev
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: pb: command-line client for pokerbots.dev
|
|
5
|
+
Project-URL: Homepage, https://pokerbots.dev
|
|
6
|
+
Project-URL: Source, https://github.com/pokerbots-dev/pokerbots
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
Requires-Python: >=3.10
|
|
9
|
+
Provides-Extra: dev
|
|
10
|
+
Requires-Dist: pytest>=8; extra == 'dev'
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
|
|
13
|
+
# pokerbots-dev
|
|
14
|
+
|
|
15
|
+
`pb`, the command-line client for [pokerbots.dev](https://pokerbots.dev).
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
pip install pokerbots-dev
|
|
19
|
+
pb --version
|
|
20
|
+
```
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "pokerbots-dev"
|
|
7
|
+
version = "0.0.1"
|
|
8
|
+
description = "pb: command-line client for pokerbots.dev"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
dependencies = []
|
|
13
|
+
|
|
14
|
+
[project.optional-dependencies]
|
|
15
|
+
dev = ["pytest>=8"]
|
|
16
|
+
|
|
17
|
+
[project.scripts]
|
|
18
|
+
pb = "pokerbots_cli.main:main"
|
|
19
|
+
|
|
20
|
+
[project.urls]
|
|
21
|
+
Homepage = "https://pokerbots.dev"
|
|
22
|
+
Source = "https://github.com/pokerbots-dev/pokerbots"
|
|
23
|
+
|
|
24
|
+
[tool.hatch.build.targets.wheel]
|
|
25
|
+
packages = ["src/pokerbots_cli"]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
|
|
3
|
+
from pokerbots_cli import __version__
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def main(argv: list[str] | None = None) -> int:
|
|
7
|
+
parser = argparse.ArgumentParser(prog="pb", description="pokerbots.dev command-line client")
|
|
8
|
+
parser.add_argument("--version", action="version", version=f"pb {__version__}")
|
|
9
|
+
parser.parse_args(argv)
|
|
10
|
+
parser.print_help()
|
|
11
|
+
return 0
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
if __name__ == "__main__":
|
|
15
|
+
raise SystemExit(main())
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import pytest
|
|
2
|
+
|
|
3
|
+
from pokerbots_cli.main import main
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def test_version(capsys):
|
|
7
|
+
with pytest.raises(SystemExit) as exc:
|
|
8
|
+
main(["--version"])
|
|
9
|
+
assert exc.value.code == 0
|
|
10
|
+
assert capsys.readouterr().out.startswith("pb ")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def test_no_args_prints_help(capsys):
|
|
14
|
+
assert main([]) == 0
|
|
15
|
+
assert "usage: pb" in capsys.readouterr().out
|