machineconfig 3.83__py3-none-any.whl → 3.86__py3-none-any.whl

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.

Potentially problematic release.


This version of machineconfig might be problematic. Click here for more details.

Files changed (35) hide show
  1. machineconfig/cluster/sessions_managers/zellij_local.py +2 -2
  2. machineconfig/cluster/sessions_managers/zellij_remote.py +2 -2
  3. machineconfig/cluster/sessions_managers/zellij_utils/example_usage.py +2 -2
  4. machineconfig/jobs/python/vscode/api.py +8 -7
  5. machineconfig/scripts/python/ai/initai.py +1 -11
  6. machineconfig/scripts/python/cloud_copy.py +33 -27
  7. machineconfig/scripts/python/cloud_manager.py +0 -2
  8. machineconfig/scripts/python/cloud_mount.py +13 -10
  9. machineconfig/scripts/python/cloud_sync.py +30 -28
  10. machineconfig/scripts/python/croshell.py +46 -53
  11. machineconfig/scripts/python/dotfile.py +16 -16
  12. machineconfig/scripts/python/fire_agents.py +4 -5
  13. machineconfig/scripts/python/fire_jobs.py +30 -14
  14. machineconfig/scripts/python/fire_jobs_args_helper.py +43 -15
  15. machineconfig/scripts/python/fire_jobs_layout_helper.py +24 -16
  16. machineconfig/scripts/python/helpers/helpers4.py +0 -2
  17. machineconfig/scripts/python/repos.py +10 -88
  18. machineconfig/scripts/python/repos_helper_action.py +335 -0
  19. machineconfig/scripts/python/scheduler.py +0 -1
  20. machineconfig/scripts/python/share_terminal.py +41 -0
  21. machineconfig/scripts/python/start_slidev.py +15 -13
  22. machineconfig/scripts/python/start_terminals.py +19 -19
  23. machineconfig/scripts/python/t4.py +17 -0
  24. machineconfig/scripts/python/wifi_conn.py +16 -14
  25. machineconfig/scripts/python/wsl_windows_transfer.py +23 -29
  26. machineconfig/utils/accessories.py +45 -7
  27. machineconfig/utils/ai/generate_file_checklist.py +17 -17
  28. {machineconfig-3.83.dist-info → machineconfig-3.86.dist-info}/METADATA +1 -1
  29. {machineconfig-3.83.dist-info → machineconfig-3.86.dist-info}/RECORD +32 -32
  30. {machineconfig-3.83.dist-info → machineconfig-3.86.dist-info}/entry_points.txt +5 -5
  31. machineconfig/cluster/templates/cli_gooey.py +0 -115
  32. machineconfig/jobs/python/vscode/link_ve.py +0 -63
  33. machineconfig/jobs/python/vscode/select_interpreter.py +0 -87
  34. {machineconfig-3.83.dist-info → machineconfig-3.86.dist-info}/WHEEL +0 -0
  35. {machineconfig-3.83.dist-info → machineconfig-3.86.dist-info}/top_level.txt +0 -0
@@ -1,87 +0,0 @@
1
- """VScode task to set interpreter"""
2
-
3
- # import os
4
- # import json
5
- from pathlib import Path
6
- from machineconfig.utils.io import save_json
7
- from machineconfig.utils.io import read_json
8
- import argparse
9
- import platform
10
-
11
-
12
- def select_interpreter(workspace_root: str):
13
- print(f"""
14
- {"=" * 150}
15
- 🐍 PYTHON INTERPRETER | Setting up VS Code Python interpreter
16
- 📂 Workspace: {workspace_root}
17
- {"=" * 150}
18
- """)
19
-
20
- path = Path(workspace_root).joinpath(".ve_path")
21
- if not path.exists():
22
- print(f"""
23
- {"⚠️" * 20}
24
- ❌ ERROR | Could not find .ve_path file in workspace
25
- 📂 Expected at: {path}
26
- {"⚠️" * 20}
27
- """)
28
- return
29
-
30
- with open(path, "r", encoding="utf-8") as f:
31
- python_path = Path(f.read().strip()).expanduser()
32
-
33
- print(f"📁 Virtual environment path: {python_path}")
34
-
35
- if platform.system() == "Windows":
36
- python_path = python_path.joinpath("Scripts", "python.exe")
37
- elif platform.system() == "Linux":
38
- python_path = python_path.joinpath("bin", "python")
39
- elif platform.system() == "Darwin":
40
- python_path = python_path.joinpath("bin", "python")
41
- else:
42
- error_msg = f"Unsupported platform: {platform.system()}"
43
- print(f"""
44
- {"⚠️" * 20}
45
- ❌ ERROR | {error_msg}
46
- {"⚠️" * 20}
47
- """)
48
- raise NotImplementedError(error_msg)
49
-
50
- print(f"🔍 Python interpreter path: {python_path}")
51
-
52
- # tmp = os.getenv('APPDATA')
53
- # assert tmp is not None
54
- # settings_path = Path(tmp).joinpath('Code', 'User', 'settings.json')
55
- work_space_settings = Path(workspace_root).joinpath(".vscode", "settings.json")
56
- work_space_settings.parent.mkdir(parents=True, exist_ok=True)
57
- if not work_space_settings.exists():
58
- print(f"📄 Creating new settings file: {work_space_settings}")
59
- work_space_settings.parent.mkdir(parents=True, exist_ok=True)
60
- work_space_settings.touch()
61
- work_space_settings.write_text("{}", encoding="utf-8")
62
- else:
63
- print(f"📄 Updating existing settings file: {work_space_settings}")
64
-
65
- settings = read_json(work_space_settings)
66
- settings["python.defaultInterpreterPath"] = str(python_path)
67
- save_json(obj=settings, path=str(work_space_settings), indent=4)
68
-
69
- print(f"""
70
- {"=" * 150}
71
- ✅ SUCCESS | Python interpreter configured successfully
72
- 🐍 Interpreter: {python_path}
73
- 📄 Settings: {work_space_settings}
74
- {"=" * 150}
75
- """)
76
-
77
-
78
- def main():
79
- parser = argparse.ArgumentParser(description="Set Python Interpretor in VSCode settings.")
80
- parser.add_argument("workspace_path", type=str, help="The workspace path")
81
-
82
- args = parser.parse_args()
83
- select_interpreter(args.workspace_path)
84
-
85
-
86
- if __name__ == "__main__":
87
- main()