devs-common 2.0.9__tar.gz → 2.0.10__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 (42) hide show
  1. {devs_common-2.0.9 → devs_common-2.0.10}/PKG-INFO +1 -1
  2. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/core/container.py +8 -8
  3. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common.egg-info/PKG-INFO +1 -1
  4. {devs_common-2.0.9 → devs_common-2.0.10}/pyproject.toml +1 -1
  5. {devs_common-2.0.9 → devs_common-2.0.10}/LICENSE +0 -0
  6. {devs_common-2.0.9 → devs_common-2.0.10}/README.md +0 -0
  7. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/__init__.py +0 -0
  8. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/config.py +0 -0
  9. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/core/__init__.py +0 -0
  10. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/core/project.py +0 -0
  11. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/core/workspace.py +0 -0
  12. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/devs_config.py +0 -0
  13. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/exceptions.py +0 -0
  14. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/Dockerfile +0 -0
  15. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/devcontainer.json +0 -0
  16. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/scripts/copy-ssh.sh +0 -0
  17. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/scripts/post-create-wrapper.sh +0 -0
  18. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/scripts/python-venv-integration.sh +0 -0
  19. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/scripts/screenshot-webapp.sh +0 -0
  20. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/scripts/setup-workspace.sh +0 -0
  21. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/scripts/start-tunnel.sh +0 -0
  22. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/scripts/tunnel-status.sh +0 -0
  23. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/scripts/webapp-screenshot.py +0 -0
  24. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/sudo-scripts/init-firewall.sh +0 -0
  25. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/sudo-scripts/setup-devs-env.sh +0 -0
  26. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/sudo-scripts/setup-vscode-cache.sh +0 -0
  27. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/sudo-scripts/start-services.sh +0 -0
  28. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/templates/vscode-settings-reference.md +0 -0
  29. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/utils/__init__.py +0 -0
  30. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/utils/config_hash.py +0 -0
  31. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/utils/console.py +0 -0
  32. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/utils/devcontainer.py +0 -0
  33. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/utils/devcontainer_template.py +0 -0
  34. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/utils/docker_client.py +0 -0
  35. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/utils/file_utils.py +0 -0
  36. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/utils/git_utils.py +0 -0
  37. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common/utils/repo_cache.py +0 -0
  38. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common.egg-info/SOURCES.txt +0 -0
  39. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common.egg-info/dependency_links.txt +0 -0
  40. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common.egg-info/requires.txt +0 -0
  41. {devs_common-2.0.9 → devs_common-2.0.10}/devs_common.egg-info/top_level.txt +0 -0
  42. {devs_common-2.0.9 → devs_common-2.0.10}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devs-common
3
- Version: 2.0.9
3
+ Version: 2.0.10
4
4
  Summary: Shared utilities for devs package ecosystem
5
5
  Author: Dan Lester
6
6
  License-Expression: MIT
@@ -588,24 +588,24 @@ class ContainerManager:
588
588
 
589
589
  def _prepare_container_exec(self, dev_name: str, workspace_dir: Path, debug: bool = False, live: bool = False, extra_env: Optional[Dict[str, str]] = None) -> Tuple[str, str]:
590
590
  """Prepare container for exec operations (shared by exec_shell and exec_command).
591
-
591
+
592
592
  Args:
593
593
  dev_name: Development environment name
594
594
  workspace_dir: Workspace directory path
595
595
  debug: Show debug output for devcontainer operations
596
596
  live: Whether the container is in live mode
597
597
  extra_env: Additional environment variables to pass to container
598
-
598
+
599
599
  Returns:
600
600
  Tuple of (container_name, container_workspace_dir)
601
-
601
+
602
602
  Raises:
603
603
  ContainerError: If container preparation fails
604
604
  """
605
605
  # Get initial container info (may be updated based on existing container mode)
606
606
  workspace_info = self._get_container_info(dev_name, live)
607
607
  container_name = workspace_info["container_name"]
608
-
608
+
609
609
  # Check if container already exists and detect its mode
610
610
  project_labels = self._get_project_labels(dev_name)
611
611
  existing_containers = self.docker.find_containers_by_labels(project_labels)
@@ -615,18 +615,18 @@ class ContainerManager:
615
615
  existing_is_live = existing_labels.get('devs.live') == 'true'
616
616
  # Use the existing container's mode
617
617
  live = existing_is_live
618
-
618
+
619
619
  # In live mode, use the host folder name; otherwise use constructed name
620
620
  if live:
621
621
  workspace_name = workspace_dir.name
622
622
  else:
623
623
  workspace_name = workspace_info["workspace_name"]
624
624
  container_workspace_dir = f"/workspaces/{workspace_name}"
625
-
625
+
626
626
  # Ensure container is running
627
627
  if not self.ensure_container_running(dev_name, workspace_dir, debug=debug, live=live, extra_env=extra_env):
628
628
  raise ContainerError(f"Failed to start container for {dev_name}")
629
-
629
+
630
630
  return container_name, container_workspace_dir
631
631
 
632
632
  def exec_shell(self, dev_name: str, workspace_dir: Path, debug: bool = False, live: bool = False) -> None:
@@ -646,7 +646,7 @@ class ContainerManager:
646
646
  container_name, container_workspace_dir = self._prepare_container_exec(
647
647
  dev_name, workspace_dir, debug=debug, live=live
648
648
  )
649
-
649
+
650
650
  console.print(f"🐚 Opening shell in: {dev_name} (container: {container_name})")
651
651
  console.print(f" Workspace: {container_workspace_dir}")
652
652
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devs-common
3
- Version: 2.0.9
3
+ Version: 2.0.10
4
4
  Summary: Shared utilities for devs package ecosystem
5
5
  Author: Dan Lester
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "devs-common"
7
- version = "2.0.9"
7
+ version = "2.0.10"
8
8
  description = "Shared utilities for devs package ecosystem"
9
9
  authors = [
10
10
  {name = "Dan Lester"},
File without changes
File without changes
File without changes