rocketdoo 3.9.2__tar.gz → 3.10.1__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 (148) hide show
  1. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/LICENSE +2 -2
  2. {rocketdoo-3.9.2/rocketdoo.egg-info → rocketdoo-3.10.1}/PKG-INFO +4 -4
  3. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/README.md +1 -1
  4. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/pyproject.toml +1 -1
  5. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/ci_cli.py +8 -8
  6. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/cli.py +48 -37
  7. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/addons_path.py +38 -49
  8. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/edition_setup.py +6 -23
  9. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/gitignore_manager.py +11 -1
  10. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/gitman_config.py +4 -26
  11. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/models/__init__.py +0 -2
  12. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/models/project.py +56 -47
  13. rocketdoo-3.10.1/rocketdoo/core/odoo_conf.py +134 -0
  14. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/pack.py +122 -31
  15. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/project_info.py +39 -9
  16. rocketdoo-3.10.1/rocketdoo/easter_egg.py +171 -0
  17. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/gui/api/gitman.py +12 -4
  18. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/gui/api/pack_ops.py +38 -0
  19. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/gui/api/project.py +4 -3
  20. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/pack_environment.py +30 -4
  21. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/docker-compose.yaml.jinja +2 -2
  22. {rocketdoo-3.9.2 → rocketdoo-3.10.1/rocketdoo.egg-info}/PKG-INFO +4 -4
  23. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo.egg-info/SOURCES.txt +5 -0
  24. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_addons_path.py +169 -2
  25. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_core_contract.py +2 -0
  26. rocketdoo-3.10.1/tests/test_easter_egg.py +176 -0
  27. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_edition_setup.py +18 -0
  28. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_gitignore_manager.py +28 -0
  29. rocketdoo-3.10.1/tests/test_gitman_config.py +81 -0
  30. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_gui_api.py +111 -0
  31. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_models.py +41 -15
  32. rocketdoo-3.10.1/tests/test_odoo_conf.py +255 -0
  33. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_pack_environment.py +325 -8
  34. rocketdoo-3.10.1/tests/test_project_info.py +381 -0
  35. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_templates.py +13 -0
  36. rocketdoo-3.9.2/tests/test_project_info.py +0 -237
  37. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/MANIFEST.in +0 -0
  38. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/__init__.py +0 -0
  39. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/cli_output.py +0 -0
  40. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/__init__.py +0 -0
  41. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/compose.py +0 -0
  42. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/deploy/__init__.py +0 -0
  43. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/deploy/base.py +0 -0
  44. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/deploy/config_manager.py +0 -0
  45. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/deploy/module_packager.py +0 -0
  46. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/deploy/odoo_sh.py +0 -0
  47. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/deploy/vps.py +0 -0
  48. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/generator.py +0 -0
  49. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/instance/__init__.py +0 -0
  50. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/instance/config_manager.py +0 -0
  51. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/instance/deployer_docker.py +0 -0
  52. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/instance/deployer_native.py +0 -0
  53. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/instance/secrets_store.py +0 -0
  54. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/instance/ssh_utils.py +0 -0
  55. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/mailpit.py +0 -0
  56. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/models/deploy.py +0 -0
  57. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/models/instance.py +0 -0
  58. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/models/profiles.py +0 -0
  59. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/module_scanner.py +0 -0
  60. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/odoo_db.py +0 -0
  61. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/port_validation.py +0 -0
  62. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/service.py +0 -0
  63. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/ssh_manager.py +0 -0
  64. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/traefik.py +0 -0
  65. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/core/unpack.py +0 -0
  66. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/deploy_cli.py +0 -0
  67. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/docker_cli.py +0 -0
  68. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/gui/__init__.py +0 -0
  69. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/gui/api/__init__.py +0 -0
  70. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/gui/api/deploy_ops.py +0 -0
  71. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/gui/api/docker_ops.py +0 -0
  72. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/gui/api/instances.py +0 -0
  73. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/gui/api/mail.py +0 -0
  74. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/gui/api/modules.py +0 -0
  75. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/gui/api/odoo.py +0 -0
  76. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/gui/api/setup.py +0 -0
  77. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/gui/api/traefik_ops.py +0 -0
  78. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/gui/api/workspace.py +0 -0
  79. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/gui/server.py +0 -0
  80. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/gui/static/index.html +0 -0
  81. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/gui_cli.py +0 -0
  82. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/init_project.py +0 -0
  83. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/instance_cli.py +0 -0
  84. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/mail_cli.py +0 -0
  85. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/scaffold.py +0 -0
  86. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/.devcontainer/devcontainer.json +0 -0
  87. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/.devcontainer/docker-compose.yaml +0 -0
  88. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/.gitignore.jinja +0 -0
  89. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/.vscode/launch.json +0 -0
  90. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/.vscode/launch.json.jinja +0 -0
  91. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/.vscode/settings.json +0 -0
  92. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/Dockerfile.jinja +0 -0
  93. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/addons/.gitkeep +0 -0
  94. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/ci/workflow.yaml.jinja +0 -0
  95. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/config/odoo.conf +0 -0
  96. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/config/odoo.conf.jinja +0 -0
  97. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/deploy/.deployignore +0 -0
  98. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/deploy/deploy.yaml +0 -0
  99. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/deploy/deploy.yaml.jinja +0 -0
  100. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/install_dependencies.sh +0 -0
  101. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/instance/Dockerfile.jinja +0 -0
  102. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/instance/docker-compose.jinja +0 -0
  103. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/instance/odoo.conf.jinja +0 -0
  104. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/odoo_pg_pass +0 -0
  105. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/profiles/README.md +0 -0
  106. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/profiles/odoo15-ce.yaml +0 -0
  107. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/profiles/odoo15-ee.yaml +0 -0
  108. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/profiles/odoo16-ce.yaml +0 -0
  109. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/profiles/odoo16-ee.yaml +0 -0
  110. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/profiles/odoo17-ce.yaml +0 -0
  111. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/profiles/odoo17-ee.yaml +0 -0
  112. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/profiles/odoo18-ce.yaml +0 -0
  113. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/profiles/odoo18-ee.yaml +0 -0
  114. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/profiles/odoo19-ce.yaml +0 -0
  115. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/profiles/odoo19-ee.yaml +0 -0
  116. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/profiles/odoo20-ce.yaml +0 -0
  117. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/templates/profiles/odoo20-ee.yaml +0 -0
  118. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/traefik_cli.py +0 -0
  119. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/unpack_environment.py +0 -0
  120. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo/welcome.py +0 -0
  121. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo.egg-info/dependency_links.txt +0 -0
  122. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo.egg-info/entry_points.txt +0 -0
  123. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo.egg-info/requires.txt +0 -0
  124. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/rocketdoo.egg-info/top_level.txt +0 -0
  125. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/setup.cfg +0 -0
  126. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_ci_cli.py +0 -0
  127. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_cli_output.py +0 -0
  128. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_compose.py +0 -0
  129. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_deploy_config_manager.py +0 -0
  130. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_docker_cli.py +0 -0
  131. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_e2e_pack_unpack.py +0 -0
  132. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_e2e_scaffold.py +0 -0
  133. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_gui_mail.py +0 -0
  134. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_gui_static.py +0 -0
  135. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_imports.py +0 -0
  136. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_instance_docker.py +0 -0
  137. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_instance_native.py +0 -0
  138. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_mail_cli.py +0 -0
  139. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_mailpit.py +0 -0
  140. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_mailpit_ports.py +0 -0
  141. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_module_scanner.py +0 -0
  142. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_odoo_db.py +0 -0
  143. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_port_validation.py +0 -0
  144. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_profiles.py +0 -0
  145. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_secrets_hardening.py +0 -0
  146. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_ssh_manager.py +0 -0
  147. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_traefik.py +0 -0
  148. {rocketdoo-3.9.2 → rocketdoo-3.10.1}/tests/test_unpack_environment.py +0 -0
@@ -57,7 +57,7 @@ If the Library as you received it specifies that a proxy can decide whether futu
57
57
  <div RKD as ROCKETDOO V3=""></div>
58
58
 
59
59
  Licencia: LGPL-3.0+
60
- Versión: "3.9.2"
60
+ Versión: "3.10.1"
61
61
  Autor: Horacio Montaño
62
- Fecha: 30/10/2026
62
+ Fecha: 18/11/2026
63
63
  Descripción: Framework to development Odoo
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rocketdoo
3
- Version: 3.9.2
3
+ Version: 3.10.1
4
4
  Summary: Framework for creating Odoo development environments with Docker and custom templates.
5
5
  Author-email: Horacio Montaño <horaciomontano@hdmsoft.com.ar>
6
6
  License: GNU LESSER GENERAL PUBLIC LICENSE
@@ -62,9 +62,9 @@ License: GNU LESSER GENERAL PUBLIC LICENSE
62
62
  <div RKD as ROCKETDOO V3=""></div>
63
63
 
64
64
  Licencia: LGPL-3.0+
65
- Versión: "3.9.2"
65
+ Versión: "3.10.1"
66
66
  Autor: Horacio Montaño
67
- Fecha: 30/10/2026
67
+ Fecha: 18/11/2026
68
68
  Descripción: Framework to development Odoo
69
69
  Requires-Python: >=3.10
70
70
  Description-Content-Type: text/markdown
@@ -97,7 +97,7 @@ Odoo Development Framework
97
97
  - "Horacio Montaño"
98
98
 
99
99
  ## Version:
100
- - "3.9.2"
100
+ - "3.10.1"
101
101
 
102
102
  ----------------------------------------------------------------------------------------------------------------------------------------------------------
103
103
 
@@ -15,7 +15,7 @@ Odoo Development Framework
15
15
  - "Horacio Montaño"
16
16
 
17
17
  ## Version:
18
- - "3.9.2"
18
+ - "3.10.1"
19
19
 
20
20
  ----------------------------------------------------------------------------------------------------------------------------------------------------------
21
21
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "rocketdoo"
3
- version = "3.9.2"
3
+ version = "3.10.1"
4
4
  description = "Framework for creating Odoo development environments with Docker and custom templates."
5
5
  authors = [
6
6
  { name = "Horacio Montaño", email = "horaciomontano@hdmsoft.com.ar" }
@@ -72,15 +72,15 @@ def prepare(admin_passwd):
72
72
  kept.append("config/odoo.conf")
73
73
  else:
74
74
  info = get_project_info()
75
- context = {**info, "admin_passwd": admin_passwd or "admin"}
75
+ context = {**info.model_dump(), "admin_passwd": admin_passwd or "admin"}
76
76
  render_template(CONFIG_TEMPLATE_DIR, "odoo.conf.jinja", os.path.join("config", "odoo.conf"), **context)
77
77
  created.append("config/odoo.conf")
78
78
 
79
- if info["odoo_edition"] == "Enterprise":
79
+ if info.odoo_edition == "Enterprise":
80
80
  add_enterprise_to_odoo_conf(odoo_conf)
81
81
 
82
- if info["third_party_repos"]:
83
- update_odoo_conf_with_gitman(odoo_conf, info["third_party_repos"])
82
+ if info.third_party_repos:
83
+ update_odoo_conf_with_gitman(odoo_conf, info.third_party_repos)
84
84
 
85
85
  action, changes = ensure_addons_path(project_root)
86
86
 
@@ -169,12 +169,12 @@ def _ruff_target(odoo_version):
169
169
 
170
170
  def _unsupported_reasons(info):
171
171
  reasons = []
172
- if info["odoo_edition"] == "Enterprise":
172
+ if info.odoo_edition == "Enterprise":
173
173
  reasons.append(
174
174
  "Enterprise addons are not public; the install job would need your "
175
175
  "subscription credentials as a repository secret."
176
176
  )
177
- if info["use_private_repos"]:
177
+ if info.use_private_repos:
178
178
  reasons.append("The Dockerfile copies a private SSH key into the build context (.ssh/), which CI runners do not have.")
179
179
  return reasons
180
180
 
@@ -214,10 +214,10 @@ def _ci_context(project_root, install_trigger):
214
214
  info = get_project_info()
215
215
  reasons = _unsupported_reasons(info)
216
216
  return {
217
- "project_name": info["project_name"],
217
+ "project_name": info.project_name,
218
218
  "default_branch": _default_branch(project_root),
219
219
  "rkd_spec": _rkd_spec(__version__),
220
- "ruff_target": _ruff_target(info["odoo_version"]),
220
+ "ruff_target": _ruff_target(info.odoo_version),
221
221
  "install_supported": not reasons,
222
222
  "install_trigger": install_trigger,
223
223
  "unsupported_reasons": reasons,
@@ -16,6 +16,7 @@ from rocketdoo.core.gitignore_manager import missing_entries
16
16
  from rocketdoo.core.models.profiles import ProfileCatalog, get_golden_path
17
17
  from rocketdoo.deploy_cli import deploy, deploy_config, deploy_init, deploy_run, list_modules, validate_modules
18
18
  from rocketdoo.docker_cli import build, docker, down, logs, pause, restart, status, stop, up
19
+ from rocketdoo.easter_egg import launch_command
19
20
  from rocketdoo.gui_cli import gui_command
20
21
  from rocketdoo.instance_cli import instance
21
22
  from rocketdoo.mail_cli import mail
@@ -159,7 +160,7 @@ def delete_command(ctx, delete_identifier, dry_run, path, quiet):
159
160
  console.print("─" * 60 + "\n")
160
161
 
161
162
 
162
- @click.group()
163
+ @click.group(epilog="Pre-flight checklist complete. One system is still not on this list.")
163
164
  @click.version_option(
164
165
  version=f"{__version__}", prog_name="Rocketdoo"
165
166
  ) # version declared on rocketdoo/core/__init__.py and pyproject.toml
@@ -304,8 +305,11 @@ def help(command_name):
304
305
  else:
305
306
  click.echo(f"❌ Command '{command_name}' not found")
306
307
  click.echo("Available commands:")
307
- for name in main.list_commands(click.Context(main)):
308
- click.echo(f" {name}")
308
+ ctx = click.Context(main)
309
+ for name in main.list_commands(ctx):
310
+ command = main.get_command(ctx, name)
311
+ if command is not None and not command.hidden:
312
+ click.echo(f" {name}")
309
313
  else:
310
314
  # Show general help
311
315
  click.echo(main.get_help(click.Context(main)))
@@ -343,54 +347,54 @@ def info():
343
347
  table.add_column("Value", style="green")
344
348
 
345
349
  # Project name
346
- if project_info["project_name"]:
347
- table.add_row("📦 Project Name", project_info["project_name"])
350
+ if project_info.project_name:
351
+ table.add_row("📦 Project Name", project_info.project_name)
348
352
 
349
353
  # Odoo version and edition - ALWAYS show if we have the info
350
- if project_info["odoo_version"]:
351
- table.add_row("🐳 Odoo Version", project_info["odoo_version"])
354
+ if project_info.odoo_version:
355
+ table.add_row("🐳 Odoo Version", project_info.odoo_version)
352
356
 
353
357
  # Always show edition (default is Community)
354
- table.add_row("📦 Odoo Edition", project_info["odoo_edition"])
358
+ table.add_row("📦 Odoo Edition", project_info.odoo_edition)
355
359
 
356
360
  # PostgreSQL version
357
- if project_info["db_version"]:
358
- table.add_row("🗄️ PostgreSQL Version", project_info["db_version"])
361
+ if project_info.db_version:
362
+ table.add_row("🗄️ PostgreSQL Version", project_info.db_version)
359
363
 
360
364
  # Containers
361
- if project_info["odoo_container"]:
362
- table.add_row("📦 Web Container", project_info["odoo_container"])
365
+ if project_info.odoo_container:
366
+ table.add_row("📦 Web Container", project_info.odoo_container)
363
367
 
364
- if project_info["db_container"]:
365
- table.add_row("📦 DB Container", project_info["db_container"])
368
+ if project_info.db_container:
369
+ table.add_row("📦 DB Container", project_info.db_container)
366
370
 
367
371
  # Ports
368
- if project_info["odoo_port"]:
369
- table.add_row("🌐 Odoo Port", project_info["odoo_port"])
372
+ if project_info.odoo_port:
373
+ table.add_row("🌐 Odoo Port", project_info.odoo_port)
370
374
 
371
- if project_info["vsc_port"]:
372
- table.add_row("🐛 VSCode Port", project_info["vsc_port"])
375
+ if project_info.vsc_port:
376
+ table.add_row("🐛 VSCode Port", project_info.vsc_port)
373
377
 
374
- if project_info["db_port"]:
375
- table.add_row("🗄️ PostgreSQL Port", project_info["db_port"])
378
+ if project_info.db_port:
379
+ table.add_row("🗄️ PostgreSQL Port", project_info.db_port)
376
380
 
377
381
  # Restart policy
378
- if project_info["restart_policy"]:
382
+ if project_info.restart_policy:
379
383
  restart_emoji = {"no": "🚫", "always": "🔄", "unless-stopped": "⏸️", "on-failure": "⚠️"}.get(
380
- project_info["restart_policy"], "♻️"
384
+ project_info.restart_policy, "♻️"
381
385
  )
382
- table.add_row(f"{restart_emoji} Restart Policy", project_info["restart_policy"])
386
+ table.add_row(f"{restart_emoji} Restart Policy", project_info.restart_policy)
383
387
 
384
388
  # Master password (partially hidden)
385
- if project_info["admin_passwd"]:
386
- passwd = project_info["admin_passwd"]
389
+ if project_info.admin_passwd:
390
+ passwd = project_info.admin_passwd
387
391
  # Hide password except first 3 characters
388
392
  masked_passwd = passwd[:3] + "*" * (len(passwd) - 3) if len(passwd) > 3 else "****"
389
393
  table.add_row("🔑 Master Password", masked_passwd)
390
394
 
391
395
  # SSH / Private repositories
392
- if project_info["use_private_repos"] and project_info["ssh_key"]:
393
- table.add_row("🔐 Private Repositories", f"✅ (key: {project_info['ssh_key']})")
396
+ if project_info.use_private_repos and project_info.ssh_key:
397
+ table.add_row("🔐 Private Repositories", f"✅ (key: {project_info.ssh_key})")
394
398
  else:
395
399
  table.add_row("🔐 Private Repositories", "❌")
396
400
 
@@ -407,20 +411,20 @@ def info():
407
411
  )
408
412
 
409
413
  # 🚀 ===== QUICK ACCESS PANEL ===== 🚀
410
- if project_info.get("odoo_port"):
414
+ if project_info.odoo_port:
411
415
  console.print()
412
416
 
413
417
  # Build panel content
414
418
  access_content = Text()
415
419
  access_content.append("🌐 ", style="bold green")
416
420
  access_content.append("Your Odoo instance is available at:\n\n", style="bold green")
417
- access_content.append(f"http://localhost:{project_info['odoo_port']}\n\n", style="bold cyan underline")
421
+ access_content.append(f"http://localhost:{project_info.odoo_port}\n\n", style="bold cyan underline")
418
422
 
419
423
  # Add credentials if available
420
424
  # if project_info.get('admin_passwd'):
421
425
  # access_content.append("🔑 ", style="bold yellow")
422
426
  # access_content.append("Master Password: ", style="bold yellow")
423
- # access_content.append(f"{project_info['admin_passwd']}\n\n", style="yellow")
427
+ # access_content.append(f"{project_info.admin_passwd}\n\n", style="yellow")
424
428
 
425
429
  access_content.append("💡 ", style="dim")
426
430
  access_content.append("Click the link or copy it to your browser", style="dim")
@@ -436,25 +440,30 @@ def info():
436
440
  )
437
441
 
438
442
  # Third-party repositories (Gitman)
439
- if project_info["use_third_party_repos"] and project_info["third_party_repos"]:
443
+ if project_info.use_third_party_repos and project_info.third_party_repos:
440
444
  repos_table = Table(show_header=True, box=box.SIMPLE_HEAD, padding=(0, 1), expand=True)
441
445
  repos_table.add_column("📚 Name", style="yellow bold", no_wrap=True)
442
446
  repos_table.add_column("🔗 Repository", style="blue", overflow="fold")
443
447
  repos_table.add_column("🏷️ Branch", style="green", justify="center")
444
448
 
445
- for repo in project_info["third_party_repos"]:
446
- # Shorten URL if too long
447
- repo_url = repo["repo"]
449
+ for repo in project_info.third_party_repos:
450
+ # Rendered as text here, not read as text: these values come from
451
+ # the user's gitman.yaml, and YAML gives a float for `rev: 16.0`
452
+ # -- which Rich refuses to render -- and None for an empty
453
+ # `repo:`, which has no length. An Odoo branch is exactly what
454
+ # gets written as `16.0`, so the natural spelling was the one
455
+ # that ended `rkd info` in a traceback (#262).
456
+ repo_url = str(repo.get("repo") or "")
448
457
  if len(repo_url) > 60:
449
458
  repo_url = repo_url[:57] + "..."
450
459
 
451
- repos_table.add_row(repo["name"], repo_url, repo["rev"])
460
+ repos_table.add_row(str(repo.get("name") or ""), repo_url, str(repo.get("rev") or ""))
452
461
 
453
462
  console.print()
454
463
  console.print(
455
464
  Panel(
456
465
  repos_table,
457
- title=f"[bold magenta]📚 Third-Party Repositories ({len(project_info['third_party_repos'])})[/bold magenta]",
466
+ title=f"[bold magenta]📚 Third-Party Repositories ({len(project_info.third_party_repos)})[/bold magenta]",
458
467
  border_style="magenta",
459
468
  box=box.ROUNDED,
460
469
  padding=(1, 1),
@@ -565,7 +574,7 @@ def gitman_init(force):
565
574
 
566
575
  # Detect Odoo version from the project to use as default branch
567
576
  project_info = get_project_info()
568
- odoo_version = project_info.get("odoo_version", "17.0") or "17.0"
577
+ odoo_version = project_info.odoo_version or "17.0"
569
578
 
570
579
  gitman_sources = []
571
580
 
@@ -684,6 +693,8 @@ main.add_command(validate_modules, name="deploy-validate")
684
693
  # ============================================================
685
694
  main.add_command(gui_command, name="gui")
686
695
 
696
+ main.add_command(launch_command, name="launch")
697
+
687
698
  # ============================================================
688
699
  # 🤖 Register CI/CD command
689
700
  # ============================================================
@@ -4,15 +4,18 @@ Odoo's addons_path is a static, comma-separated list of directories that each
4
4
  hold modules directly; a nested addons/oca/mod is invisible to Odoo unless
5
5
  .../extra-addons/oca is listed too. discover() finds those directories and
6
6
  ensure_addons_path() merges them into an existing config/odoo.conf without
7
- touching anything else in the file.
7
+ touching any other option in the file.
8
8
  """
9
9
 
10
10
  from pathlib import Path
11
11
 
12
12
  from rocketdoo.core.module_scanner import ModuleScanner
13
+ from rocketdoo.core.odoo_conf import read_addons_path, write_addons_path
13
14
 
14
15
  CONTAINER_ADDONS_ROOT = "/usr/lib/python3/dist-packages/odoo/extra-addons"
15
16
 
17
+ COLLAPSED = "collapsed to a single line"
18
+
16
19
  _EXCLUDE_PATTERNS = [
17
20
  "*/tests/*",
18
21
  "*/__pycache__/*",
@@ -59,16 +62,6 @@ def _is_managed(path: str) -> bool:
59
62
  return path == CONTAINER_ADDONS_ROOT or path.startswith(f"{CONTAINER_ADDONS_ROOT}/")
60
63
 
61
64
 
62
- def _parse_addons_path(lines: list[str]) -> tuple[int | None, list[str]]:
63
- for index, line in enumerate(lines):
64
- key, sep, _ = line.partition("=")
65
- if sep and key.strip() == "addons_path":
66
- _, _, value = line.partition("=")
67
- return index, [path.strip() for path in value.split(",") if path.strip()]
68
-
69
- return None, []
70
-
71
-
72
65
  def missing_entries(project_root: Path | str) -> list[str]:
73
66
  """Discovered directories the project's addons_path does not list yet.
74
67
 
@@ -79,24 +72,26 @@ def missing_entries(project_root: Path | str) -> list[str]:
79
72
  if not odoo_conf.exists():
80
73
  return []
81
74
 
82
- _, current_paths = _parse_addons_path(odoo_conf.read_text().splitlines())
75
+ current_paths = read_addons_path(odoo_conf)
83
76
  return [path for path in discover(project_root) if path not in current_paths]
84
77
 
85
78
 
86
79
  def ensure_addons_path(project_root: Path | str) -> tuple[str, list[str]]:
87
- """Merge discover() into config/odoo.conf's addons_path line.
80
+ """Merge discover() into config/odoo.conf's addons_path option.
88
81
 
89
82
  Returns (action, changes):
90
83
  "missing" - config/odoo.conf does not exist, nothing written.
91
- "ok" - addons_path already covers discover() exactly, nothing written.
92
- "updated" - the addons_path line was rewritten; changes lists the
93
- entries added ("+path") and removed ("-path").
84
+ "ok" - addons_path already said exactly this, nothing written.
85
+ "updated" - the addons_path option was rewritten; changes lists the
86
+ entries added ("+path") and removed ("-path"), or
87
+ COLLAPSED when only the option's layout changed.
94
88
  "failed" - the file could not be written; changes holds the reason.
95
89
 
96
90
  Entries outside CONTAINER_ADDONS_ROOT (Odoo's default, enterprise,
97
91
  Gitman's external_addons, user paths) are kept as-is, in their original
98
- order and position. Only the managed block is replaced,
99
- and only the addons_path line is touched.
92
+ order and position. Only the managed block is replaced, and only the
93
+ addons_path option is touched -- a value spread over several lines is
94
+ rewritten as one, which is also what repairs a value an older rkd broke.
100
95
  """
101
96
  project_root = Path(project_root)
102
97
  odoo_conf = project_root / "config" / "odoo.conf"
@@ -104,47 +99,41 @@ def ensure_addons_path(project_root: Path | str) -> tuple[str, list[str]]:
104
99
  return "missing", []
105
100
 
106
101
  discovered = discover(project_root)
107
- # newline="" keeps \r\n intact: rewriting one line must not convert the
108
- # line endings of a config written on Windows.
109
- with odoo_conf.open(encoding="utf-8", newline="") as handle:
110
- text = handle.read()
111
- ends_with_newline = text.endswith(("\n", "\r"))
112
- newline = "\r\n" if "\r\n" in text else "\n"
113
- lines = text.splitlines()
114
-
115
- line_index, current_paths = _parse_addons_path(lines)
102
+ current_paths = read_addons_path(odoo_conf)
116
103
  managed = [path for path in current_paths if _is_managed(path)]
117
- kept = [path for path in current_paths if not _is_managed(path)]
118
-
119
- if managed == discovered:
120
- return "ok", []
121
104
 
122
- insert_at = 0
105
+ # A managed entry that is still discovered stays exactly where it is, so a
106
+ # foreign path listed between two of ours keeps its place in the order Odoo
107
+ # resolves modules by. What is new goes behind the last managed entry, or
108
+ # at the end when the option lists none of ours yet.
109
+ new_paths: list[str] = []
110
+ pending = list(discovered)
111
+ insert_at = None
123
112
  for path in current_paths:
124
- if _is_managed(path):
125
- break
126
- insert_at += 1
127
- new_paths = kept[:insert_at] + discovered + kept[insert_at:]
113
+ if not _is_managed(path):
114
+ new_paths.append(path)
115
+ continue
116
+ if insert_at is None:
117
+ insert_at = len(new_paths)
118
+ if path in pending:
119
+ new_paths.append(path)
120
+ pending.remove(path)
121
+ insert_at = len(new_paths)
122
+ if insert_at is None:
123
+ insert_at = len(new_paths)
124
+ new_paths[insert_at:insert_at] = pending
128
125
 
129
126
  changes = [f"+{path}" for path in discovered if path not in managed]
130
127
  changes += [f"-{path}" for path in managed if path not in discovered]
131
128
 
132
- new_line = f"addons_path = {','.join(new_paths)}"
133
- if line_index is None:
134
- lines.append(new_line)
135
- else:
136
- lines[line_index] = new_line
137
-
138
- new_text = newline.join(lines)
139
- if ends_with_newline or line_index is None:
140
- new_text += newline
141
-
142
129
  try:
143
- with odoo_conf.open("w", encoding="utf-8", newline="") as handle:
144
- handle.write(new_text)
130
+ written = write_addons_path(odoo_conf, new_paths)
145
131
  except OSError as error:
146
132
  # Called from `rkd up` and from the GUI: a config we cannot write is
147
133
  # a reason to warn, never a reason to leave the project down.
148
134
  return "failed", [str(error)]
149
135
 
150
- return "updated", changes
136
+ if not written:
137
+ return "ok", []
138
+
139
+ return "updated", changes or [COLLAPSED]
@@ -1,7 +1,8 @@
1
1
  # rocketdoo/core/edition_setup.py
2
- import re
3
2
  from pathlib import Path
4
3
 
4
+ from rocketdoo.core.odoo_conf import read_addons_path, write_addons_path
5
+
5
6
 
6
7
  def enable_enterprise_in_compose(compose_path: Path):
7
8
  """Uncomment the enterprise line in docker-compose.yaml"""
@@ -25,31 +26,13 @@ def add_enterprise_to_odoo_conf(odoo_conf_path: Path):
25
26
  if not odoo_conf_path.exists():
26
27
  raise FileNotFoundError(f"File not found: {odoo_conf_path}")
27
28
 
28
- text = odoo_conf_path.read_text()
29
29
  enterprise_path = "/usr/lib/python3/dist-packages/odoo/enterprise"
30
30
 
31
- # Search for the addons_path line and add enterprise
32
- if "addons_path" in text:
33
- # If addons_path already exists, add enterprise
34
- pattern = r"(addons_path\s*=\s*)([^\n]+)"
35
-
36
- def replace_addons(match):
37
- prefix = match.group(1)
38
- current_paths = match.group(2).strip()
39
-
40
- # Avoid duplicates
41
- if enterprise_path in current_paths:
42
- return match.group(0)
43
-
44
- # Add enterprise to the beginning of the addons_path
45
- return f"{prefix}{enterprise_path},{current_paths}"
46
-
47
- text = re.sub(pattern, replace_addons, text)
48
- else:
49
- # If addons_path does not exist, add it
50
- text += f"\naddons_path = {enterprise_path}\n"
31
+ current_paths = read_addons_path(odoo_conf_path)
32
+ if enterprise_path not in current_paths:
33
+ # Enterprise goes first: Odoo resolves a module by the order of the path.
34
+ write_addons_path(odoo_conf_path, [enterprise_path, *current_paths])
51
35
 
52
- odoo_conf_path.write_text(text)
53
36
  print(f"✅ Enterprise path added to {odoo_conf_path.name}")
54
37
 
55
38
 
@@ -20,12 +20,20 @@ SENSITIVE_ENTRIES = [
20
20
  (".ssh/", "SSH private key copied into the build context"),
21
21
  (".rkd/secrets/", "VPS passwords"),
22
22
  ("odoo_pg_pass", "PostgreSQL password"),
23
+ ("*.env", "environment variables: API keys and passwords read at runtime"),
23
24
  (".rkd/instance.yaml", "deployment config with admin_passwd"),
24
25
  (".rkd/deploy.yaml", "deploy targets with VPS host, user and SSH key path"),
25
26
  ("config/odoo.conf", "Odoo config with admin_passwd"),
26
27
  ("traefik/certs/acme.json", "Let's Encrypt account key and issued certificates"),
27
28
  ]
28
29
 
30
+ # Patterns that would also swallow the file documenting them. `.env` holds the
31
+ # values; `.env.example` holds the names, and it is what lets whoever receives
32
+ # the project write their own. The template already draws that line with
33
+ # `!*.env.example`, and everything built on SENSITIVE_ENTRIES draws the same
34
+ # one: the block appended below and the ZIP exclusion in core/pack.py (#253).
35
+ SENSITIVE_EXCEPTIONS = {"*.env": ("*.env.example",)}
36
+
29
37
 
30
38
  def template_content() -> str:
31
39
  """Return the canonical .gitignore shipped with Rocketdoo."""
@@ -76,7 +84,9 @@ def ensure_gitignore(project_root: Path) -> tuple[str, list[str]]:
76
84
 
77
85
  current = gitignore.read_text()
78
86
  block = ["", "# ─── Added by Rocketdoo: secrets that must not be committed ───"]
79
- block += [pat for pat, _ in missing]
87
+ for pat, _ in missing:
88
+ block.append(pat)
89
+ block += [f"!{exception}" for exception in SENSITIVE_EXCEPTIONS.get(pat, ())]
80
90
  suffix = "\n".join(block) + "\n"
81
91
  gitignore.write_text(current if current.endswith("\n") else current + "\n")
82
92
  with gitignore.open("a") as fh:
@@ -2,6 +2,8 @@ from pathlib import Path
2
2
 
3
3
  import yaml
4
4
 
5
+ from rocketdoo.core.odoo_conf import read_addons_path, write_addons_path
6
+
5
7
 
6
8
  def generate_gitman_yaml(sources=None, output_path=None):
7
9
  """
@@ -50,35 +52,11 @@ def update_odoo_conf_with_gitman(odoo_conf_path, gitman_sources):
50
52
  if not odoo_conf_path.exists():
51
53
  raise FileNotFoundError(f"File not found: {odoo_conf_path}")
52
54
 
53
- lines = odoo_conf_path.read_text().splitlines()
54
-
55
55
  # Generate external_addons paths
56
56
  new_paths = [f"/usr/lib/python3/dist-packages/odoo/external_addons/{source['name']}" for source in gitman_sources]
57
57
 
58
- # Find and update the addons_path line
59
- updated = False
60
- for i, line in enumerate(lines):
61
- if line.strip().startswith("addons_path"):
62
- # Extract current value
63
- current_value = line.split("=", 1)[1].strip()
64
- current_paths = [p.strip() for p in current_value.split(",")]
65
-
66
- # Add only paths that don't already exist
67
- for new_path in new_paths:
68
- if new_path not in current_paths:
69
- current_paths.append(new_path)
70
-
71
- # Rebuild the line
72
- lines[i] = f"addons_path = {','.join(current_paths)}"
73
- updated = True
74
- break
75
-
76
- # If addons_path didn't exist, add it
77
- if not updated:
78
- lines.append(f"addons_path = {','.join(new_paths)}")
79
-
80
- # Save the file
81
- odoo_conf_path.write_text("\n".join(lines) + "\n")
58
+ current_paths = read_addons_path(odoo_conf_path)
59
+ write_addons_path(odoo_conf_path, current_paths + [path for path in new_paths if path not in current_paths])
82
60
 
83
61
 
84
62
  def extract_repo_name_from_url(url):
@@ -24,7 +24,6 @@ from rocketdoo.core.models.project import (
24
24
  SUPPORTED_ODOO_VERSIONS,
25
25
  Profile,
26
26
  ProjectConfig,
27
- ProjectPorts,
28
27
  get_profile,
29
28
  )
30
29
 
@@ -40,7 +39,6 @@ __all__ = [
40
39
  "OdooSHConfig",
41
40
  "Profile",
42
41
  "ProjectConfig",
43
- "ProjectPorts",
44
42
  "TargetConnection",
45
43
  "VPSConnection",
46
44
  "get_profile",