python-nix-template 0.0.0__py3-none-any.whl

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,12 @@
1
+ from importlib import metadata
2
+
3
+ try:
4
+ __version__ = metadata.version(__package__)
5
+ except metadata.PackageNotFoundError:
6
+ __version__ = "unknown"
7
+
8
+ del metadata
9
+
10
+
11
+ def main() -> None:
12
+ print("Hello from python-nix-template!")
File without changes
@@ -0,0 +1 @@
1
+ # This file is intentionally left empty to mark the directory as a Python package
@@ -0,0 +1,18 @@
1
+ # TODO: restore absolute imports when
2
+ # https://github.com/juspay/omnix/issues/425
3
+ # is resolved
4
+ # from python_nix_template import main
5
+ from .. import main
6
+
7
+
8
+ def test_main(capsys):
9
+ """Test that the main function prints the expected greeting."""
10
+ main()
11
+ captured = capsys.readouterr()
12
+ assert "Hello from python-nix-template!" in captured.out
13
+
14
+
15
+ def test_main_returns_none():
16
+ """Test that the main function returns None."""
17
+ result = main()
18
+ assert result is None
@@ -0,0 +1,6 @@
1
+ Metadata-Version: 2.4
2
+ Name: python-nix-template
3
+ Version: 0.0.0
4
+ Summary: Add your description here
5
+ Author-email: Your Name <your.email@example.com>
6
+ Requires-Python: <3.13,>=3.11
@@ -0,0 +1,8 @@
1
+ python_nix_template/__init__.py,sha256=SWijljiixr76x_g__FyfSKQA2fFFdKO92pStkwwmPDc,232
2
+ python_nix_template/tests/.keep,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ python_nix_template/tests/__init__.py,sha256=tqECq8Hvxo_XJlhyZ8y2wo1MX9KM4s4WRWIVCJ08Xl4,82
4
+ python_nix_template/tests/test_main.py,sha256=-aYl-X4mvmYF3s0ZaFiLGI-4KdNP0RkrhVJWi_K5q9Y,486
5
+ python_nix_template-0.0.0.dist-info/METADATA,sha256=wjbwsHeXohyM8im93yk9chlia5WBdoou5nZkA432wYo,177
6
+ python_nix_template-0.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
+ python_nix_template-0.0.0.dist-info/entry_points.txt,sha256=RN5d_xX5FKf6jAcOBsu15TE_WU0FNLaZasy4CU65oJ4,65
8
+ python_nix_template-0.0.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.27.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ python-nix-template = python_nix_template:main