otoolbox 0.7.1__tar.gz → 0.7.3__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.1 → otoolbox-0.7.3}/.vscode/launch.json +1 -1
  2. {otoolbox-0.7.1/src/otoolbox.egg-info → otoolbox-0.7.3}/PKG-INFO +1 -1
  3. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/repositories/git.py +41 -12
  4. {otoolbox-0.7.1 → otoolbox-0.7.3/src/otoolbox.egg-info}/PKG-INFO +1 -1
  5. {otoolbox-0.7.1 → otoolbox-0.7.3}/.coveragerc +0 -0
  6. {otoolbox-0.7.1 → otoolbox-0.7.3}/.github/workflows/python-package.yml +0 -0
  7. {otoolbox-0.7.1 → otoolbox-0.7.3}/.github/workflows/python-publish.yml +0 -0
  8. {otoolbox-0.7.1 → otoolbox-0.7.3}/.gitignore +0 -0
  9. {otoolbox-0.7.1 → otoolbox-0.7.3}/.logs.txt +0 -0
  10. {otoolbox-0.7.1 → otoolbox-0.7.3}/.pre-commit-config.yaml +0 -0
  11. {otoolbox-0.7.1 → otoolbox-0.7.3}/.pylintrc +0 -0
  12. {otoolbox-0.7.1 → otoolbox-0.7.3}/.pylintrc-mandatory +0 -0
  13. {otoolbox-0.7.1 → otoolbox-0.7.3}/.readthedocs.yml +0 -0
  14. {otoolbox-0.7.1 → otoolbox-0.7.3}/.vscode/otoolbox_debug_runner.py +0 -0
  15. {otoolbox-0.7.1 → otoolbox-0.7.3}/.vscode/settings.json +0 -0
  16. {otoolbox-0.7.1 → otoolbox-0.7.3}/.vscode/tasks.json +0 -0
  17. {otoolbox-0.7.1 → otoolbox-0.7.3}/AUTHORS.rst +0 -0
  18. {otoolbox-0.7.1 → otoolbox-0.7.3}/CHANGELOG.rst +0 -0
  19. {otoolbox-0.7.1 → otoolbox-0.7.3}/CONTRIBUTING.rst +0 -0
  20. {otoolbox-0.7.1 → otoolbox-0.7.3}/LICENSE +0 -0
  21. {otoolbox-0.7.1 → otoolbox-0.7.3}/LICENSE.txt +0 -0
  22. {otoolbox-0.7.1 → otoolbox-0.7.3}/README.rst +0 -0
  23. {otoolbox-0.7.1 → otoolbox-0.7.3}/bin/customer-common +0 -0
  24. {otoolbox-0.7.1 → otoolbox-0.7.3}/bin/customer-config +0 -0
  25. {otoolbox-0.7.1 → otoolbox-0.7.3}/bin/customer-info +0 -0
  26. {otoolbox-0.7.1 → otoolbox-0.7.3}/bin/customer-init +0 -0
  27. {otoolbox-0.7.1 → otoolbox-0.7.3}/bin/customer-shell +0 -0
  28. {otoolbox-0.7.1 → otoolbox-0.7.3}/bin/customer-update +0 -0
  29. {otoolbox-0.7.1 → otoolbox-0.7.3}/bin/customer-update-submodule +0 -0
  30. {otoolbox-0.7.1 → otoolbox-0.7.3}/bin/otoolbox-commit +0 -0
  31. {otoolbox-0.7.1 → otoolbox-0.7.3}/bin/otoolbox-common +0 -0
  32. {otoolbox-0.7.1 → otoolbox-0.7.3}/bin/otoolbox-doctor +0 -0
  33. {otoolbox-0.7.1 → otoolbox-0.7.3}/bin/otoolbox-doctor.bat +0 -0
  34. {otoolbox-0.7.1 → otoolbox-0.7.3}/bin/otoolbox-init-tests +0 -0
  35. {otoolbox-0.7.1 → otoolbox-0.7.3}/bin/otoolbox-pre-commit +0 -0
  36. {otoolbox-0.7.1 → otoolbox-0.7.3}/bin/otoolbox-pull +0 -0
  37. {otoolbox-0.7.1 → otoolbox-0.7.3}/bin/otoolbox-push +0 -0
  38. {otoolbox-0.7.1 → otoolbox-0.7.3}/bin/otoolbox-push-shielded +0 -0
  39. {otoolbox-0.7.1 → otoolbox-0.7.3}/bin/otoolbox-repo-add-all +0 -0
  40. {otoolbox-0.7.1 → otoolbox-0.7.3}/bin/otoolbox-repo-init +0 -0
  41. {otoolbox-0.7.1 → otoolbox-0.7.3}/bin/otoolbox-sync-shielded +0 -0
  42. {otoolbox-0.7.1 → otoolbox-0.7.3}/bin/otoolbox-tests-by-repo +0 -0
  43. {otoolbox-0.7.1 → otoolbox-0.7.3}/docs/Makefile +0 -0
  44. {otoolbox-0.7.1 → otoolbox-0.7.3}/docs/_static/.gitignore +0 -0
  45. {otoolbox-0.7.1 → otoolbox-0.7.3}/docs/authors.rst +0 -0
  46. {otoolbox-0.7.1 → otoolbox-0.7.3}/docs/changelog.rst +0 -0
  47. {otoolbox-0.7.1 → otoolbox-0.7.3}/docs/conf.py +0 -0
  48. {otoolbox-0.7.1 → otoolbox-0.7.3}/docs/contributing.rst +0 -0
  49. {otoolbox-0.7.1 → otoolbox-0.7.3}/docs/help-repo.txt +0 -0
  50. {otoolbox-0.7.1 → otoolbox-0.7.3}/docs/index.rst +0 -0
  51. {otoolbox-0.7.1 → otoolbox-0.7.3}/docs/license.rst +0 -0
  52. {otoolbox-0.7.1 → otoolbox-0.7.3}/docs/readme.rst +0 -0
  53. {otoolbox-0.7.1 → otoolbox-0.7.3}/docs/requirements.txt +0 -0
  54. {otoolbox-0.7.1 → otoolbox-0.7.3}/pyproject.toml +0 -0
  55. {otoolbox-0.7.1 → otoolbox-0.7.3}/setup.cfg +0 -0
  56. {otoolbox-0.7.1 → otoolbox-0.7.3}/setup.py +0 -0
  57. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/__init__.py +0 -0
  58. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/__init__.py +0 -0
  59. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/addons/README.rst +0 -0
  60. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/addons/__init__.py +0 -0
  61. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/addons/config.py +0 -0
  62. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/addons/constants.py +0 -0
  63. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/copilot/README.rst +0 -0
  64. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/copilot/__init__.py +0 -0
  65. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/copilot/copilot_utils.py +0 -0
  66. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/copilot/data/agents/Odoo_17_Backend.agent.md +0 -0
  67. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/copilot/data/agents/Odoo_18_Backend.agent.md +0 -0
  68. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/copilot/data/agents/Odoo_19_Backend.agent.md +0 -0
  69. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/copilot/data/copilot-instructions.md +0 -0
  70. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/docker/README.rst +0 -0
  71. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/docker/docker-compose.yml +0 -0
  72. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/help/README.rst +0 -0
  73. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/help/__init__.py +0 -0
  74. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/help/data/README.rst +0 -0
  75. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/help/data/docs/00-file-and-folders.md +0 -0
  76. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/help/data/docs/01-global-style.md +0 -0
  77. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/help/data/docs/02-odoo-patterns.md +0 -0
  78. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/help/data/docs/03-testing-and-validation.md +0 -0
  79. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/help/data/docs/04-security-and-secrets.md +0 -0
  80. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/help/data/docs/05-oca-contributing-reference.md +0 -0
  81. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/help/data/docs/06-odoo-test-framework-guid.md +0 -0
  82. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/help/data/docs/07-odoonix-guidline.md +0 -0
  83. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/help/data/docs/08-copilot-instructions-guideline.md +0 -0
  84. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/help/data/docs/09-team-playbook.md +0 -0
  85. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/help/help_utils.py +0 -0
  86. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/logger/README.rst +0 -0
  87. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/logger/__init__.py +0 -0
  88. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/repositories/README.rst +0 -0
  89. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/repositories/__init__.py +0 -0
  90. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/repositories/config.py +0 -0
  91. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/repositories/constants.py +0 -0
  92. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/repositories/data/repositories.csv +0 -0
  93. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/repositories/data/repositories.json +0 -0
  94. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/repositories/display.py +0 -0
  95. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/repositories/util.py +0 -0
  96. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/README.rst +0 -0
  97. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/__init__.py +0 -0
  98. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/bin/bulk-add-repos +0 -0
  99. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/bin/bulk-commit +0 -0
  100. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/bin/bulk-common +0 -0
  101. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/bin/bulk-init-tests +0 -0
  102. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/bin/bulk-pre-commit +0 -0
  103. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/bin/bulk-pull +0 -0
  104. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/bin/bulk-push +0 -0
  105. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/bin/bulk-push-shielded +0 -0
  106. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/bin/bulk-repo-add-all +0 -0
  107. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/bin/bulk-repo-init +0 -0
  108. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/bin/bulk-sync-shielded +0 -0
  109. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/bin/bulk-tests-by-repo +0 -0
  110. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/bin/customer-common +0 -0
  111. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/bin/customer-config +0 -0
  112. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/bin/customer-info +0 -0
  113. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/bin/customer-init +0 -0
  114. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/bin/customer-shell +0 -0
  115. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/bin/customer-update +0 -0
  116. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/bin/customer-update-submodule +0 -0
  117. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/bin/ubuntu-install-apps +0 -0
  118. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/ubuntu/bin/ubuntu-office-conf +0 -0
  119. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/unitest/__init__.py +0 -0
  120. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/unitest/data/ODOO_TEST_FRAMEWORK_GUIDE.md +0 -0
  121. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/unitest/data/conftest.py +0 -0
  122. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/unitest/data/pytest.ini +0 -0
  123. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/unitest/unitest_utils.py +0 -0
  124. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/vscode/README.rst +0 -0
  125. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/vscode/__init__.py +0 -0
  126. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/vscode/data/odools.toml +0 -0
  127. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/vscode/data/requirements.txt +0 -0
  128. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/vscode/data/workspace.json +0 -0
  129. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/vscode/dev_env.py +0 -0
  130. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/vscode/extensions.py +0 -0
  131. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/vscode/odoo_conf.py +0 -0
  132. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/vscode/odools_conf.py +0 -0
  133. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/workspace/README.rst +0 -0
  134. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/addons/workspace/__init__.py +0 -0
  135. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/banner.txt +0 -0
  136. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/base.py +0 -0
  137. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/constants.py +0 -0
  138. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/environment.py +0 -0
  139. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox/utils.py +0 -0
  140. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox.egg-info/SOURCES.txt +0 -0
  141. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox.egg-info/dependency_links.txt +0 -0
  142. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox.egg-info/entry_points.txt +0 -0
  143. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox.egg-info/not-zip-safe +0 -0
  144. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox.egg-info/requires.txt +0 -0
  145. {otoolbox-0.7.1 → otoolbox-0.7.3}/src/otoolbox.egg-info/top_level.txt +0 -0
  146. {otoolbox-0.7.1 → otoolbox-0.7.3}/tests/test_addons.py +0 -0
  147. {otoolbox-0.7.1 → otoolbox-0.7.3}/tests/test_conftest.py +0 -0
  148. {otoolbox-0.7.1 → otoolbox-0.7.3}/tests/test_copilot_utils.py +0 -0
  149. {otoolbox-0.7.1 → otoolbox-0.7.3}/tests/test_doctor_script_packaging.py +0 -0
  150. {otoolbox-0.7.1 → otoolbox-0.7.3}/tests/test_repositories_config.py +0 -0
  151. {otoolbox-0.7.1 → otoolbox-0.7.3}/tests/test_repositories_git.py +0 -0
  152. {otoolbox-0.7.1 → otoolbox-0.7.3}/tests/test_utils.py +0 -0
  153. {otoolbox-0.7.1 → otoolbox-0.7.3}/tox.ini +0 -0
@@ -30,7 +30,7 @@
30
30
  "repo list",
31
31
  "repo sync-shielded",
32
32
  "run init --tags 'odoonix/connector'",
33
- "repo add 'odoonix/sms'",
33
+ "repo add 'odoonix/social'",
34
34
  "repo add 'odoonix/product'",
35
35
  "repo add 'odoo/design-themes'",
36
36
  ],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: otoolbox
3
- Version: 0.7.1
3
+ Version: 0.7.3
4
4
  Summary: Utilities for Odoo from Odoonix
5
5
  Home-page: https://odoonix.com/apps/otoolbox
6
6
  Author: Odoonix
@@ -132,6 +132,24 @@ 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
+ def _is_git_repository_main(repository_path):
136
+ if not os.path.isdir(repository_path):
137
+ return False
138
+
139
+ git_path = os.path.join(repository_path, ".git")
140
+ if not os.path.isdir(git_path):
141
+ return False
142
+
143
+ try:
144
+ result = subprocess.run(
145
+ ["git", "-C", str(repository_path), "rev-parse", "--is-inside-work-tree"],
146
+ capture_output=True,
147
+ text=True,
148
+ check=True,
149
+ )
150
+ return result.stdout.strip() == "true"
151
+ except subprocess.CalledProcessError:
152
+ return False
135
153
 
136
154
  ######################################################################################
137
155
  # Resource Processors #
@@ -155,7 +173,12 @@ def git_link_to_repositoires_root(context: Resource):
155
173
  assert branch_name, "Branch name is required"
156
174
 
157
175
  # if repo_path is in path_root then return sucess
158
- if _is_path_in_root(repo_path, path_root):
176
+ c_repo_path = _get_repo_path(context)
177
+ if (
178
+ _is_path_in_root(c_repo_path, path_root)
179
+ and not _is_git_repository_main(repo_path)
180
+ and _is_git_repository_main(repository_root_path)
181
+ ):
159
182
  return PROCESS_SUCCESS, _get_branch_name(context=context)
160
183
 
161
184
  if not _is_git_repository(repo_path):
@@ -176,17 +199,23 @@ def git_link_to_repositoires_root(context: Resource):
176
199
  random_branch_name = _create_random_branch_name()
177
200
  _run_git(["checkout", "-B", random_branch_name], cwd=repository_root_path)
178
201
 
179
- context_path = env.get_workspace_path(context.path)
180
- if not _is_git_repository(context_path):
181
- _run_git(
182
- [
183
- "worktree",
184
- "add",
185
- context_path,
186
- f"origin/{branch_name}",
187
- ],
188
- cwd=repository_root_path,
189
- )
202
+ shutil.rmtree(repo_path)
203
+ _run_git(
204
+ [
205
+ "worktree",
206
+ "prune",
207
+ ],
208
+ cwd=repository_root_path,
209
+ )
210
+ _run_git(
211
+ [
212
+ "worktree",
213
+ "add",
214
+ repo_path,
215
+ f"origin/{branch_name}",
216
+ ],
217
+ cwd=repository_root_path,
218
+ )
190
219
 
191
220
  return PROCESS_SUCCESS, _get_branch_name(context=context)
192
221
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: otoolbox
3
- Version: 0.7.1
3
+ Version: 0.7.3
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