shoestring-assembler 0.3.3__tar.gz → 0.4.0__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 (171) hide show
  1. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/PKG-INFO +1 -1
  2. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/pyproject.toml +1 -1
  3. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/__init__.py +1 -1
  4. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/display.py +5 -0
  5. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/engine/action/docker.py +40 -24
  6. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/engine/action/git.py +5 -2
  7. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/engine/engine.py +7 -6
  8. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/interface/state_machine/steps.py +4 -1
  9. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/model/filesystem.py +87 -0
  10. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/cli_app/app.py +0 -1
  11. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/cli_app/screens/modals.py +30 -7
  12. shoestring_assembler-0.4.0/src/shoestring_assembler/view/cli_app/screens/modals.tcss +92 -0
  13. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/plain_cli/audit_events.py +4 -0
  14. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler.egg-info/PKG-INFO +1 -1
  15. shoestring_assembler-0.3.3/src/shoestring_assembler/view/cli_app/screens/modals.tcss +0 -45
  16. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/AUTHORS.rst +0 -0
  17. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/CONTRIBUTING.rst +0 -0
  18. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/HISTORY.rst +0 -0
  19. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/LICENSE +0 -0
  20. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/MANIFEST.in +0 -0
  21. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/README.rst +0 -0
  22. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/setup.cfg +0 -0
  23. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/api.doctree +0 -0
  24. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/authors.doctree +0 -0
  25. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/contributing.doctree +0 -0
  26. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/environment.pickle +0 -0
  27. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/file_structure.doctree +0 -0
  28. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/generated/modules.doctree +0 -0
  29. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/generated/shoestring_assembler.doctree +0 -0
  30. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/generated/shoestring_assembler.engine.doctree +0 -0
  31. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/generated/shoestring_assembler.interface.doctree +0 -0
  32. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/generated/shoestring_assembler.interface.events.doctree +0 -0
  33. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/generated/shoestring_assembler.model.doctree +0 -0
  34. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/generated/shoestring_assembler.model.schemas.doctree +0 -0
  35. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/generated/shoestring_assembler.view.cli_app.components.doctree +0 -0
  36. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/generated/shoestring_assembler.view.cli_app.doctree +0 -0
  37. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/generated/shoestring_assembler.view.cli_app.screens.doctree +0 -0
  38. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/generated/shoestring_assembler.view.doctree +0 -0
  39. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/generated/shoestring_assembler.view.plain_cli.doctree +0 -0
  40. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/history.doctree +0 -0
  41. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/index.doctree +0 -0
  42. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/installation.doctree +0 -0
  43. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/modules.doctree +0 -0
  44. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/recipe.doctree +0 -0
  45. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/setup.doctree +0 -0
  46. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/sources.doctree +0 -0
  47. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/usage.doctree +0 -0
  48. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/doctrees/user_config.doctree +0 -0
  49. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/api.md +0 -0
  50. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/authors.md +0 -0
  51. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/contributing.md +0 -0
  52. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/file_structure.md +0 -0
  53. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/generated/modules.md +0 -0
  54. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/generated/shoestring_assembler.engine.md +0 -0
  55. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/generated/shoestring_assembler.interface.events.md +0 -0
  56. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/generated/shoestring_assembler.interface.md +0 -0
  57. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/generated/shoestring_assembler.md +0 -0
  58. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/generated/shoestring_assembler.model.md +0 -0
  59. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/generated/shoestring_assembler.model.schemas.md +0 -0
  60. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/generated/shoestring_assembler.view.cli_app.components.md +0 -0
  61. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/generated/shoestring_assembler.view.cli_app.md +0 -0
  62. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/generated/shoestring_assembler.view.cli_app.screens.md +0 -0
  63. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/generated/shoestring_assembler.view.md +0 -0
  64. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/generated/shoestring_assembler.view.plain_cli.md +0 -0
  65. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/history.md +0 -0
  66. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/index.md +0 -0
  67. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/installation.md +0 -0
  68. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/modules.md +0 -0
  69. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/recipe.md +0 -0
  70. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/setup.md +0 -0
  71. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/sources.md +0 -0
  72. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/usage.md +0 -0
  73. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/_build/markdown/user_config.md +0 -0
  74. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/api.rst +0 -0
  75. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/authors.rst +0 -0
  76. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/conf.py +0 -0
  77. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/contributing.rst +0 -0
  78. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/file_structure.md +0 -0
  79. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/generated/modules.rst +0 -0
  80. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/generated/shoestring_assembler.engine.rst +0 -0
  81. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/generated/shoestring_assembler.interface.events.rst +0 -0
  82. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/generated/shoestring_assembler.interface.rst +0 -0
  83. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/generated/shoestring_assembler.model.rst +0 -0
  84. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/generated/shoestring_assembler.model.schemas.rst +0 -0
  85. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/generated/shoestring_assembler.rst +0 -0
  86. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/generated/shoestring_assembler.view.cli_app.components.rst +0 -0
  87. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/generated/shoestring_assembler.view.cli_app.rst +0 -0
  88. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/generated/shoestring_assembler.view.cli_app.screens.rst +0 -0
  89. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/generated/shoestring_assembler.view.plain_cli.rst +0 -0
  90. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/generated/shoestring_assembler.view.rst +0 -0
  91. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/history.rst +0 -0
  92. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/index.rst +0 -0
  93. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/installation.rst +0 -0
  94. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/make.bat +0 -0
  95. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/modules.rst +0 -0
  96. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/recipe.md +0 -0
  97. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/setup.md +0 -0
  98. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/sources.md +0 -0
  99. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/usage.rst +0 -0
  100. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/docs/user_config.md +0 -0
  101. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/cli.py +0 -0
  102. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/constants.py +0 -0
  103. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/engine/__init__.py +0 -0
  104. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/engine/action/assemble.py +0 -0
  105. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/engine/action/filesystem.py +0 -0
  106. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/engine/action/user_config.py +0 -0
  107. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/implementation/dsl/parser.out +0 -0
  108. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/implementation/dsl/parsetab.py +0 -0
  109. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/implementation/dsl/prompt_criteria.py +0 -0
  110. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/implementation/source/__init__.py +0 -0
  111. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/implementation/source/filesystem.py +0 -0
  112. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/implementation/source/git.py +0 -0
  113. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/implementation/vc/git.py +0 -0
  114. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/interface/__init__.py +0 -0
  115. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/interface/events/__init__.py +0 -0
  116. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/interface/events/_events.py +0 -0
  117. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/interface/events/audit.py +0 -0
  118. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/interface/events/input.py +0 -0
  119. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/interface/events/progress.py +0 -0
  120. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/interface/events/updates.py +0 -0
  121. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/interface/pipe/pipe.py +0 -0
  122. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/interface/signals.py +0 -0
  123. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/interface/state_machine/process.MD +0 -0
  124. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/model/__init__.py +0 -0
  125. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/model/_prompt_outputs.py +0 -0
  126. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/model/_prompt_questions.py +0 -0
  127. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/model/base_module.py +0 -0
  128. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/model/common.py +0 -0
  129. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/model/container.py +0 -0
  130. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/model/infrastructure_module.py +0 -0
  131. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/model/installed.py +0 -0
  132. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/model/prompts.py +0 -0
  133. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/model/recipe.py +0 -0
  134. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/model/schemas/__init__.py +0 -0
  135. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/model/schemas/meta.schema.json +0 -0
  136. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/model/schemas/recipe.schema.json +0 -0
  137. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/model/schemas/schema_validators.py +0 -0
  138. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/model/service_module.py +0 -0
  139. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/model/solution.py +0 -0
  140. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/model/source.py +0 -0
  141. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/model/user_config.py +0 -0
  142. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/solution_picker.py +0 -0
  143. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/utilities/minimal_mustache.py +0 -0
  144. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/utilities/path.py +0 -0
  145. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/__init__.py +0 -0
  146. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/cli_app/__init__.py +0 -0
  147. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/cli_app/components/__init__.py +0 -0
  148. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/cli_app/components/_bottom_bar.py +0 -0
  149. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/cli_app/layout.tcss +0 -0
  150. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/cli_app/screens/__init__.py +0 -0
  151. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/cli_app/screens/config.tcss +0 -0
  152. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/cli_app/screens/config_inputs.py +0 -0
  153. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/cli_app/screens/download.py +0 -0
  154. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/cli_app/screens/download.tcss +0 -0
  155. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/cli_app/screens/engine.py +0 -0
  156. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/cli_app/screens/engine.tcss +0 -0
  157. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/cli_app/screens/find_solution.py +0 -0
  158. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/cli_app/screens/home.py +0 -0
  159. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/cli_app/screens/home.tcss +0 -0
  160. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/cli_app/screens/select_update.py +0 -0
  161. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/cli_app/screens/solution_picker.py +0 -0
  162. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/cli_app/screens/solution_picker.tcss +0 -0
  163. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler/view/plain_cli/__init__.py +0 -0
  164. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler.egg-info/SOURCES.txt +0 -0
  165. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler.egg-info/dependency_links.txt +0 -0
  166. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler.egg-info/entry_points.txt +0 -0
  167. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler.egg-info/requires.txt +0 -0
  168. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/src/shoestring_assembler.egg-info/top_level.txt +0 -0
  169. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/tests/__init__.py +0 -0
  170. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/tests/console.log +0 -0
  171. {shoestring_assembler-0.3.3 → shoestring_assembler-0.4.0}/tests/test_shoestring_assembler.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shoestring_assembler
3
- Version: 0.3.3
3
+ Version: 0.4.0
4
4
  Summary: Assembles Shoestring Solutions from a solution recipe
5
5
  Author-email: Greg Hawkridge <gth24@cam.ac.uk>
6
6
  Maintainer-email: Greg Hawkridge <gth24@cam.ac.uk>
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "shoestring_assembler"
9
- version = "0.3.3"
9
+ version = "0.4.0"
10
10
  description = "Assembles Shoestring Solutions from a solution recipe"
11
11
  readme = "README.rst"
12
12
  authors = [
@@ -2,4 +2,4 @@
2
2
 
3
3
  __author__ = """Greg Hawkridge"""
4
4
  __email__ = 'gth24@cam.ac.uk'
5
- __version__ = '0.3.3'
5
+ __version__ = '0.4.0'
@@ -149,6 +149,11 @@ class Display:
149
149
  def finalise_log(cls):
150
150
  cls.file_console.save_html(Constants.CONSOLE_LOG)
151
151
 
152
+ @classmethod
153
+ def get_log_text(cls) -> str:
154
+ """Returns all recorded console output as a plain text string."""
155
+ return cls.file_console.export_text(styles=True,clear=False) #clear = False to prevent wiping log
156
+
152
157
 
153
158
  from rich.prompt import PromptBase, Confirm, InvalidResponse
154
159
 
@@ -8,7 +8,7 @@ from shoestring_assembler.interface.events import (
8
8
  Progress,
9
9
  ProgressSection,
10
10
  FatalError,
11
- Input
11
+ Input,
12
12
  )
13
13
  from shoestring_assembler.interface.events.progress import ProgressBar
14
14
 
@@ -47,7 +47,7 @@ class Docker:
47
47
  subprocess.run(command)
48
48
 
49
49
  @classmethod
50
- def compose(cls,solution_model:SolutionModel,args):
50
+ def compose(cls, solution_model: SolutionModel, args):
51
51
  command = [*Docker.base_compose_command(solution_model), *args]
52
52
  subprocess.run(command)
53
53
 
@@ -61,11 +61,11 @@ class Docker:
61
61
  ]
62
62
 
63
63
  await Audit.submit("docker::build::command", Audit.Type.Log, command=command)
64
-
64
+
65
65
  process = subprocess.Popen(
66
66
  command, stdout=subprocess.PIPE, stderr=subprocess.PIPE
67
67
  )
68
-
68
+
69
69
  progress_trackers: dict[str, ProgressBar] = {}
70
70
  network_status_map = {"Creating": 2, "Created": 4}
71
71
  container_status_map = {
@@ -75,8 +75,10 @@ class Docker:
75
75
  "Started": 4,
76
76
  "Running": 4,
77
77
  }
78
-
79
- progress_line_re = re.compile(r"^\[(?P<image>[a-zA-Z0-9_-]+) [a-zA-Z0-9_-]* (?P<progress>\d+)/(?P<total>\d+)](?P<rest>.*)")
78
+
79
+ progress_line_re = re.compile(
80
+ r"^\[(?P<image>[a-zA-Z0-9_-]+) [a-zA-Z0-9_-]* (?P<progress>\d+)/(?P<total>\d+)](?P<rest>.*)"
81
+ )
80
82
 
81
83
  async def handle_line(line_content):
82
84
  # filter on message type:
@@ -87,28 +89,31 @@ class Docker:
87
89
  if match:
88
90
  # identify image
89
91
  target_image = match["image"]
90
-
92
+
91
93
  # extract progress stage and total
92
- progress = int(match["progress"])
94
+ progress = int(match["progress"])
93
95
  total = int(match["total"])
94
-
96
+
95
97
  # create progress tracker if none
96
98
  if target_image not in progress_trackers:
97
- progress_trackers[target_image] = await Progress.new_tracker(
98
- target_image.strip(), target_image, total, progress
99
+ progress_trackers[target_image] = (
100
+ await Progress.new_tracker(
101
+ target_image.strip(),
102
+ target_image,
103
+ total,
104
+ progress,
105
+ )
106
+ )
107
+ else: # update progress
108
+ await progress_trackers[target_image].update(
109
+ progress, total
99
110
  )
100
- else: #update progress
101
- await progress_trackers[target_image].update(progress,total)
102
111
  elif "error" in line_content and line_content["error"] == True:
103
112
  await Update.ErrorMsg(line_content["message"])
104
-
105
-
106
113
 
107
114
  async with ProgressSection("start"):
108
115
  await parse_docker_json_progress(process, handle_line)
109
-
110
-
111
-
116
+
112
117
  # out_buffer = bytearray()
113
118
  # err_buffer = bytearray()
114
119
  # last_update = datetime.datetime.now()
@@ -172,7 +177,9 @@ class Docker:
172
177
  if not solution_model.fs.compose_file.exists():
173
178
  raise FatalError("Solution hasn't been assembled yet")
174
179
 
175
- if solution_model.compose_spec is None: # possibly redundant - but I don't have time to check if the file can exist without the spec
180
+ if (
181
+ solution_model.compose_spec is None
182
+ ): # possibly redundant - but I don't have time to check if the file can exist without the spec
176
183
  raise FatalError(
177
184
  "Solution doesn't have a compose file - this is likely because it hasn't been assembled"
178
185
  )
@@ -194,7 +201,9 @@ class Docker:
194
201
  services_requiring_setup_with_no_dependencies = [
195
202
  service_name
196
203
  for service_name in services_requiring_setup
197
- if not all_services[service_name].get("depends_on") # handles None and empty list
204
+ if not all_services[service_name].get(
205
+ "depends_on"
206
+ ) # handles None and empty list
198
207
  ]
199
208
 
200
209
  services_requiring_setup_with_dependencies = {
@@ -203,7 +212,10 @@ class Docker:
203
212
  if service_name not in services_requiring_setup_with_no_dependencies
204
213
  }
205
214
 
206
- services_requiring_setup_sorted_by_dependency = [*services_not_requiring_setup, *services_requiring_setup_with_no_dependencies]
215
+ services_requiring_setup_sorted_by_dependency = [
216
+ *services_not_requiring_setup,
217
+ *services_requiring_setup_with_no_dependencies,
218
+ ]
207
219
 
208
220
  while len(services_requiring_setup_with_dependencies) > 0:
209
221
  progress_made = False
@@ -246,7 +258,9 @@ class Docker:
246
258
 
247
259
  try:
248
260
  await handle_async_setup_process(process)
249
- except asyncio.CancelledError: # ensure subprocess is terminated on task cancellation
261
+ except (
262
+ asyncio.CancelledError
263
+ ): # ensure subprocess is terminated on task cancellation
250
264
  process.kill()
251
265
  await process.wait()
252
266
  raise
@@ -265,6 +279,7 @@ class Docker:
265
279
  "--progress",
266
280
  "json",
267
281
  "up",
282
+ "--no-build",
268
283
  "-d",
269
284
  "--remove-orphans",
270
285
  ]
@@ -294,7 +309,7 @@ class Docker:
294
309
  )
295
310
  status = line_content.get("status")
296
311
  text = line_content.get("text")
297
-
312
+
298
313
  if target_type == "Network":
299
314
  value = network_status_map.get(status)
300
315
  if value is None:
@@ -363,6 +378,7 @@ class Docker:
363
378
  except json.JSONDecodeError:
364
379
  return None
365
380
 
381
+
366
382
  async def handle_async_setup_process(process: asyncio.subprocess.Process):
367
383
  while process.returncode == None:
368
384
  response = await process.stdout.readline()
@@ -448,7 +464,7 @@ async def parse_docker_json_progress(process: subprocess.Popen, callback):
448
464
  await callback(line_content)
449
465
  except:
450
466
  await Update.ErrorMsg(err_line)
451
-
467
+
452
468
  await asyncio.sleep(0) # yield
453
469
  process.poll()
454
470
 
@@ -19,7 +19,10 @@ class GetSolutionUsingGit:
19
19
  "0" # prevents hanging on username input if url invalid
20
20
  )
21
21
 
22
- clone_dir = spec["download_location"] / Path(spec["name"].replace(" ", ""))
22
+ clone_dir:Path = spec["download_location"] / Path(spec["name"].replace(" ", ""))
23
+
24
+ if clone_dir.exists():
25
+ return "exists",None
23
26
 
24
27
  command = [
25
28
  "git",
@@ -40,7 +43,7 @@ class GetSolutionUsingGit:
40
43
 
41
44
  await git_clone_progress(process, spec["name"])
42
45
 
43
- return process.returncode == 0, clone_dir
46
+ return "success" if process.returncode == 0 else "failed", clone_dir
44
47
 
45
48
  @classmethod
46
49
  def available_versions(cls, url, minimum_version):
@@ -196,10 +196,13 @@ class EngineInternal:
196
196
  name = spec["name"]
197
197
  await Update.StepHeading(f"Downloading {name}")
198
198
  async with ProgressSection("download_solution"):
199
- success, location = await GetSolutionUsingGit.download(spec)
200
- if success:
199
+ result, location = await GetSolutionUsingGit.download(spec)
200
+ if result == "success":
201
201
  await Update.SuccessMsg("Downloaded")
202
202
  return location
203
+ if result == "exists":
204
+ await Update.NotifyMsg("Solution already present in download location - choose another location")
205
+ return False
203
206
  else:
204
207
  raise FatalError("Unable to download solution")
205
208
 
@@ -213,6 +216,7 @@ class EngineInternal:
213
216
  outcome = "continue"
214
217
  except NoRecipeError as err:
215
218
  outcome = err
219
+ return outcome
216
220
 
217
221
  async def check_for_updates(self):
218
222
  await Update.StepHeading("Checking for updates")
@@ -230,7 +234,7 @@ class EngineInternal:
230
234
  await self.solution_model.version_control.update()
231
235
 
232
236
  async def assemble_solution(self):
233
- await Update.StageHeading("Assembling Solution")
237
+ await Update.StageHeading("Assembling Solution")
234
238
  await SolutionFilesystem.verify(
235
239
  self.solution_model, check_source_download=not self.do_load_sources
236
240
  )
@@ -276,9 +280,6 @@ class EngineInternal:
276
280
  await Update.StepHeading("Stopping solution")
277
281
  await Docker.stop(self.solution_model)
278
282
 
279
- await Update.StepHeading("Building solution")
280
- await Docker.build(self.solution_model)
281
-
282
283
  await Update.StepHeading("Starting solution")
283
284
  started = await Docker.start(self.solution_model)
284
285
  if started:
@@ -216,7 +216,10 @@ class DownloadSolution(EngineStep):
216
216
  self.solution_spec = solution_spec
217
217
 
218
218
  def resolve(self, download_path):
219
- super().resolve(AddInstalledSolution(download_path,self.solution_spec["name"]))
219
+ if download_path == False:
220
+ super().resolve(ChooseDownloadLocation(self.solution_spec))
221
+ else:
222
+ super().resolve(AddInstalledSolution(download_path,self.solution_spec["name"]))
220
223
 
221
224
 
222
225
  class PromptToAssemble(UIStep):
@@ -1,5 +1,7 @@
1
1
  from pathlib import Path
2
2
  import sys
3
+ import stat
4
+ import platform
3
5
 
4
6
  from shoestring_assembler.interface.events.audit import Audit
5
7
  from shoestring_assembler.interface.events import Update,FatalError
@@ -231,6 +233,7 @@ async def check_dir(abs_path: Path):
231
233
  async def check_or_create_dir(abs_path):
232
234
  success = True
233
235
  outcome = "created"
236
+ explanation = None
234
237
  try:
235
238
  abs_path.mkdir(exist_ok=False)
236
239
  except FileExistsError:
@@ -243,16 +246,100 @@ async def check_or_create_dir(abs_path):
243
246
  except FileNotFoundError:
244
247
  success = False
245
248
  outcome = "error_no_parent"
249
+ except PermissionError:
250
+ success = False
251
+ outcome = "error_no_permission"
252
+ explanation = diagnose_mkdir_permission_error(abs_path)
253
+ except:
254
+ success = False
255
+ outcome = "unexpected_error"
246
256
 
247
257
  await Audit.submit(
248
258
  "check_or_create_dir",
249
259
  Audit.Type.from_boolean(success),
250
260
  dir=abs_path,
251
261
  outcome=outcome,
262
+ explanation= explanation,
252
263
  )
253
264
  return success
254
265
 
255
266
 
267
+ def diagnose_mkdir_permission_error(target_path: Path) -> str:
268
+ path = Path(target_path).resolve()
269
+ parent = path.parent
270
+
271
+ # 1. Check parent path status
272
+ if not parent.exists():
273
+ return f"Parent path '{parent}' does not exist."
274
+ if not parent.is_dir():
275
+ return f"Parent path '{parent}' is a file, not a directory."
276
+
277
+ # 2. Check basic OS access flags
278
+ can_write = os.access(parent, os.W_OK)
279
+ can_exec = os.access(parent, os.X_OK)
280
+
281
+ issues = []
282
+ if not can_write:
283
+ issues.append("missing Write (w) access on parent directory")
284
+ if not can_exec:
285
+ issues.append("missing Execute/Search (x) access on parent directory")
286
+
287
+ # 3. Unix/Linux/macOS POSIX Mode & Ownership Inspection
288
+ if platform.system() != "Windows" and hasattr(os, "geteuid"):
289
+ try:
290
+ st = parent.stat()
291
+ euid = os.geteuid()
292
+ egid = os.getegid()
293
+ groups = set(os.getgroups()) | {egid}
294
+
295
+ owner_id = st.st_uid
296
+ group_id = st.st_gid
297
+ mode = st.st_mode
298
+ octal_mode = oct(stat.S_IMODE(mode))
299
+
300
+ # Determine which permission set applies to current process
301
+ if euid == owner_id:
302
+ role = "owner"
303
+ has_w = bool(mode & stat.S_IWUSR)
304
+ has_x = bool(mode & stat.S_IXUSR)
305
+ elif group_id in groups:
306
+ role = f"group member (GID {group_id})"
307
+ has_w = bool(mode & stat.S_IWGRP)
308
+ has_x = bool(mode & stat.S_IXGRP)
309
+ else:
310
+ role = "other/world"
311
+ has_w = bool(mode & stat.S_IWOTH)
312
+ has_x = bool(mode & stat.S_IXOTH)
313
+
314
+ details = (
315
+ f"Process running as UID {euid} / GID {egid}. "
316
+ f"\nParent directory '{parent}' is owned by UID {owner_id} / GID {group_id} "
317
+ f"with mode {octal_mode}. \nEvaluated role: '{role}' "
318
+ f"\n(Write={has_w}, Execute={has_x})."
319
+ )
320
+ issues.append(details)
321
+ except Exception as e:
322
+ issues.append(f"Could not stat parent permissions: {e}")
323
+
324
+ # 4. Windows specific details
325
+ elif platform.system() == "Windows":
326
+ try:
327
+ import ctypes
328
+
329
+ is_admin = ctypes.windll.shell32.IsUserAnAdmin() != 0
330
+ issues.append(f"Process running as Administrator: {is_admin}.")
331
+ except Exception:
332
+ pass
333
+
334
+ if not issues:
335
+ issues.append(
336
+ "Access blocked by external policy (e.g., Read-only mount, "
337
+ "SELinux/AppArmor policy, macOS Full Disk Access, or locked path)."
338
+ )
339
+
340
+ return f"Cannot create '{path.name}': \n" + "\n".join(issues)
341
+
342
+
256
343
  # if using python prior to 3.12 then pathlib doesn't have a walk function
257
344
  if sys.version_info[0] == 3 and sys.version_info[1] < 12:
258
345
  import os
@@ -107,7 +107,6 @@ class SolutionAssemblerApp(App):
107
107
  screen = screens.NewName(self.engine.solution_model)
108
108
  case _:
109
109
  raise Exception(step)
110
- screen = None
111
110
 
112
111
  def get_result(result) -> None:
113
112
  """Called when screen is dismissed."""
@@ -1,9 +1,11 @@
1
1
  from textual import on
2
2
  from textual.app import ComposeResult
3
- from textual.containers import Grid
3
+ from textual.containers import Grid, Container, HorizontalGroup
4
4
  from textual.screen import ModalScreen
5
- from textual.widgets import Button, Label, Input
5
+ from textual.widgets import Button, Label, Input, RichLog
6
+ from rich.text import Text
6
7
  from shoestring_assembler.interface.signals import BackSignal
8
+ from shoestring_assembler.display import Display
7
9
 
8
10
 
9
11
  class ConfirmModal(ModalScreen):
@@ -64,11 +66,32 @@ class FatalErrorModal(ModalScreen):
64
66
  self.exit = exit
65
67
 
66
68
  def compose(self) -> ComposeResult:
67
- yield Grid(
68
- Label(self.error_message, id="prompt"),
69
- Button("Exit", variant="error", id="exit"),
70
- classes="modal_dialog",
71
- )
69
+ with Container(classes="modal_dialog modal_error"):
70
+ yield Label(self.error_message, id="prompt")
71
+ yield Label("Execution Log:", classes="log_header")
72
+ yield RichLog(
73
+ id="error_log_view", wrap=True, highlight=True, auto_scroll=True,
74
+ )
75
+
76
+ with HorizontalGroup(classes="button_bar"):
77
+ yield Button("Copy Logs", variant="primary", id="copy_logs")
78
+ yield Button("Exit", variant="error", id="exit")
79
+
80
+ def on_mount(self) -> None:
81
+ log_view = self.query_one("#error_log_view", RichLog)
82
+ log_view.write(Text.from_ansi(Display.get_log_text()))
83
+ # Immediately scroll to the bottom of initial content
84
+ log_view.scroll_end(animate=False)
85
+
86
+ @on(Button.Pressed, "#copy_logs")
87
+ def handle_copy_logs(self) -> None:
88
+ # 1. Try Textual's native clipboard function (OSC 52 sequence)
89
+ logs = Display.get_log_text()
90
+ try:
91
+ self.app.copy_to_clipboard(logs)
92
+ self.notify("Logs copied to clipboard!", title="Copied")
93
+ except Exception:
94
+ self.notify("Failed to copy logs to clipboard.", title="Error", severity="error")
72
95
 
73
96
  @on(Button.Pressed, "#exit")
74
97
  def handle_exit(self) -> None:
@@ -0,0 +1,92 @@
1
+ .modal_screen {
2
+ align: center middle;
3
+ }
4
+
5
+ .modal_dialog {
6
+ grid-size: 2;
7
+ grid-gutter: 1 2;
8
+ grid-rows: 50% 50%;
9
+ padding: 0 1;
10
+ width: 60;
11
+ height: 11;
12
+ border: thick $background 80%;
13
+ background: $surface;
14
+ }
15
+
16
+ .modal_input{
17
+ height: 15;
18
+ grid-rows: 3 3 5;
19
+ }
20
+
21
+ .modal_large{
22
+ height: 80%;
23
+ width:60%
24
+ }
25
+
26
+ #prompt {
27
+ column-span: 2;
28
+ height: 1fr;
29
+ width: 1fr;
30
+ content-align: center middle;
31
+ }
32
+
33
+ #text_input{
34
+ column-span: 2;
35
+ height: 1fr;
36
+ }
37
+
38
+ #yes, #no {
39
+ width: 100%;
40
+ }
41
+
42
+
43
+ .modal_error {
44
+ layout: vertical;
45
+ width: 90%;
46
+ height: 90%;
47
+ border: red;
48
+ }
49
+
50
+ .modal_error #prompt {
51
+ width: 100%;
52
+ height: auto;
53
+ content-align: center middle;
54
+ text-style: bold;
55
+ color: white;
56
+ background: $error;
57
+ padding: 1 2;
58
+ margin-bottom: 1;
59
+ }
60
+
61
+ .modal_error .log_header {
62
+ width: 100%;
63
+ height: auto; /* Keeps header compact */
64
+ text-style: bold;
65
+ color: $text;
66
+ }
67
+
68
+ .modal_error #error_log_view {
69
+ height: 1fr; /* Takes all remaining free space */
70
+ min-height: 5;
71
+ border: solid $secondary;
72
+ margin: 1 0;
73
+ }
74
+
75
+ .modal_error .button_bar {
76
+ width: 100%;
77
+ height: auto;
78
+ margin-top: 1;
79
+ align-horizontal: right;
80
+ }
81
+
82
+ .modal_error #exit {
83
+ width: 1fr; /* Takes up all remaining width */
84
+ content-align: center middle; /* Centers button content vertically & horizontally */
85
+ text-align: center; /* Centers text label inside button */
86
+ }
87
+
88
+ .modal_error .button_bar Button {
89
+ margin-left: 1;
90
+ width: auto;
91
+ min-width: 16;
92
+ }
@@ -23,6 +23,10 @@ def audit_event_to_string(event: AuditEvent):
23
23
  return f"[red]\[error - parent directory not present] {dir}"
24
24
  case "error_cant_create":
25
25
  return f"[red]\[error - can't create] {dir} (there may be a file with the same name)"
26
+ case "error_no_permission":
27
+ return f"[red]\[error - permissions error] {dir} \n{event.extra.get('explanation')}"
28
+ case "unexpected_error":
29
+ return f"[red]\[error] {dir} (Something entirely unexpected went wrong)"
26
30
 
27
31
  case [*_, "check_file"]:
28
32
  file = event.extra.get("file")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shoestring_assembler
3
- Version: 0.3.3
3
+ Version: 0.4.0
4
4
  Summary: Assembles Shoestring Solutions from a solution recipe
5
5
  Author-email: Greg Hawkridge <gth24@cam.ac.uk>
6
6
  Maintainer-email: Greg Hawkridge <gth24@cam.ac.uk>
@@ -1,45 +0,0 @@
1
- .modal_screen {
2
- align: center middle;
3
- }
4
-
5
- .modal_dialog {
6
- grid-size: 2;
7
- grid-gutter: 1 2;
8
- grid-rows: 50% 50%;
9
- padding: 0 1;
10
- width: 60;
11
- height: 11;
12
- border: thick $background 80%;
13
- background: $surface;
14
- }
15
-
16
- .modal_input{
17
- height: 15;
18
- grid-rows: 3 3 5;
19
- }
20
-
21
- .modal_large{
22
- height: 80%;
23
- width:60%
24
- }
25
-
26
- #prompt {
27
- column-span: 2;
28
- height: 1fr;
29
- width: 1fr;
30
- content-align: center middle;
31
- }
32
-
33
- #text_input{
34
- column-span: 2;
35
- height: 1fr;
36
- }
37
-
38
- #yes, #no {
39
- width: 100%;
40
- }
41
-
42
- #exit {
43
- column-span: 2;
44
- width: 100%;
45
- }