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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperlake
3
- Version: 0.2.2
3
+ Version: 0.2.4
4
4
  Summary: Hyperlake CLI and MCP bridge
5
5
  License: Proprietary
6
6
  Project-URL: Homepage, https://github.com/cerebrixos-org/hyperlake-cli
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "hyperlake"
7
- version = "0.2.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.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
- print(f"Downloading {BIN_NAME} v{version} for {goos}/{goarch}...")
68
-
69
- req = Request(url, headers={"User-Agent": "hyperlake-pypi"})
70
- resp = urlopen(req)
71
-
72
- # Follow redirects (urllib handles this automatically)
73
- data = resp.read()
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
- member.name = bin_name
95
- tf.extract(member, bin_dir)
96
- os.chmod(os.path.join(bin_dir, bin_name), 0o755)
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyperlake
3
- Version: 0.2.2
3
+ Version: 0.2.4
4
4
  Summary: Hyperlake CLI and MCP bridge
5
5
  License: Proprietary
6
6
  Project-URL: Homepage, https://github.com/cerebrixos-org/hyperlake-cli
@@ -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
@@ -1,8 +0,0 @@
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
File without changes
File without changes