yozora 0.1.0__py3-none-win_amd64.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 +0 -0
- yozora/__main__.py +30 -0
- yozora/bin/yzr.exe +0 -0
- yozora-0.1.0.dist-info/METADATA +15 -0
- yozora-0.1.0.dist-info/RECORD +8 -0
- yozora-0.1.0.dist-info/WHEEL +4 -0
- yozora-0.1.0.dist-info/entry_points.txt +2 -0
- yozora-0.1.0.dist-info/top_level.txt +1 -0
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.0
|
|
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=niMwHGKRu6BnluihXpV_1oRhq01nT6fzYbr0LpJbYyA,3497472
|
|
4
|
+
yozora-0.1.0.dist-info/METADATA,sha256=5PxPqytKp_a8DOEkoCcIlpEx126D76xmOrsAEiXK5FI,258
|
|
5
|
+
yozora-0.1.0.dist-info/WHEEL,sha256=EU15nDMohIluKfAzB6MXqJXPUqguq9hzqZtrqtKhknQ,88
|
|
6
|
+
yozora-0.1.0.dist-info/top_level.txt,sha256=w5foG-WTExhM5XUvHGp19y96PrVu9cfZPMSz1QH29ZI,7
|
|
7
|
+
yozora-0.1.0.dist-info/entry_points.txt,sha256=12PvgUFObxtJ0We1djmJAslMXlIpElJSLdy_ANKAwks,45
|
|
8
|
+
yozora-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
yozora
|