hyperlake 0.2.2__tar.gz → 0.2.4__tar.gz
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.
- {hyperlake-0.2.2 → hyperlake-0.2.4}/PKG-INFO +1 -1
- {hyperlake-0.2.2 → hyperlake-0.2.4}/pyproject.toml +4 -1
- {hyperlake-0.2.2 → hyperlake-0.2.4}/src/hyperlake/__init__.py +22 -11
- hyperlake-0.2.4/src/hyperlake/dist/hyperlake_0.2.4_darwin_amd64.tar.gz +0 -0
- hyperlake-0.2.4/src/hyperlake/dist/hyperlake_0.2.4_darwin_arm64.tar.gz +0 -0
- hyperlake-0.2.4/src/hyperlake/dist/hyperlake_0.2.4_linux_amd64.tar.gz +0 -0
- hyperlake-0.2.4/src/hyperlake/dist/hyperlake_0.2.4_linux_arm64.tar.gz +0 -0
- hyperlake-0.2.4/src/hyperlake/dist/hyperlake_0.2.4_windows_amd64.zip +0 -0
- {hyperlake-0.2.2 → hyperlake-0.2.4}/src/hyperlake.egg-info/PKG-INFO +1 -1
- hyperlake-0.2.4/src/hyperlake.egg-info/SOURCES.txt +13 -0
- hyperlake-0.2.2/src/hyperlake.egg-info/SOURCES.txt +0 -8
- {hyperlake-0.2.2 → hyperlake-0.2.4}/README.md +0 -0
- {hyperlake-0.2.2 → hyperlake-0.2.4}/setup.cfg +0 -0
- {hyperlake-0.2.2 → hyperlake-0.2.4}/src/hyperlake.egg-info/dependency_links.txt +0 -0
- {hyperlake-0.2.2 → hyperlake-0.2.4}/src/hyperlake.egg-info/entry_points.txt +0 -0
- {hyperlake-0.2.2 → hyperlake-0.2.4}/src/hyperlake.egg-info/top_level.txt +0 -0
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "hyperlake"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.4"
|
|
8
8
|
description = "Hyperlake CLI and MCP bridge"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.8"
|
|
@@ -28,3 +28,6 @@ hyperlake = "hyperlake:main"
|
|
|
28
28
|
|
|
29
29
|
[tool.setuptools.packages.find]
|
|
30
30
|
where = ["src"]
|
|
31
|
+
|
|
32
|
+
[tool.setuptools.package-data]
|
|
33
|
+
hyperlake = ["dist/*"]
|
|
@@ -5,7 +5,7 @@ import platform
|
|
|
5
5
|
import subprocess
|
|
6
6
|
import sys
|
|
7
7
|
|
|
8
|
-
__version__ = "0.2.
|
|
8
|
+
__version__ = "0.2.4"
|
|
9
9
|
|
|
10
10
|
REPO = "cerebrixos-org/hyperlake-cli"
|
|
11
11
|
BIN_NAME = "hyperlake"
|
|
@@ -20,6 +20,10 @@ def _bin_path():
|
|
|
20
20
|
return os.path.join(_bin_dir(), BIN_NAME + ext)
|
|
21
21
|
|
|
22
22
|
|
|
23
|
+
def _bundled_archive_path(archive_name):
|
|
24
|
+
return os.path.join(os.path.dirname(__file__), "dist", archive_name)
|
|
25
|
+
|
|
26
|
+
|
|
23
27
|
def _get_platform():
|
|
24
28
|
system = platform.system().lower()
|
|
25
29
|
machine = platform.machine().lower()
|
|
@@ -64,13 +68,16 @@ def _download_binary():
|
|
|
64
68
|
archive_name = f"{BIN_NAME}_{version}_{goos}_{goarch}.{ext}"
|
|
65
69
|
url = f"https://github.com/{REPO}/releases/download/v{version}/{archive_name}"
|
|
66
70
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
bundled_archive = _bundled_archive_path(archive_name)
|
|
72
|
+
if os.path.exists(bundled_archive):
|
|
73
|
+
print(f"Installing {BIN_NAME} v{version} for {goos}/{goarch}...")
|
|
74
|
+
with open(bundled_archive, "rb") as archive:
|
|
75
|
+
data = archive.read()
|
|
76
|
+
else:
|
|
77
|
+
print(f"Downloading {BIN_NAME} v{version} for {goos}/{goarch}...")
|
|
78
|
+
req = Request(url, headers={"User-Agent": "hyperlake-pypi"})
|
|
79
|
+
with urlopen(req) as resp:
|
|
80
|
+
data = resp.read()
|
|
74
81
|
|
|
75
82
|
bin_dir = _bin_dir()
|
|
76
83
|
os.makedirs(bin_dir, exist_ok=True)
|
|
@@ -91,9 +98,13 @@ def _download_binary():
|
|
|
91
98
|
with tarfile.open(fileobj=io.BytesIO(data), mode="r:gz") as tf:
|
|
92
99
|
for member in tf.getmembers():
|
|
93
100
|
if os.path.basename(member.name) == bin_name:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
101
|
+
src = tf.extractfile(member)
|
|
102
|
+
if src is None:
|
|
103
|
+
continue
|
|
104
|
+
dest = os.path.join(bin_dir, bin_name)
|
|
105
|
+
with src, open(dest, "wb") as dst:
|
|
106
|
+
dst.write(src.read())
|
|
107
|
+
os.chmod(dest, 0o755)
|
|
97
108
|
break
|
|
98
109
|
|
|
99
110
|
dest = os.path.join(bin_dir, bin_name)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
pyproject.toml
|
|
3
|
+
src/hyperlake/__init__.py
|
|
4
|
+
src/hyperlake.egg-info/PKG-INFO
|
|
5
|
+
src/hyperlake.egg-info/SOURCES.txt
|
|
6
|
+
src/hyperlake.egg-info/dependency_links.txt
|
|
7
|
+
src/hyperlake.egg-info/entry_points.txt
|
|
8
|
+
src/hyperlake.egg-info/top_level.txt
|
|
9
|
+
src/hyperlake/dist/hyperlake_0.2.4_darwin_amd64.tar.gz
|
|
10
|
+
src/hyperlake/dist/hyperlake_0.2.4_darwin_arm64.tar.gz
|
|
11
|
+
src/hyperlake/dist/hyperlake_0.2.4_linux_amd64.tar.gz
|
|
12
|
+
src/hyperlake/dist/hyperlake_0.2.4_linux_arm64.tar.gz
|
|
13
|
+
src/hyperlake/dist/hyperlake_0.2.4_windows_amd64.zip
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|