pypilot-cli 1.0.3__tar.gz → 1.0.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.5
2
2
  Name: pypilot-cli
3
- Version: 1.0.3
3
+ Version: 1.0.4
4
4
  Summary: Deterministic Python environment doctor, dependency solver, and hardware compatibility manager.
5
5
  Project-URL: Homepage, https://github.com/Abdullah-Masood-05/pypilot
6
6
  Project-URL: Repository, https://github.com/Abdullah-Masood-05/pypilot
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "pypilot-cli"
7
- version = "1.0.3"
7
+ version = "1.0.4"
8
8
  description = "Deterministic Python environment doctor, dependency solver, and hardware compatibility manager."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -10,7 +10,7 @@ from typing import List, Optional
10
10
 
11
11
  from .binary import ensure_binary, get_cache_dir
12
12
 
13
- __version__ = "1.0.3"
13
+ __version__ = "1.0.4"
14
14
 
15
15
 
16
16
  def run(args: Optional[List[str]] = None, capture_output: bool = False) -> subprocess.CompletedProcess[str]:
@@ -17,8 +17,12 @@ import zipfile
17
17
  from pathlib import Path
18
18
 
19
19
  GITHUB_REPO = "Abdullah-Masood-05/pypilot"
20
- DEFAULT_TAG = "v1.0.2"
20
+ DEFAULT_TAG = "v1.0.4"
21
+ # Oldest helper accepted from ~/.cargo/bin or PATH.
21
22
  MIN_VERSION = (1, 0, 2)
23
+ # The release this package ships with. A cached download older than this is
24
+ # replaced, so upgrading the pip package also upgrades the engine.
25
+ BUNDLED_VERSION = tuple(int(p) for p in DEFAULT_TAG.lstrip("v").split("."))
22
26
 
23
27
 
24
28
  def get_platform_slug() -> tuple[str, str]:
@@ -145,7 +149,7 @@ def ensure_binary() -> Path:
145
149
  cached = get_cache_dir() / bin_name
146
150
  if cached.is_file():
147
151
  ver = probe_binary(cached)
148
- if ver and ver >= MIN_VERSION:
152
+ if ver and ver >= BUNDLED_VERSION:
149
153
  return cached
150
154
 
151
155
  # 2. Check ~/.cargo/bin
@@ -18,3 +18,10 @@ def test_pypilot_version():
18
18
  res = pypilot.run(["--version"], capture_output=True)
19
19
  assert res.returncode == 0
20
20
  assert "pypilot" in res.stdout
21
+
22
+
23
+ def test_bundled_version_matches_default_tag():
24
+ from pypilot.binary import BUNDLED_VERSION, DEFAULT_TAG, MIN_VERSION
25
+
26
+ assert DEFAULT_TAG == "v" + ".".join(map(str, BUNDLED_VERSION))
27
+ assert BUNDLED_VERSION >= MIN_VERSION
@@ -1157,7 +1157,7 @@ wheels = [
1157
1157
 
1158
1158
  [[package]]
1159
1159
  name = "pypilot-cli"
1160
- version = "1.0.3"
1160
+ version = "1.0.4"
1161
1161
  source = { editable = "." }
1162
1162
 
1163
1163
  [package.dev-dependencies]
File without changes
File without changes
File without changes
File without changes