deepctl-cmd-update 0.2.3__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.
Files changed (17) hide show
  1. {deepctl_cmd_update-0.2.3 → deepctl_cmd_update-0.2.4}/PKG-INFO +1 -1
  2. {deepctl_cmd_update-0.2.3 → deepctl_cmd_update-0.2.4}/pyproject.toml +1 -1
  3. {deepctl_cmd_update-0.2.3 → deepctl_cmd_update-0.2.4}/src/deepctl_cmd_update/installation.py +11 -4
  4. {deepctl_cmd_update-0.2.3 → deepctl_cmd_update-0.2.4}/src/deepctl_cmd_update.egg-info/PKG-INFO +1 -1
  5. {deepctl_cmd_update-0.2.3 → deepctl_cmd_update-0.2.4}/README.md +0 -0
  6. {deepctl_cmd_update-0.2.3 → deepctl_cmd_update-0.2.4}/setup.cfg +0 -0
  7. {deepctl_cmd_update-0.2.3 → deepctl_cmd_update-0.2.4}/src/deepctl_cmd_update/__init__.py +0 -0
  8. {deepctl_cmd_update-0.2.3 → deepctl_cmd_update-0.2.4}/src/deepctl_cmd_update/command.py +0 -0
  9. {deepctl_cmd_update-0.2.3 → deepctl_cmd_update-0.2.4}/src/deepctl_cmd_update/models.py +0 -0
  10. {deepctl_cmd_update-0.2.3 → deepctl_cmd_update-0.2.4}/src/deepctl_cmd_update/plugin_update_check.py +0 -0
  11. {deepctl_cmd_update-0.2.3 → deepctl_cmd_update-0.2.4}/src/deepctl_cmd_update/startup_check.py +0 -0
  12. {deepctl_cmd_update-0.2.3 → deepctl_cmd_update-0.2.4}/src/deepctl_cmd_update/version_check.py +0 -0
  13. {deepctl_cmd_update-0.2.3 → deepctl_cmd_update-0.2.4}/src/deepctl_cmd_update.egg-info/SOURCES.txt +0 -0
  14. {deepctl_cmd_update-0.2.3 → deepctl_cmd_update-0.2.4}/src/deepctl_cmd_update.egg-info/dependency_links.txt +0 -0
  15. {deepctl_cmd_update-0.2.3 → deepctl_cmd_update-0.2.4}/src/deepctl_cmd_update.egg-info/entry_points.txt +0 -0
  16. {deepctl_cmd_update-0.2.3 → deepctl_cmd_update-0.2.4}/src/deepctl_cmd_update.egg-info/requires.txt +0 -0
  17. {deepctl_cmd_update-0.2.3 → deepctl_cmd_update-0.2.4}/src/deepctl_cmd_update.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deepctl-cmd-update
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: Update command for deepctl
5
5
  Author-email: Deepgram <devrel@deepgram.com>
6
6
  Maintainer-email: Deepgram <devrel@deepgram.com>
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "deepctl-cmd-update"
7
- version = "0.2.3" # x-release-please-version
7
+ version = "0.2.4" # x-release-please-version
8
8
  description = "Update command for deepctl"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -336,17 +336,24 @@ class InstallationDetector:
336
336
  Returns:
337
337
  True if uv tool installation
338
338
  """
339
- exe_path = Path(sys.executable).resolve()
340
- exe_str = str(exe_path)
339
+ # Use sys.prefix (the venv root), not sys.executable — uv's Python
340
+ # interpreter is a symlink to a shared binary pool outside tools/,
341
+ # so resolve() on the executable breaks the path check.
342
+ prefix_str = str(Path(sys.prefix))
343
+ exe_str = str(Path(sys.executable))
341
344
 
342
345
  # Check custom UV_TOOL_DIR env var first
343
346
  uv_tool_dir = os.environ.get("UV_TOOL_DIR")
344
- if uv_tool_dir and exe_str.startswith(uv_tool_dir):
347
+ if uv_tool_dir and (
348
+ prefix_str.startswith(uv_tool_dir) or exe_str.startswith(uv_tool_dir)
349
+ ):
345
350
  return True
346
351
 
347
352
  # Default uv tool location
348
353
  default_uv_tools = str(Path.home() / ".local" / "share" / "uv" / "tools")
349
- return exe_str.startswith(default_uv_tools)
354
+ return prefix_str.startswith(default_uv_tools) or exe_str.startswith(
355
+ default_uv_tools
356
+ )
350
357
 
351
358
  def _detect_oneshot_execution(self) -> InstallMethod | None:
352
359
  """Detect ephemeral one-shot execution (uvx / pipx run).
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deepctl-cmd-update
3
- Version: 0.2.3
3
+ Version: 0.2.4
4
4
  Summary: Update command for deepctl
5
5
  Author-email: Deepgram <devrel@deepgram.com>
6
6
  Maintainer-email: Deepgram <devrel@deepgram.com>