inreach 0.1.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.
inreach-0.1.1/LICENSE ADDED
File without changes
inreach-0.1.1/PKG-INFO ADDED
@@ -0,0 +1,29 @@
1
+ Metadata-Version: 2.4
2
+ Name: inreach
3
+ Version: 0.1.1
4
+ Summary: Placeholder CLI for the inreach package.
5
+ Author-email: Jack Pridgeon <jack.pridgeon@gmail.com>
6
+ Requires-Python: >=3.9
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ Dynamic: license-file
10
+
11
+ # inreach
12
+
13
+ ## Install
14
+
15
+ ```
16
+ pip install inreach
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```
22
+ inreach hello
23
+ ```
24
+
25
+ prints:
26
+
27
+ ```
28
+ hello
29
+ ```
@@ -0,0 +1,19 @@
1
+ # inreach
2
+
3
+ ## Install
4
+
5
+ ```
6
+ pip install inreach
7
+ ```
8
+
9
+ ## Usage
10
+
11
+ ```
12
+ inreach hello
13
+ ```
14
+
15
+ prints:
16
+
17
+ ```
18
+ hello
19
+ ```
@@ -0,0 +1,19 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "inreach"
7
+ version = "0.1.1"
8
+ description = "Placeholder CLI for the inreach package."
9
+ readme = "README.md"
10
+ requires-python = ">=3.9"
11
+ license = { file = "LICENSE" }
12
+ authors = [{ name = "Jack Pridgeon", email = "jack.pridgeon@gmail.com" }]
13
+ dependencies = []
14
+
15
+ [project.scripts]
16
+ inreach = "inreach.cli:main"
17
+
18
+ [tool.setuptools.packages.find]
19
+ where = ["src"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,4 @@
1
+ from inreach.core import hello
2
+
3
+ __version__ = "0.1.0"
4
+ __all__ = ["hello"]
@@ -0,0 +1,20 @@
1
+ import argparse
2
+
3
+ from inreach.core import hello
4
+
5
+
6
+ def main(argv=None) -> None:
7
+ parser = argparse.ArgumentParser(prog="inreach")
8
+ subparsers = parser.add_subparsers(dest="command")
9
+ subparsers.add_parser("hello", help="Print a hello message")
10
+
11
+ args = parser.parse_args(argv)
12
+
13
+ if args.command == "hello":
14
+ print(hello())
15
+ else:
16
+ parser.print_help()
17
+
18
+
19
+ if __name__ == "__main__":
20
+ main()
@@ -0,0 +1,2 @@
1
+ def hello() -> str:
2
+ return "hello"
@@ -0,0 +1,29 @@
1
+ Metadata-Version: 2.4
2
+ Name: inreach
3
+ Version: 0.1.1
4
+ Summary: Placeholder CLI for the inreach package.
5
+ Author-email: Jack Pridgeon <jack.pridgeon@gmail.com>
6
+ Requires-Python: >=3.9
7
+ Description-Content-Type: text/markdown
8
+ License-File: LICENSE
9
+ Dynamic: license-file
10
+
11
+ # inreach
12
+
13
+ ## Install
14
+
15
+ ```
16
+ pip install inreach
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```
22
+ inreach hello
23
+ ```
24
+
25
+ prints:
26
+
27
+ ```
28
+ hello
29
+ ```
@@ -0,0 +1,13 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/inreach/__init__.py
5
+ src/inreach/cli.py
6
+ src/inreach/core.py
7
+ src/inreach.egg-info/PKG-INFO
8
+ src/inreach.egg-info/SOURCES.txt
9
+ src/inreach.egg-info/dependency_links.txt
10
+ src/inreach.egg-info/entry_points.txt
11
+ src/inreach.egg-info/top_level.txt
12
+ tests/test_cli.py
13
+ tests/test_core.py
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ inreach = inreach.cli:main
@@ -0,0 +1 @@
1
+ inreach
@@ -0,0 +1,11 @@
1
+ from inreach.cli import main
2
+
3
+
4
+ def test_hello_command_prints_hello(capsys):
5
+ main(["hello"])
6
+ assert capsys.readouterr().out.strip() == "hello"
7
+
8
+
9
+ def test_no_command_prints_help(capsys):
10
+ main([])
11
+ assert "usage" in capsys.readouterr().out.lower()
@@ -0,0 +1,5 @@
1
+ from inreach.core import hello
2
+
3
+
4
+ def test_hello():
5
+ assert hello() == "hello"