test-notepad 0.1.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,6 @@
1
+ """test_notepad: launch Windows Notepad."""
2
+
3
+ from .cli import main
4
+
5
+ __all__ = ["main"]
6
+ __version__ = "0.1.0"
@@ -0,0 +1,6 @@
1
+ """Allow `python -m test_notepad` to launch Notepad."""
2
+
3
+ from .cli import main
4
+
5
+ if __name__ == "__main__":
6
+ raise SystemExit(main())
test_notepad/cli.py ADDED
@@ -0,0 +1,19 @@
1
+ """CLI entry point that starts notepad.exe."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import subprocess
6
+ import sys
7
+
8
+
9
+ def main() -> int:
10
+ try:
11
+ subprocess.Popen(["notepad.exe"])
12
+ except OSError as exc:
13
+ print(f"Failed to start notepad.exe: {exc}", file=sys.stderr)
14
+ return 1
15
+ return 0
16
+
17
+
18
+ if __name__ == "__main__":
19
+ raise SystemExit(main())
@@ -0,0 +1,43 @@
1
+ Metadata-Version: 2.4
2
+ Name: test_notepad
3
+ Version: 0.1.0
4
+ Summary: Launch Windows Notepad (notepad.exe)
5
+ Author: Local
6
+ License: MIT
7
+ Requires-Python: >=3.8
8
+ Description-Content-Type: text/markdown
9
+
10
+ # test_notepad
11
+
12
+ Local Python package that launches Windows Notepad (`notepad.exe`).
13
+
14
+ This package is **not** published to PyPI. Install it only from this folder.
15
+
16
+ ## Install (editable, local)
17
+
18
+ ```text
19
+ cd %USERPROFILE%\Desktop\test_pypi
20
+ pip install -e .
21
+ ```
22
+
23
+ Or, if the `py` launcher is available:
24
+
25
+ ```text
26
+ py -m pip install -e .
27
+ ```
28
+
29
+ ## Usage
30
+
31
+ After install:
32
+
33
+ ```text
34
+ test-notepad
35
+ ```
36
+
37
+ Or without installing the entry point, from this folder (after install, or with PYTHONPATH set):
38
+
39
+ ```text
40
+ python -m test_notepad
41
+ ```
42
+
43
+ Both commands start `notepad.exe` with `subprocess.Popen`.
@@ -0,0 +1,8 @@
1
+ test_notepad/__init__.py,sha256=nTGhGZGDiuY0LltkQiwJ5vVxesVpW6_IaMLl9DbVCOI,108
2
+ test_notepad/__main__.py,sha256=ihlmmkVf3X9ITZMsIls65ePFul3frU3NadMuvlLAtIw,135
3
+ test_notepad/cli.py,sha256=xk-IZaV5aA1Cd01UfFq-82lY0bxYTuKByICcBGbDUME,369
4
+ test_notepad-0.1.0.dist-info/METADATA,sha256=GXYPOH_eXbNFq-BVdgRalvV6sgNIrNjQ0d0CEsUmjAA,815
5
+ test_notepad-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
6
+ test_notepad-0.1.0.dist-info/entry_points.txt,sha256=ZXci-KSKB6oK0IszPqeDb94HNZLaKLk-reaM-1prPcM,55
7
+ test_notepad-0.1.0.dist-info/top_level.txt,sha256=KZVQ62fiWPn4cEklGy9jvJEfQ5Lb1ewuuTKTA3Won9k,13
8
+ test_notepad-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ test-notepad = test_notepad.cli:main
@@ -0,0 +1 @@
1
+ test_notepad