sample-hello-lib 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,40 @@
1
+ Metadata-Version: 2.5
2
+ Name: sample-hello-lib
3
+ Version: 0.1.0
4
+ Summary: A tiny sample PyPI library used to verify packaging and installation end-to-end.
5
+ Project-URL: Homepage, https://pypi.org/project/sample-hello-lib/
6
+ Author: glocky001
7
+ License-Expression: MIT
8
+ Classifier: Operating System :: OS Independent
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: 3.9
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Requires-Python: >=3.9
16
+ Description-Content-Type: text/markdown
17
+
18
+ # sample-hello-lib
19
+
20
+ A tiny sample PyPI library used to verify packaging and installation end-to-end.
21
+
22
+ ## Install
23
+
24
+ ```bash
25
+ pip install sample-hello-lib
26
+ ```
27
+
28
+ ## Usage
29
+
30
+ ```python
31
+ from sample_hello_lib import hello
32
+
33
+ print(hello("world")) # Hello, world!
34
+ ```
35
+
36
+ Or from the command line:
37
+
38
+ ```bash
39
+ sample-hello world
40
+ ```
@@ -0,0 +1,23 @@
1
+ # sample-hello-lib
2
+
3
+ A tiny sample PyPI library used to verify packaging and installation end-to-end.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pip install sample-hello-lib
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```python
14
+ from sample_hello_lib import hello
15
+
16
+ print(hello("world")) # Hello, world!
17
+ ```
18
+
19
+ Or from the command line:
20
+
21
+ ```bash
22
+ sample-hello world
23
+ ```
@@ -0,0 +1,32 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "sample-hello-lib"
7
+ version = "0.1.0"
8
+ description = "A tiny sample PyPI library used to verify packaging and installation end-to-end."
9
+ readme = "README.md"
10
+ license = "MIT"
11
+ requires-python = ">=3.9"
12
+ authors = [
13
+ { name = "glocky001" }
14
+ ]
15
+ classifiers = [
16
+ "Programming Language :: Python :: 3",
17
+ "Programming Language :: Python :: 3.9",
18
+ "Programming Language :: Python :: 3.10",
19
+ "Programming Language :: Python :: 3.11",
20
+ "Programming Language :: Python :: 3.12",
21
+ "Programming Language :: Python :: 3.13",
22
+ "Operating System :: OS Independent",
23
+ ]
24
+
25
+ [project.urls]
26
+ Homepage = "https://pypi.org/project/sample-hello-lib/"
27
+
28
+ [project.scripts]
29
+ sample-hello = "sample_hello_lib.cli:main"
30
+
31
+ [tool.hatch.build.targets.wheel]
32
+ packages = ["src/sample_hello_lib"]
@@ -0,0 +1,15 @@
1
+ """sample_hello_lib: a tiny sample library to verify PyPI packaging works end-to-end."""
2
+
3
+ __version__ = "0.1.0"
4
+
5
+
6
+ def hello(name: str = "world") -> str:
7
+ """Return a friendly greeting.
8
+
9
+ >>> hello("pypi")
10
+ 'Hello, pypi!'
11
+ """
12
+ return f"Hello, {name}!"
13
+
14
+
15
+ __all__ = ["hello", "__version__"]
@@ -0,0 +1,15 @@
1
+ """Command-line entry point for sample_hello_lib."""
2
+
3
+ import sys
4
+
5
+ from sample_hello_lib import hello
6
+
7
+
8
+ def main() -> int:
9
+ name = sys.argv[1] if len(sys.argv) > 1 else "world"
10
+ print(hello(name))
11
+ return 0
12
+
13
+
14
+ if __name__ == "__main__":
15
+ raise SystemExit(main())
@@ -0,0 +1,13 @@
1
+ from sample_hello_lib import hello, __version__
2
+
3
+
4
+ def test_hello_default():
5
+ assert hello() == "Hello, world!"
6
+
7
+
8
+ def test_hello_name():
9
+ assert hello("pypi") == "Hello, pypi!"
10
+
11
+
12
+ def test_version_present():
13
+ assert isinstance(__version__, str) and __version__