otoolbox 0.7.3__tar.gz → 0.7.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 (153) hide show
  1. {otoolbox-0.7.3/src/otoolbox.egg-info → otoolbox-0.7.4}/PKG-INFO +1 -1
  2. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/repositories/git.py +17 -1
  3. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/unitest/__init__.py +0 -1
  4. {otoolbox-0.7.3 → otoolbox-0.7.4/src/otoolbox.egg-info}/PKG-INFO +1 -1
  5. {otoolbox-0.7.3 → otoolbox-0.7.4}/.coveragerc +0 -0
  6. {otoolbox-0.7.3 → otoolbox-0.7.4}/.github/workflows/python-package.yml +0 -0
  7. {otoolbox-0.7.3 → otoolbox-0.7.4}/.github/workflows/python-publish.yml +0 -0
  8. {otoolbox-0.7.3 → otoolbox-0.7.4}/.gitignore +0 -0
  9. {otoolbox-0.7.3 → otoolbox-0.7.4}/.logs.txt +0 -0
  10. {otoolbox-0.7.3 → otoolbox-0.7.4}/.pre-commit-config.yaml +0 -0
  11. {otoolbox-0.7.3 → otoolbox-0.7.4}/.pylintrc +0 -0
  12. {otoolbox-0.7.3 → otoolbox-0.7.4}/.pylintrc-mandatory +0 -0
  13. {otoolbox-0.7.3 → otoolbox-0.7.4}/.readthedocs.yml +0 -0
  14. {otoolbox-0.7.3 → otoolbox-0.7.4}/.vscode/launch.json +0 -0
  15. {otoolbox-0.7.3 → otoolbox-0.7.4}/.vscode/otoolbox_debug_runner.py +0 -0
  16. {otoolbox-0.7.3 → otoolbox-0.7.4}/.vscode/settings.json +0 -0
  17. {otoolbox-0.7.3 → otoolbox-0.7.4}/.vscode/tasks.json +0 -0
  18. {otoolbox-0.7.3 → otoolbox-0.7.4}/AUTHORS.rst +0 -0
  19. {otoolbox-0.7.3 → otoolbox-0.7.4}/CHANGELOG.rst +0 -0
  20. {otoolbox-0.7.3 → otoolbox-0.7.4}/CONTRIBUTING.rst +0 -0
  21. {otoolbox-0.7.3 → otoolbox-0.7.4}/LICENSE +0 -0
  22. {otoolbox-0.7.3 → otoolbox-0.7.4}/LICENSE.txt +0 -0
  23. {otoolbox-0.7.3 → otoolbox-0.7.4}/README.rst +0 -0
  24. {otoolbox-0.7.3 → otoolbox-0.7.4}/bin/customer-common +0 -0
  25. {otoolbox-0.7.3 → otoolbox-0.7.4}/bin/customer-config +0 -0
  26. {otoolbox-0.7.3 → otoolbox-0.7.4}/bin/customer-info +0 -0
  27. {otoolbox-0.7.3 → otoolbox-0.7.4}/bin/customer-init +0 -0
  28. {otoolbox-0.7.3 → otoolbox-0.7.4}/bin/customer-shell +0 -0
  29. {otoolbox-0.7.3 → otoolbox-0.7.4}/bin/customer-update +0 -0
  30. {otoolbox-0.7.3 → otoolbox-0.7.4}/bin/customer-update-submodule +0 -0
  31. {otoolbox-0.7.3 → otoolbox-0.7.4}/bin/otoolbox-commit +0 -0
  32. {otoolbox-0.7.3 → otoolbox-0.7.4}/bin/otoolbox-common +0 -0
  33. {otoolbox-0.7.3 → otoolbox-0.7.4}/bin/otoolbox-doctor +0 -0
  34. {otoolbox-0.7.3 → otoolbox-0.7.4}/bin/otoolbox-doctor.bat +0 -0
  35. {otoolbox-0.7.3 → otoolbox-0.7.4}/bin/otoolbox-init-tests +0 -0
  36. {otoolbox-0.7.3 → otoolbox-0.7.4}/bin/otoolbox-pre-commit +0 -0
  37. {otoolbox-0.7.3 → otoolbox-0.7.4}/bin/otoolbox-pull +0 -0
  38. {otoolbox-0.7.3 → otoolbox-0.7.4}/bin/otoolbox-push +0 -0
  39. {otoolbox-0.7.3 → otoolbox-0.7.4}/bin/otoolbox-push-shielded +0 -0
  40. {otoolbox-0.7.3 → otoolbox-0.7.4}/bin/otoolbox-repo-add-all +0 -0
  41. {otoolbox-0.7.3 → otoolbox-0.7.4}/bin/otoolbox-repo-init +0 -0
  42. {otoolbox-0.7.3 → otoolbox-0.7.4}/bin/otoolbox-sync-shielded +0 -0
  43. {otoolbox-0.7.3 → otoolbox-0.7.4}/bin/otoolbox-tests-by-repo +0 -0
  44. {otoolbox-0.7.3 → otoolbox-0.7.4}/docs/Makefile +0 -0
  45. {otoolbox-0.7.3 → otoolbox-0.7.4}/docs/_static/.gitignore +0 -0
  46. {otoolbox-0.7.3 → otoolbox-0.7.4}/docs/authors.rst +0 -0
  47. {otoolbox-0.7.3 → otoolbox-0.7.4}/docs/changelog.rst +0 -0
  48. {otoolbox-0.7.3 → otoolbox-0.7.4}/docs/conf.py +0 -0
  49. {otoolbox-0.7.3 → otoolbox-0.7.4}/docs/contributing.rst +0 -0
  50. {otoolbox-0.7.3 → otoolbox-0.7.4}/docs/help-repo.txt +0 -0
  51. {otoolbox-0.7.3 → otoolbox-0.7.4}/docs/index.rst +0 -0
  52. {otoolbox-0.7.3 → otoolbox-0.7.4}/docs/license.rst +0 -0
  53. {otoolbox-0.7.3 → otoolbox-0.7.4}/docs/readme.rst +0 -0
  54. {otoolbox-0.7.3 → otoolbox-0.7.4}/docs/requirements.txt +0 -0
  55. {otoolbox-0.7.3 → otoolbox-0.7.4}/pyproject.toml +0 -0
  56. {otoolbox-0.7.3 → otoolbox-0.7.4}/setup.cfg +0 -0
  57. {otoolbox-0.7.3 → otoolbox-0.7.4}/setup.py +0 -0
  58. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/__init__.py +0 -0
  59. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/__init__.py +0 -0
  60. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/addons/README.rst +0 -0
  61. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/addons/__init__.py +0 -0
  62. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/addons/config.py +0 -0
  63. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/addons/constants.py +0 -0
  64. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/copilot/README.rst +0 -0
  65. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/copilot/__init__.py +0 -0
  66. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/copilot/copilot_utils.py +0 -0
  67. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/copilot/data/agents/Odoo_17_Backend.agent.md +0 -0
  68. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/copilot/data/agents/Odoo_18_Backend.agent.md +0 -0
  69. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/copilot/data/agents/Odoo_19_Backend.agent.md +0 -0
  70. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/copilot/data/copilot-instructions.md +0 -0
  71. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/docker/README.rst +0 -0
  72. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/docker/docker-compose.yml +0 -0
  73. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/help/README.rst +0 -0
  74. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/help/__init__.py +0 -0
  75. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/help/data/README.rst +0 -0
  76. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/help/data/docs/00-file-and-folders.md +0 -0
  77. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/help/data/docs/01-global-style.md +0 -0
  78. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/help/data/docs/02-odoo-patterns.md +0 -0
  79. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/help/data/docs/03-testing-and-validation.md +0 -0
  80. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/help/data/docs/04-security-and-secrets.md +0 -0
  81. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/help/data/docs/05-oca-contributing-reference.md +0 -0
  82. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/help/data/docs/06-odoo-test-framework-guid.md +0 -0
  83. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/help/data/docs/07-odoonix-guidline.md +0 -0
  84. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/help/data/docs/08-copilot-instructions-guideline.md +0 -0
  85. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/help/data/docs/09-team-playbook.md +0 -0
  86. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/help/help_utils.py +0 -0
  87. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/logger/README.rst +0 -0
  88. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/logger/__init__.py +0 -0
  89. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/repositories/README.rst +0 -0
  90. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/repositories/__init__.py +0 -0
  91. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/repositories/config.py +0 -0
  92. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/repositories/constants.py +0 -0
  93. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/repositories/data/repositories.csv +0 -0
  94. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/repositories/data/repositories.json +0 -0
  95. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/repositories/display.py +0 -0
  96. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/repositories/util.py +0 -0
  97. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/README.rst +0 -0
  98. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/__init__.py +0 -0
  99. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/bin/bulk-add-repos +0 -0
  100. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/bin/bulk-commit +0 -0
  101. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/bin/bulk-common +0 -0
  102. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/bin/bulk-init-tests +0 -0
  103. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/bin/bulk-pre-commit +0 -0
  104. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/bin/bulk-pull +0 -0
  105. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/bin/bulk-push +0 -0
  106. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/bin/bulk-push-shielded +0 -0
  107. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/bin/bulk-repo-add-all +0 -0
  108. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/bin/bulk-repo-init +0 -0
  109. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/bin/bulk-sync-shielded +0 -0
  110. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/bin/bulk-tests-by-repo +0 -0
  111. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/bin/customer-common +0 -0
  112. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/bin/customer-config +0 -0
  113. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/bin/customer-info +0 -0
  114. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/bin/customer-init +0 -0
  115. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/bin/customer-shell +0 -0
  116. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/bin/customer-update +0 -0
  117. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/bin/customer-update-submodule +0 -0
  118. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/bin/ubuntu-install-apps +0 -0
  119. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/ubuntu/bin/ubuntu-office-conf +0 -0
  120. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/unitest/data/ODOO_TEST_FRAMEWORK_GUIDE.md +0 -0
  121. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/unitest/data/conftest.py +0 -0
  122. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/unitest/data/pytest.ini +0 -0
  123. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/unitest/unitest_utils.py +0 -0
  124. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/vscode/README.rst +0 -0
  125. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/vscode/__init__.py +0 -0
  126. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/vscode/data/odools.toml +0 -0
  127. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/vscode/data/requirements.txt +0 -0
  128. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/vscode/data/workspace.json +0 -0
  129. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/vscode/dev_env.py +0 -0
  130. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/vscode/extensions.py +0 -0
  131. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/vscode/odoo_conf.py +0 -0
  132. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/vscode/odools_conf.py +0 -0
  133. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/workspace/README.rst +0 -0
  134. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/addons/workspace/__init__.py +0 -0
  135. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/banner.txt +0 -0
  136. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/base.py +0 -0
  137. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/constants.py +0 -0
  138. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/environment.py +0 -0
  139. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox/utils.py +0 -0
  140. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox.egg-info/SOURCES.txt +0 -0
  141. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox.egg-info/dependency_links.txt +0 -0
  142. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox.egg-info/entry_points.txt +0 -0
  143. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox.egg-info/not-zip-safe +0 -0
  144. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox.egg-info/requires.txt +0 -0
  145. {otoolbox-0.7.3 → otoolbox-0.7.4}/src/otoolbox.egg-info/top_level.txt +0 -0
  146. {otoolbox-0.7.3 → otoolbox-0.7.4}/tests/test_addons.py +0 -0
  147. {otoolbox-0.7.3 → otoolbox-0.7.4}/tests/test_conftest.py +0 -0
  148. {otoolbox-0.7.3 → otoolbox-0.7.4}/tests/test_copilot_utils.py +0 -0
  149. {otoolbox-0.7.3 → otoolbox-0.7.4}/tests/test_doctor_script_packaging.py +0 -0
  150. {otoolbox-0.7.3 → otoolbox-0.7.4}/tests/test_repositories_config.py +0 -0
  151. {otoolbox-0.7.3 → otoolbox-0.7.4}/tests/test_repositories_git.py +0 -0
  152. {otoolbox-0.7.3 → otoolbox-0.7.4}/tests/test_utils.py +0 -0
  153. {otoolbox-0.7.3 → otoolbox-0.7.4}/tox.ini +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: otoolbox
3
- Version: 0.7.3
3
+ Version: 0.7.4
4
4
  Summary: Utilities for Odoo from Odoonix
5
5
  Home-page: https://odoonix.com/apps/otoolbox
6
6
  Author: Odoonix
@@ -132,6 +132,7 @@ def _get_branch_name_from_path(path):
132
132
  (line.strip() for line in result.stdout.splitlines() if line.strip()), ""
133
133
  )
134
134
 
135
+
135
136
  def _is_git_repository_main(repository_path):
136
137
  if not os.path.isdir(repository_path):
137
138
  return False
@@ -139,7 +140,7 @@ def _is_git_repository_main(repository_path):
139
140
  git_path = os.path.join(repository_path, ".git")
140
141
  if not os.path.isdir(git_path):
141
142
  return False
142
-
143
+
143
144
  try:
144
145
  result = subprocess.run(
145
146
  ["git", "-C", str(repository_path), "rev-parse", "--is-inside-work-tree"],
@@ -151,6 +152,7 @@ def _is_git_repository_main(repository_path):
151
152
  except subprocess.CalledProcessError:
152
153
  return False
153
154
 
155
+
154
156
  ######################################################################################
155
157
  # Resource Processors #
156
158
  # Resource processors are used to process resources from the workspace. The resource #
@@ -244,6 +246,20 @@ def git_worktree_create(context: Resource):
244
246
  branch_name = (
245
247
  context.branch if context.branch else env.context.get("odoo_version", "18.0")
246
248
  )
249
+
250
+ # Get root path
251
+ path_root = env.get_env_variable("GIT_REPOSITORIES_ROOT", "~/Repositories")
252
+ path_root = os.path.abspath(os.path.expanduser(path_root))
253
+
254
+ # git path
255
+ repository = context.path
256
+ repository_root_path = os.path.join(path_root, repository)
257
+ root_branch_name = _get_branch_name_from_path(repository_root_path)
258
+
259
+ if root_branch_name == branch_name:
260
+ random_branch_name = _create_random_branch_name()
261
+ _run_git(["checkout", "-B", random_branch_name], cwd=repository_root_path)
262
+
247
263
  result = utils.call_process_safe(
248
264
  [
249
265
  GIT_COMMAND,
@@ -13,7 +13,6 @@ Tags: unitest
13
13
 
14
14
  import typer
15
15
  import dotenv
16
- import os
17
16
 
18
17
  from otoolbox import env
19
18
  from otoolbox import utils
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: otoolbox
3
- Version: 0.7.3
3
+ Version: 0.7.4
4
4
  Summary: Utilities for Odoo from Odoonix
5
5
  Home-page: https://odoonix.com/apps/otoolbox
6
6
  Author: Odoonix
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
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
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
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes