drift-ml 0.2.6__tar.gz → 0.2.7__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: drift-ml
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Summary: drift — terminal-first, chat-based AutoML. Open source. No tokens. No auth.
5
5
  Project-URL: Homepage, https://github.com/lakshitsachdeva/intent2model
6
6
  Project-URL: Repository, https://github.com/lakshitsachdeva/intent2model
@@ -16,7 +16,7 @@ except ImportError:
16
16
  requests = None
17
17
 
18
18
  GITHUB_REPO = "lakshitsachdeva/intent2model" # Engine binaries (same repo)
19
- ENGINE_TAG = "v0.2.6" # Pinned — direct URL, no API, no rate limits
19
+ ENGINE_TAG = "v0.2.7" # Pinned — direct URL, no API, no rate limits
20
20
  ENGINE_PORT = os.environ.get("DRIFT_ENGINE_PORT", "8000")
21
21
  HEALTH_URL = f"http://127.0.0.1:{ENGINE_PORT}/health"
22
22
 
@@ -119,6 +119,20 @@ def ensure_engine() -> bool:
119
119
 
120
120
  bin_dir.mkdir(parents=True, exist_ok=True)
121
121
 
122
+ # Re-download if engine tag changed (e.g. after pipx upgrade)
123
+ version_file = bin_dir / ".engine-tag"
124
+ if bin_path.exists() and version_file.exists():
125
+ try:
126
+ if version_file.read_text().strip() != ENGINE_TAG:
127
+ bin_path.unlink()
128
+ except Exception:
129
+ pass
130
+ if bin_path.exists() and not version_file.exists():
131
+ try:
132
+ bin_path.unlink()
133
+ except Exception:
134
+ pass
135
+
122
136
  if not bin_path.exists():
123
137
  plat, arch = _get_platform_key()
124
138
  ext = ".exe" if platform.system() == "Windows" else ""
@@ -127,6 +141,10 @@ def ensure_engine() -> bool:
127
141
  try:
128
142
  url = _get_asset_url(asset)
129
143
  _download_file(url, bin_path)
144
+ try:
145
+ version_file.write_text(ENGINE_TAG)
146
+ except Exception:
147
+ pass
130
148
  except Exception as e:
131
149
  print(f"drift: Download failed: {e}", file=sys.stderr)
132
150
  print(f"drift: Run: mkdir -p ~/.drift/bin && curl -L -o ~/.drift/bin/{asset} <url>", file=sys.stderr)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: drift-ml
3
- Version: 0.2.6
3
+ Version: 0.2.7
4
4
  Summary: drift — terminal-first, chat-based AutoML. Open source. No tokens. No auth.
5
5
  Project-URL: Homepage, https://github.com/lakshitsachdeva/intent2model
6
6
  Project-URL: Repository, https://github.com/lakshitsachdeva/intent2model
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "drift-ml"
7
- version = "0.2.6"
7
+ version = "0.2.7"
8
8
  description = "drift — terminal-first, chat-based AutoML. Open source. No tokens. No auth."
9
9
  requires-python = ">=3.10"
10
10
  dependencies = [
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes