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.
- {pypilot_cli-1.0.3 → pypilot_cli-1.0.4}/PKG-INFO +1 -1
- {pypilot_cli-1.0.3 → pypilot_cli-1.0.4}/pyproject.toml +1 -1
- {pypilot_cli-1.0.3 → pypilot_cli-1.0.4}/src/pypilot/__init__.py +1 -1
- {pypilot_cli-1.0.3 → pypilot_cli-1.0.4}/src/pypilot/binary.py +6 -2
- {pypilot_cli-1.0.3 → pypilot_cli-1.0.4}/tests/test_cli.py +7 -0
- {pypilot_cli-1.0.3 → pypilot_cli-1.0.4}/uv.lock +1 -1
- {pypilot_cli-1.0.3 → pypilot_cli-1.0.4}/.github/workflows/publish.yml +0 -0
- {pypilot_cli-1.0.3 → pypilot_cli-1.0.4}/.gitignore +0 -0
- {pypilot_cli-1.0.3 → pypilot_cli-1.0.4}/.python-version +0 -0
- {pypilot_cli-1.0.3 → pypilot_cli-1.0.4}/LICENSE +0 -0
- {pypilot_cli-1.0.3 → pypilot_cli-1.0.4}/README.md +0 -0
- {pypilot_cli-1.0.3 → pypilot_cli-1.0.4}/src/pypilot/cli.py +0 -0
- {pypilot_cli-1.0.3 → pypilot_cli-1.0.4}/src/pypilot/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: pypilot-cli
|
|
3
|
-
Version: 1.0.
|
|
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.
|
|
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"
|
|
@@ -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.
|
|
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 >=
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|