pushkit 0.1.0rc2__py3-none-macosx_11_0_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.
pushkit/__init__.py ADDED
@@ -0,0 +1,33 @@
1
+ """Go binary packaged as Python wheel."""
2
+
3
+ import os
4
+ import stat
5
+ import subprocess
6
+ import sys
7
+
8
+ __version__ = "0.1.0rc2"
9
+
10
+
11
+ def get_binary_path():
12
+ """Return the path to the bundled binary."""
13
+ binary = os.path.join(os.path.dirname(__file__), "bin", "pushkit")
14
+
15
+ # Ensure binary is executable on Unix
16
+ if sys.platform != "win32":
17
+ current_mode = os.stat(binary).st_mode
18
+ if not (current_mode & stat.S_IXUSR):
19
+ os.chmod(binary, current_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)
20
+
21
+ return binary
22
+
23
+
24
+ def main():
25
+ """Execute the bundled binary."""
26
+ binary = get_binary_path()
27
+
28
+ if sys.platform == "win32":
29
+ # On Windows, use subprocess to properly handle signals
30
+ sys.exit(subprocess.call([binary] + sys.argv[1:]))
31
+ else:
32
+ # On Unix, exec replaces the process
33
+ os.execvp(binary, [binary] + sys.argv[1:])
pushkit/__main__.py ADDED
@@ -0,0 +1,2 @@
1
+ from . import main
2
+ main()
pushkit/bin/pushkit ADDED
Binary file
@@ -0,0 +1,7 @@
1
+ Metadata-Version: 2.1
2
+ Name: pushkit
3
+ Version: 0.1.0rc2
4
+ Summary: PushKit CLI — upload and manage files via an S3-backed API
5
+ License: MIT
6
+ Home-page: https://github.com/jayteealao/PushKit
7
+ Requires-Python: >=3.10
@@ -0,0 +1,7 @@
1
+ pushkit/__init__.py,sha256=nBq_WR_31fZtecJvJpBsl0nmROYeh6YE-ckRynip0bs,885
2
+ pushkit/__main__.py,sha256=IvTjTYhvVO6h9Jpa45i-FfzjcKcJy1jwkAZY_CkgibQ,26
3
+ pushkit/bin/pushkit,sha256=7ukxLZaR2GY2BXkNVh4ZgFx_0ZR-sgeiXktE6Rd3Urc,7902066
4
+ pushkit-0.1.0rc2.dist-info/METADATA,sha256=UK_RQmzggJMHh4J-BwQCE5-_Le1WF_fD-4DZgg76RAc,210
5
+ pushkit-0.1.0rc2.dist-info/WHEEL,sha256=WUgPicsGs-DxPX2uX6Q2Hj6dE3os72if9mFMsgKvL94,103
6
+ pushkit-0.1.0rc2.dist-info/entry_points.txt,sha256=hQONzfE_mhzNfaDfMPVyBw3UdSPVCfrPOH8WQNVXAr8,41
7
+ pushkit-0.1.0rc2.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: go-to-wheel 0.1.0
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-macosx_11_0_arm64
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ pushkit = pushkit:main