yozora 0.1.4__py3-none-win_arm64.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.
yozora/__init__.py ADDED
File without changes
yozora/__main__.py ADDED
@@ -0,0 +1,30 @@
1
+ """Launcher that runs the bundled yzr binary."""
2
+ import os
3
+ import stat
4
+ import subprocess
5
+ import sys
6
+ from pathlib import Path
7
+
8
+ NAME = "yzr"
9
+
10
+
11
+ def _binary_path():
12
+ bin_dir = Path(__file__).parent / "bin"
13
+ for candidate in (NAME, NAME + ".exe"):
14
+ path = bin_dir / candidate
15
+ if path.exists():
16
+ return path
17
+ sys.exit(f"{NAME}: bundled binary not found in {bin_dir}")
18
+
19
+
20
+ def main():
21
+ exe = _binary_path()
22
+ if os.name == "nt":
23
+ sys.exit(subprocess.call([str(exe), *sys.argv[1:]]))
24
+ # pip may strip the executable bit; restore it before exec.
25
+ exe.chmod(exe.stat().st_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
26
+ os.execv(exe, [str(exe), *sys.argv[1:]])
27
+
28
+
29
+ if __name__ == "__main__":
30
+ main()
yozora/bin/yzr.exe ADDED
Binary file
@@ -0,0 +1,15 @@
1
+ Metadata-Version: 2.1
2
+ Name: yozora
3
+ Version: 0.1.4
4
+ Summary: yozora, distributed as a prebuilt binary
5
+ Requires-Python: >=3.8
6
+ Description-Content-Type: text/markdown
7
+
8
+ # yozora
9
+
10
+ yozora, distributed as a prebuilt binary
11
+
12
+ ```bash
13
+ pip install yozora
14
+ yzr --help
15
+ ```
@@ -0,0 +1,8 @@
1
+ yozora/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ yozora/__main__.py,sha256=XwxUrgwr6-BkTU6sYcLoCGRYwkqLULQG6WuEABwKBFs,749
3
+ yozora/bin/yzr.exe,sha256=ncr3XIWizH1G1Ud1ibDd1PVYq0M71eJgxmVQXxRTCWI,3608576
4
+ yozora-0.1.4.dist-info/METADATA,sha256=gixsPA7NByrR2nNPmV-D7TsJ85cAtaGl8FXLp8RG92M,258
5
+ yozora-0.1.4.dist-info/WHEEL,sha256=NCZg4K-bf6BoJV8a1mTmBKz3tcKXEPnrCzRKc9_rmOk,88
6
+ yozora-0.1.4.dist-info/top_level.txt,sha256=w5foG-WTExhM5XUvHGp19y96PrVu9cfZPMSz1QH29ZI,7
7
+ yozora-0.1.4.dist-info/entry_points.txt,sha256=12PvgUFObxtJ0We1djmJAslMXlIpElJSLdy_ANKAwks,45
8
+ yozora-0.1.4.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: kyoyu (go)
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_arm64
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ yzr = yozora.__main__:main
@@ -0,0 +1 @@
1
+ yozora