womm-cli 5.0.0__tar.gz → 5.1.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 (241) hide show
  1. {womm_cli-5.0.0 → womm_cli-5.1.0}/PKG-INFO +1 -1
  2. {womm_cli-5.0.0 → womm_cli-5.1.0}/pyproject.toml +1 -1
  3. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/_version.py +1 -1
  4. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/pyproject.toml.jinja +6 -0
  5. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if with_ci %}.github{% endif %}/workflows/ci.yml.jinja +2 -2
  6. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/commands/project/create.py +3 -1
  7. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/commands/project/setup.py +62 -42
  8. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/commands/system/context/__init__.py +1 -0
  9. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/commands/system/deps.py +1 -0
  10. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/commands/system/system.py +1 -0
  11. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/interfaces/project/create_interface.py +1 -0
  12. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/interfaces/project/manager_interface.py +3 -0
  13. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/interfaces/project/setup_interface.py +35 -11
  14. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/project/env_utils.py +62 -2
  15. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/project/python_environment_service.py +33 -0
  16. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/ui/project/__init__.py +2 -0
  17. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/ui/project/create/create_completion_summaries.py +7 -1
  18. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/ui/project/project_wizard.py +11 -0
  19. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/ui/project/setup/setup_completion_summaries.py +62 -1
  20. {womm_cli-5.0.0 → womm_cli-5.1.0}/uv.lock +1 -1
  21. {womm_cli-5.0.0 → womm_cli-5.1.0}/.github/dependabot.yml +0 -0
  22. {womm_cli-5.0.0 → womm_cli-5.1.0}/.github/workflows/00-install-deps.yml +0 -0
  23. {womm_cli-5.0.0 → womm_cli-5.1.0}/.github/workflows/01-ci.yml +0 -0
  24. {womm_cli-5.0.0 → womm_cli-5.1.0}/.github/workflows/02-tag-sync.yml +0 -0
  25. {womm_cli-5.0.0 → womm_cli-5.1.0}/.github/workflows/03-publish.yml +0 -0
  26. {womm_cli-5.0.0 → womm_cli-5.1.0}/.github/workflows/04-docs.yml +0 -0
  27. {womm_cli-5.0.0 → womm_cli-5.1.0}/.github/workflows/README.md +0 -0
  28. {womm_cli-5.0.0 → womm_cli-5.1.0}/.gitignore +0 -0
  29. {womm_cli-5.0.0 → womm_cli-5.1.0}/.markdownlint.yaml +0 -0
  30. {womm_cli-5.0.0 → womm_cli-5.1.0}/.pre-commit-config.yaml +0 -0
  31. {womm_cli-5.0.0 → womm_cli-5.1.0}/.python-version +0 -0
  32. {womm_cli-5.0.0 → womm_cli-5.1.0}/.scripts/dev/check_merge_conflict.py +0 -0
  33. {womm_cli-5.0.0 → womm_cli-5.1.0}/.scripts/dev/check_toml.py +0 -0
  34. {womm_cli-5.0.0 → womm_cli-5.1.0}/.scripts/dev/check_yaml.py +0 -0
  35. {womm_cli-5.0.0 → womm_cli-5.1.0}/.scripts/dev/generate_architecture_graph.py +0 -0
  36. {womm_cli-5.0.0 → womm_cli-5.1.0}/.scripts/dev/update_version.py +0 -0
  37. {womm_cli-5.0.0 → womm_cli-5.1.0}/AGENTS.md +0 -0
  38. {womm_cli-5.0.0 → womm_cli-5.1.0}/LICENSE +0 -0
  39. {womm_cli-5.0.0 → womm_cli-5.1.0}/README.md +0 -0
  40. {womm_cli-5.0.0 → womm_cli-5.1.0}/TODO.md +0 -0
  41. {womm_cli-5.0.0 → womm_cli-5.1.0}/cliff.toml +0 -0
  42. {womm_cli-5.0.0 → womm_cli-5.1.0}/mkdocs.yml +0 -0
  43. {womm_cli-5.0.0 → womm_cli-5.1.0}/requirements-dev.in +0 -0
  44. {womm_cli-5.0.0 → womm_cli-5.1.0}/requirements.in +0 -0
  45. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/__init__.py +0 -0
  46. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/__main__.py +0 -0
  47. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/meta/copier.yml +0 -0
  48. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/meta/template/README.md.jinja +0 -0
  49. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/meta/template/copier.yml.jinja +0 -0
  50. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/meta/template/template/.gitkeep +0 -0
  51. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/copier.yml +0 -0
  52. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/.gitignore.jinja +0 -0
  53. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/.nvmrc.jinja +0 -0
  54. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/.prettierignore.jinja +0 -0
  55. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/README.md.jinja +0 -0
  56. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/biome.json.jinja +0 -0
  57. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/eslint.config.mjs.jinja +0 -0
  58. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/index.html.jinja +0 -0
  59. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/package.json.jinja +0 -0
  60. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/prettier.config.mjs.jinja +0 -0
  61. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/src/App.jsx.jinja +0 -0
  62. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/src/App.tsx.jinja +0 -0
  63. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/src/App.vue.jinja +0 -0
  64. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/src/index.jsx.jinja +0 -0
  65. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/src/index.tsx.jinja +0 -0
  66. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/src/main.js.jinja +0 -0
  67. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/src/main.ts.jinja +0 -0
  68. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/tsconfig.json.jinja +0 -0
  69. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/vite.config.mjs.jinja +0 -0
  70. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/{% if with_ci %}.github{% endif %}/workflows/ci.yml.jinja +0 -0
  71. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/{% if with_tests %}tests{% endif %}/smoke.test.js.jinja +0 -0
  72. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/{% if with_tests %}tests{% endif %}/smoke.test.ts.jinja +0 -0
  73. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/{% if with_vscode %}.vscode{% endif %}/extensions.json.jinja +0 -0
  74. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/javascript/template/{% if with_vscode %}.vscode{% endif %}/settings.json.jinja +0 -0
  75. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/copier.yml +0 -0
  76. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/.gitignore.jinja +0 -0
  77. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/.pre-commit-config.yaml.jinja +0 -0
  78. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/.python-version.jinja +0 -0
  79. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/README.md.jinja +0 -0
  80. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if framework == 'django' %}manage.py{% endif %}.jinja +0 -0
  81. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/__init__.py.jinja +0 -0
  82. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/asgi.py.jinja +0 -0
  83. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/core/__init__.py.jinja +0 -0
  84. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/core/apps.py.jinja +0 -0
  85. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/core/models.py.jinja +0 -0
  86. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/core/views.py.jinja +0 -0
  87. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/py.typed +0 -0
  88. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/settings.py.jinja +0 -0
  89. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/urls.py.jinja +0 -0
  90. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if not use_src_layout %}{{ package_name }}{% endif %}/wsgi.py.jinja +0 -0
  91. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/__init__.py.jinja +0 -0
  92. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/asgi.py.jinja +0 -0
  93. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/core/__init__.py.jinja +0 -0
  94. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/core/apps.py.jinja +0 -0
  95. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/core/models.py.jinja +0 -0
  96. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/core/views.py.jinja +0 -0
  97. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/py.typed +0 -0
  98. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/settings.py.jinja +0 -0
  99. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/urls.py.jinja +0 -0
  100. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if use_src_layout %}src{% endif %}/{{ package_name }}/wsgi.py.jinja +0 -0
  101. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if with_tests %}tests{% endif %}/test_smoke.py.jinja +0 -0
  102. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if with_vscode %}.vscode{% endif %}/extensions.json.jinja +0 -0
  103. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/assets/copier/official/python/template/{% if with_vscode %}.vscode{% endif %}/settings.json.jinja +0 -0
  104. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/bin/refresh_env.cmd +0 -0
  105. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/cli.py +0 -0
  106. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/commands/__init__.py +0 -0
  107. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/commands/core/__init__.py +0 -0
  108. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/commands/core/doctor.py +0 -0
  109. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/commands/core/path.py +0 -0
  110. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/commands/project/__init__.py +0 -0
  111. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/commands/project/template.py +0 -0
  112. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/commands/system/__init__.py +0 -0
  113. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/commands/system/context/backup.py +0 -0
  114. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/commands/system/context/inventory.py +0 -0
  115. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/commands/system/context/registration.py +0 -0
  116. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/exceptions/__init__.py +0 -0
  117. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/exceptions/common/__init__.py +0 -0
  118. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/exceptions/common/command_service.py +0 -0
  119. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/exceptions/common/file_service.py +0 -0
  120. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/exceptions/common/security_service.py +0 -0
  121. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/exceptions/common/validation_service.py +0 -0
  122. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/exceptions/context/__init__.py +0 -0
  123. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/exceptions/context/context_service.py +0 -0
  124. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/exceptions/project/__init__.py +0 -0
  125. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/exceptions/project/project_service.py +0 -0
  126. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/exceptions/system/__init__.py +0 -0
  127. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/exceptions/system/system_service.py +0 -0
  128. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/interfaces/__init__.py +0 -0
  129. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/interfaces/context/__init__.py +0 -0
  130. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/interfaces/context/menu_interface.py +0 -0
  131. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/interfaces/context/registry_interface.py +0 -0
  132. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/interfaces/context/script_detector_interface.py +0 -0
  133. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/interfaces/context/script_registrar.py +0 -0
  134. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/interfaces/core/__init__.py +0 -0
  135. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/interfaces/core/doctor_interface.py +0 -0
  136. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/interfaces/dependencies/__init__.py +0 -0
  137. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/interfaces/dependencies/deps_interface.py +0 -0
  138. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/interfaces/project/__init__.py +0 -0
  139. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/interfaces/project/detection_interface.py +0 -0
  140. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/interfaces/project/template_store_interface.py +0 -0
  141. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/interfaces/system/__init__.py +0 -0
  142. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/interfaces/system/detector_interface.py +0 -0
  143. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/interfaces/system/environment_interface.py +0 -0
  144. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/interfaces/system/path_interface.py +0 -0
  145. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/__init__.py +0 -0
  146. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/common/__init__.py +0 -0
  147. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/common/base_validation_service.py +0 -0
  148. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/common/command_runner_service.py +0 -0
  149. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/common/file_scanner_service.py +0 -0
  150. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/common/security_validator_service.py +0 -0
  151. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/context/__init__.py +0 -0
  152. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/context/backup_entries.py +0 -0
  153. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/context/parameters.py +0 -0
  154. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/context/registry_paths.py +0 -0
  155. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/context/registry_service.py +0 -0
  156. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/context/validation_service.py +0 -0
  157. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/dependencies/__init__.py +0 -0
  158. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/dependencies/probe.py +0 -0
  159. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/project/__init__.py +0 -0
  160. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/project/copier_project_creation_service.py +0 -0
  161. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/project/destination_guard.py +0 -0
  162. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/project/detection_service.py +0 -0
  163. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/project/javascript_environment_service.py +0 -0
  164. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/project/setup_profile_resolver.py +0 -0
  165. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/project/template_store_service.py +0 -0
  166. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/project/validation_service.py +0 -0
  167. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/system/__init__.py +0 -0
  168. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/system/detector_service.py +0 -0
  169. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/system/environment_service.py +0 -0
  170. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/services/system/path_service.py +0 -0
  171. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/__init__.py +0 -0
  172. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/configs/__init__.py +0 -0
  173. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/configs/context/__init__.py +0 -0
  174. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/configs/context/context_config.py +0 -0
  175. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/configs/context/context_file_types_config.py +0 -0
  176. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/configs/context/context_limits_config.py +0 -0
  177. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/configs/context/context_paths_config.py +0 -0
  178. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/configs/context/context_types_config.py +0 -0
  179. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/configs/context/script_config.py +0 -0
  180. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/configs/dependencies/__init__.py +0 -0
  181. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/configs/dependencies/runtime_config.py +0 -0
  182. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/configs/dependencies/runtime_package_manager_config.py +0 -0
  183. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/configs/logging_config.py +0 -0
  184. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/configs/project/__init__.py +0 -0
  185. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/configs/project/project_config.py +0 -0
  186. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/configs/project/project_structure_config.py +0 -0
  187. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/configs/project/python_project_config.py +0 -0
  188. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/configs/security/__init__.py +0 -0
  189. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/configs/security/security_patterns_config.py +0 -0
  190. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/configs/system/__init__.py +0 -0
  191. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/configs/system/system_detector_config.py +0 -0
  192. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/configs/system/system_environment_config.py +0 -0
  193. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/models/__init__.py +0 -0
  194. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/models/template_source.py +0 -0
  195. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/paths.py +0 -0
  196. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/results/__init__.py +0 -0
  197. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/results/base.py +0 -0
  198. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/results/command_results.py +0 -0
  199. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/results/context_results.py +0 -0
  200. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/results/dependency_results.py +0 -0
  201. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/results/doctor_results.py +0 -0
  202. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/results/file_results.py +0 -0
  203. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/results/project_results.py +0 -0
  204. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/results/security_results.py +0 -0
  205. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/results/system_results.py +0 -0
  206. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/results/template_results.py +0 -0
  207. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/shared/runtime.py +0 -0
  208. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/ui/__init__.py +0 -0
  209. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/ui/common/__init__.py +0 -0
  210. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/ui/common/interactive_menu.py +0 -0
  211. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/ui/common/logging.py +0 -0
  212. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/ui/common/prompts.py +0 -0
  213. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/ui/context/__init__.py +0 -0
  214. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/ui/context/display.py +0 -0
  215. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/ui/context/menu_display.py +0 -0
  216. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/ui/context/wizard.py +0 -0
  217. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/ui/project/templates/template_store_display.py +0 -0
  218. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/ui/system/__init__.py +0 -0
  219. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/ui/system/display.py +0 -0
  220. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/ui/system/path_display.py +0 -0
  221. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/utils/__init__.py +0 -0
  222. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/utils/common/__init__.py +0 -0
  223. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/utils/common/file_scanner_utils.py +0 -0
  224. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/utils/common/path_resolver_utils.py +0 -0
  225. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/utils/common/safe_fs_utils.py +0 -0
  226. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/utils/context/__init__.py +0 -0
  227. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/utils/context/core_utils.py +0 -0
  228. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/utils/context/icon_utils.py +0 -0
  229. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/utils/project/__init__.py +0 -0
  230. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/utils/project/asset_utils.py +0 -0
  231. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/utils/project/core_utils.py +0 -0
  232. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/utils/project/file_utils.py +0 -0
  233. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/utils/project/platform_utils.py +0 -0
  234. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/utils/project/validation_utils.py +0 -0
  235. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/utils/security/__init__.py +0 -0
  236. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/utils/security/security_validation_utils.py +0 -0
  237. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/utils/system/__init__.py +0 -0
  238. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/utils/system/detector_utils.py +0 -0
  239. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/utils/system/environment_utils.py +0 -0
  240. {womm_cli-5.0.0 → womm_cli-5.1.0}/src/womm/utils/system/path_utils.py +0 -0
  241. {womm_cli-5.0.0 → womm_cli-5.1.0}/uv.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: womm-cli
3
- Version: 5.0.0
3
+ Version: 5.1.0
4
4
  Summary: Universal development tools for Python and JavaScript - Automatic installation, cross-platform configuration, global commands
5
5
  Project-URL: Homepage, https://github.com/neuraaak/WOMM
6
6
  Project-URL: Documentation, https://neuraaak.github.io/WOMM/
@@ -14,7 +14,7 @@ build-backend = "hatchling.build"
14
14
 
15
15
  [project]
16
16
  name = "womm-cli"
17
- version = "5.0.0"
17
+ version = "5.1.0"
18
18
  description = "Universal development tools for Python and JavaScript - Automatic installation, cross-platform configuration, global commands"
19
19
  readme = "README.md"
20
20
  license = { text = "MIT" }
@@ -7,4 +7,4 @@
7
7
 
8
8
  from __future__ import annotations
9
9
 
10
- __version__ = "5.0.0"
10
+ __version__ = "5.1.0"
@@ -57,6 +57,12 @@ packages = ["src/{{ package_name }}"]
57
57
  {%- else %}
58
58
  packages = ["{{ package_name }}"]
59
59
  {%- endif %}
60
+ {%- if use_uv %}
61
+
62
+ [tool.uv]
63
+ # uv builds and installs this project into its environment.
64
+ package = true
65
+ {%- endif %}
60
66
 
61
67
  [tool.ruff]
62
68
  target-version = "py{{ python_version | replace('.', '') }}"
@@ -18,7 +18,7 @@ jobs:
18
18
  - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
19
19
  {%- if use_uv %}
20
20
  - name: Set up uv
21
- uses: astral-sh/setup-uv@18d369b23da25a81e9458561248e1aafff6a70fa # v10.3.1
21
+ uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
22
22
  with:
23
23
  python-version: {% raw %}${{ matrix.python-version }}{% endraw %}
24
24
  enable-cache: true
@@ -46,7 +46,7 @@ jobs:
46
46
  run: uv build
47
47
  {%- else %}
48
48
  - name: Set up Python
49
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
49
+ uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
50
50
  with:
51
51
  python-version: {% raw %}${{ matrix.python-version }}{% endraw %}
52
52
  - name: Install dependencies
@@ -116,7 +116,9 @@ def create_command(
116
116
  defaults=defaults,
117
117
  setup=setup,
118
118
  )
119
- render_project_creation_result(result, verbose=verbose)
119
+ render_project_creation_result(
120
+ result, verbose=verbose, suggest_setup=not (setup or pretend)
121
+ )
120
122
  if not result.success:
121
123
  raise SystemExit(1)
122
124
 
@@ -27,9 +27,16 @@ from ezplog import LogLevel
27
27
 
28
28
  # Local imports
29
29
  from ...interfaces import ProjectManagerInterface
30
- from ...services.project.setup_profile_resolver import list_setup_identifiers
30
+ from ...services.project.setup_profile_resolver import (
31
+ list_setup_identifiers,
32
+ resolve_setup_profile,
33
+ )
31
34
  from ...ui.common import ezpl, ezprinter
32
- from ...ui.project import ProjectWizard, print_project_setup_result
35
+ from ...ui.project import (
36
+ ProjectWizard,
37
+ print_project_setup_result,
38
+ print_setup_steps_hint,
39
+ )
33
40
 
34
41
  # ///////////////////////////////////////////////////////////////
35
42
  # COMMAND GROUPS
@@ -87,7 +94,10 @@ def setup_detect(
87
94
  interactive: bool,
88
95
  verbose: bool,
89
96
  ) -> None:
90
- """🔍 Auto-detect project type and configure development environment."""
97
+ """🔍 Detect the project type and show the setup steps available for it.
98
+
99
+ Use -I to run the guided setup on the detected type.
100
+ """
91
101
  # Configure verbose mode if requested
92
102
  if verbose:
93
103
  ezpl.set_level(LogLevel.DEBUG.label)
@@ -179,6 +189,11 @@ def setup_detect(
179
189
  is_flag=True,
180
190
  help="Initialize the Git repository and install its pre-commit hooks",
181
191
  )
192
+ @click.option(
193
+ "--setup-vscode",
194
+ is_flag=True,
195
+ help="Write the VS Code settings and recommended extensions",
196
+ )
182
197
  @click.option(
183
198
  "-v",
184
199
  "--verbose",
@@ -191,9 +206,14 @@ def setup_python(
191
206
  virtual_env: bool,
192
207
  install_deps: bool,
193
208
  setup_git_hooks: bool,
209
+ setup_vscode: bool,
194
210
  verbose: bool,
195
211
  ) -> None:
196
- """🐍 Configure existing Python project with development environment."""
212
+ """🐍 Configure existing Python project with development environment.
213
+
214
+ Every step is opt-in: pass the flags of the steps to run. Without any,
215
+ the project is only checked and nothing is written.
216
+ """
197
217
  # Configure verbose mode if requested
198
218
  if verbose:
199
219
  ezpl.set_level(LogLevel.DEBUG.label)
@@ -214,6 +234,7 @@ def setup_python(
214
234
  "virtual_env": virtual_env,
215
235
  "install_deps": install_deps,
216
236
  "setup_git_hooks": setup_git_hooks,
237
+ "setup_vscode": setup_vscode,
217
238
  }
218
239
  success = _run_direct_setup(project_manager, "python", project_path, options)
219
240
  if not success:
@@ -263,6 +284,11 @@ def setup_python(
263
284
  is_flag=True,
264
285
  help="Initialize the Git repository",
265
286
  )
287
+ @click.option(
288
+ "--setup-vscode",
289
+ is_flag=True,
290
+ help="Write the VS Code settings and recommended extensions",
291
+ )
266
292
  @click.option(
267
293
  "-v",
268
294
  "--verbose",
@@ -275,9 +301,14 @@ def setup_javascript(
275
301
  interactive: bool,
276
302
  install_deps: bool,
277
303
  setup_git_hooks: bool,
304
+ setup_vscode: bool,
278
305
  verbose: bool,
279
306
  ) -> None:
280
- """🟨 Configure existing JavaScript project with development environment."""
307
+ """🟨 Configure existing JavaScript project with development environment.
308
+
309
+ Every step is opt-in: pass the flags of the steps to run. Without any,
310
+ the project is only checked and nothing is written.
311
+ """
281
312
  # Configure verbose mode if requested
282
313
  if verbose:
283
314
  ezpl.set_level(LogLevel.DEBUG.label)
@@ -319,6 +350,7 @@ def setup_javascript(
319
350
  options = {
320
351
  "install_deps": install_deps,
321
352
  "setup_git_hooks": setup_git_hooks,
353
+ "setup_vscode": setup_vscode,
322
354
  }
323
355
  success = _run_direct_setup(
324
356
  project_manager, project_type_value, project_path, options
@@ -355,28 +387,7 @@ def _run_interactive_setup(
355
387
  ezprinter.error("Invalid options returned by wizard")
356
388
  return False
357
389
 
358
- def _coerce_bool(value: object) -> bool:
359
- if isinstance(value, str):
360
- return value.strip().lower() in {"1", "true", "yes", "y", "on"}
361
- return bool(value)
362
-
363
- virtual_env = _coerce_bool(options.get("virtual_env", False))
364
- install_deps = _coerce_bool(options.get("install_deps", False))
365
- setup_git_hooks = _coerce_bool(options.get("setup_git_hooks", False))
366
-
367
- result = project_manager.setup_project(
368
- project_type=project_type,
369
- project_path=project_path,
370
- virtual_env=virtual_env,
371
- install_deps=install_deps,
372
- setup_git_hooks=setup_git_hooks,
373
- )
374
-
375
- if result.success:
376
- print_project_setup_result(result)
377
- return True
378
- ezprinter.error(f"Failed to configure {project_type} project: {result.error}")
379
- return False
390
+ return _setup_and_report(project_manager, project_type, project_path, options)
380
391
 
381
392
 
382
393
  # ///////////////////////////////////////////////////////////////
@@ -391,30 +402,39 @@ def _run_direct_setup(
391
402
  options: dict[str, Any] | None = None,
392
403
  ) -> bool:
393
404
  """Run direct project setup."""
405
+ return _setup_and_report(project_manager, project_type, project_path, options or {})
394
406
 
395
- if options is None:
396
- options = {}
407
+
408
+ def _setup_and_report(
409
+ project_manager: ProjectManagerInterface,
410
+ project_type: str,
411
+ project_path: Path,
412
+ options: dict[str, Any],
413
+ ) -> bool:
414
+ """Run the requested setup steps, or point to their flags when none is."""
397
415
 
398
416
  def _coerce_bool(value: object) -> bool:
399
417
  if isinstance(value, str):
400
418
  return value.strip().lower() in {"1", "true", "yes", "y", "on"}
401
419
  return bool(value)
402
420
 
403
- virtual_env = _coerce_bool(options.get("virtual_env", False))
404
- install_deps = _coerce_bool(options.get("install_deps", False))
405
- setup_git_hooks = _coerce_bool(options.get("setup_git_hooks", False))
421
+ steps = {
422
+ name: _coerce_bool(options.get(name, False))
423
+ for name in ("virtual_env", "install_deps", "setup_git_hooks", "setup_vscode")
424
+ }
406
425
 
407
- # Configure project
426
+ # With no step, setup_project only checks the project: nothing is written.
408
427
  result = project_manager.setup_project(
409
- project_type=project_type,
410
- project_path=project_path,
411
- virtual_env=virtual_env,
412
- install_deps=install_deps,
413
- setup_git_hooks=setup_git_hooks,
428
+ project_type=project_type, project_path=project_path, **steps
414
429
  )
415
430
 
416
- if result.success:
431
+ if not result.success:
432
+ ezprinter.error(f"Failed to configure {project_type} project: {result.error}")
433
+ return False
434
+ if any(steps.values()):
417
435
  print_project_setup_result(result)
418
- return True
419
- ezprinter.error(f"Failed to configure {project_type} project: {result.error}")
420
- return False
436
+ else:
437
+ profile = resolve_setup_profile(project_type)
438
+ language = profile.language if profile else "javascript"
439
+ print_setup_steps_hint(language, project_path)
440
+ return True
@@ -35,6 +35,7 @@ _NON_WINDOWS_MESSAGE = "Context menu management is Windows-specific"
35
35
 
36
36
 
37
37
  @click.group(invoke_without_command=True)
38
+ @click.help_option("-h", "--help")
38
39
  @click.pass_context
39
40
  def context_group(ctx: click.Context) -> None:
40
41
  """Windows context menu management."""
@@ -43,6 +43,7 @@ from ...ui.system import (
43
43
 
44
44
 
45
45
  @click.group(invoke_without_command=True)
46
+ @click.help_option("-h", "--help")
46
47
  @click.pass_context
47
48
  def deps_group(ctx: click.Context) -> None:
48
49
  """
@@ -39,6 +39,7 @@ from ...ui.system import (
39
39
 
40
40
 
41
41
  @click.group(invoke_without_command=True)
42
+ @click.help_option("-h", "--help")
42
43
  @click.pass_context
43
44
  def system_group(ctx: click.Context) -> None:
44
45
  """System detection and prerequisites."""
@@ -145,6 +145,7 @@ class ProjectCreateInterface:
145
145
  virtual_env=True,
146
146
  install_deps=True,
147
147
  setup_git_hooks=True,
148
+ setup_vscode=True,
148
149
  )
149
150
  if result and result.success:
150
151
  return list(result.warnings or [])
@@ -70,6 +70,7 @@ class ProjectManagerInterface:
70
70
  virtual_env: bool = False,
71
71
  install_deps: bool = False,
72
72
  setup_git_hooks: bool = False,
73
+ setup_vscode: bool = False,
73
74
  **kwargs,
74
75
  ) -> ProjectSetupResult:
75
76
  """
@@ -81,6 +82,7 @@ class ProjectManagerInterface:
81
82
  virtual_env: Whether to create virtual environment (Python only)
82
83
  install_deps: Whether to install dependencies
83
84
  setup_git_hooks: Whether to set up Git hooks
85
+ setup_vscode: Whether to write the VS Code configuration
84
86
  **kwargs: Additional project-specific options
85
87
 
86
88
  Returns:
@@ -92,5 +94,6 @@ class ProjectManagerInterface:
92
94
  virtual_env=virtual_env,
93
95
  install_deps=install_deps,
94
96
  setup_git_hooks=setup_git_hooks,
97
+ setup_vscode=setup_vscode,
95
98
  **kwargs,
96
99
  )
@@ -38,7 +38,7 @@ from ...services.project.copier_project_creation_service import (
38
38
  CopierProjectCreationService,
39
39
  ProjectCreationRequest,
40
40
  )
41
- from ...services.project.env_utils import get_virtual_environment_path
41
+ from ...services.project.env_utils import get_virtual_environment_path, uses_uv
42
42
  from ...services.project.setup_profile_resolver import (
43
43
  SetupProfile,
44
44
  resolve_setup_profile,
@@ -86,6 +86,7 @@ class ProjectSetupInterface:
86
86
  virtual_env: bool = False,
87
87
  install_deps: bool = False,
88
88
  setup_git_hooks: bool = False,
89
+ setup_vscode: bool = False,
89
90
  template_answers: Mapping[str, object] | None = None,
90
91
  **kwargs, # noqa: ARG002
91
92
  ) -> ProjectSetupResult:
@@ -97,6 +98,7 @@ class ProjectSetupInterface:
97
98
  virtual_env: Whether to create virtual environment (Python only)
98
99
  install_deps: Whether to install dependencies, dev ones included
99
100
  setup_git_hooks: Whether to initialize Git (and pre-commit hooks for Python)
101
+ setup_vscode: Whether to write the VS Code configuration
100
102
  template_answers: Answers from a preceding Copier render, used only
101
103
  to preserve its variant in generated editor configuration.
102
104
  **kwargs: Additional project-specific options
@@ -163,16 +165,17 @@ class ProjectSetupInterface:
163
165
  warnings = []
164
166
 
165
167
  # Copy VSCode configuration
166
- try:
167
- self._copy_vscode_config(
168
- project_path,
169
- profile,
170
- template_answers=template_answers,
171
- )
172
- tools_configured.append("vscode")
173
- except Exception as e:
174
- logger.warning(f"Failed to copy VSCode config: {e}")
175
- warnings.append(f"VSCode configuration skipped: {e}")
168
+ if setup_vscode:
169
+ try:
170
+ self._copy_vscode_config(
171
+ project_path,
172
+ profile,
173
+ template_answers=template_answers,
174
+ )
175
+ tools_configured.append("vscode")
176
+ except Exception as e:
177
+ logger.warning(f"Failed to copy VSCode config: {e}")
178
+ warnings.append(f"VSCode configuration skipped: {e}")
176
179
 
177
180
  # Set up project based on language family
178
181
  if profile.language == "python":
@@ -181,6 +184,7 @@ class ProjectSetupInterface:
181
184
  virtual_env=virtual_env,
182
185
  install_deps=install_deps,
183
186
  setup_git_hooks=setup_git_hooks,
187
+ use_uv=uses_uv(project_path),
184
188
  )
185
189
  else:
186
190
  result = self._setup_javascript_project(
@@ -235,6 +239,7 @@ class ProjectSetupInterface:
235
239
  virtual_env: bool = False,
236
240
  install_deps: bool = False,
237
241
  setup_git_hooks: bool = False,
242
+ use_uv: bool = False,
238
243
  ) -> dict[str, list[str]]:
239
244
  """Set up Python project.
240
245
 
@@ -243,6 +248,7 @@ class ProjectSetupInterface:
243
248
  virtual_env: Whether to create virtual environment
244
249
  install_deps: Whether to install dependencies, dev ones included
245
250
  setup_git_hooks: Whether to initialize Git and install pre-commit hooks
251
+ use_uv: Whether uv manages the project's environment instead of pip
246
252
 
247
253
  Returns:
248
254
  dict: Metadata about setup with 'files_modified', 'tools_configured', 'warnings'
@@ -251,6 +257,24 @@ class ProjectSetupInterface:
251
257
  tools_configured = []
252
258
  warnings = []
253
259
 
260
+ # uv creates the environment and installs it in one run, so it
261
+ # replaces both pip steps below.
262
+ if use_uv and (virtual_env or install_deps):
263
+ try:
264
+ uv_result = self._python_service.setup_uv_environment(
265
+ project_path, install_deps
266
+ )
267
+ if uv_result.success:
268
+ tools_configured.append("venv")
269
+ if install_deps:
270
+ tools_configured.append("dependencies")
271
+ else:
272
+ warnings.append("uv environment setup failed")
273
+ except Exception as e:
274
+ logger.warning(f"Failed to set up the uv environment: {e}")
275
+ warnings.append(f"uv environment setup skipped: {e}")
276
+ virtual_env = install_deps = False
277
+
254
278
  # Setup virtual environment
255
279
  if virtual_env:
256
280
  try:
@@ -9,7 +9,7 @@ Pure utility functions for setting up project environments.
9
9
 
10
10
  This module provides stateless functions for:
11
11
  - Python virtual environment creation and management
12
- - Dependency installation (pip, and npm, pnpm, yarn or bun)
12
+ - Dependency installation (pip or uv, and npm, pnpm, yarn or bun)
13
13
  """
14
14
 
15
15
  from __future__ import annotations
@@ -217,7 +217,8 @@ def install_python_dependencies(
217
217
 
218
218
  commands = []
219
219
  if "project" in pyproject:
220
- commands.append([str(pip_exe), "install", "."])
220
+ # Editable, as the generated README and CI install it.
221
+ commands.append([str(pip_exe), "install", "-e", "."])
221
222
  if "dev" in pyproject.get("dependency-groups", {}):
222
223
  commands.append([str(pip_exe), "install", "--group", "dev"])
223
224
 
@@ -233,6 +234,63 @@ def install_python_dependencies(
233
234
  return True
234
235
 
235
236
 
237
+ def uses_uv(project_path: Path) -> bool:
238
+ """Tell whether a Python project is managed by uv.
239
+
240
+ A freshly rendered uv project has no lockfile yet: the official template
241
+ marks it with a ``[tool.uv]`` table instead.
242
+
243
+ Args:
244
+ project_path: Path to the project
245
+
246
+ Returns:
247
+ bool: True when the project has a ``uv.lock`` or a ``[tool.uv]`` table
248
+ """
249
+ if (project_path / "uv.lock").is_file():
250
+ return True
251
+ pyproject_file = project_path / PythonProjectConfig.PYPROJECT_FILE
252
+ if not pyproject_file.is_file():
253
+ return False
254
+ try:
255
+ with pyproject_file.open("rb") as file:
256
+ pyproject = tomllib.load(file)
257
+ except tomllib.TOMLDecodeError:
258
+ return False
259
+ return "uv" in pyproject.get("tool", {})
260
+
261
+
262
+ def sync_uv_environment(project_path: Path, install_deps: bool) -> None:
263
+ """Create the project environment with uv, and install it on request.
264
+
265
+ uv picks the interpreter from ``.python-version`` and ``requires-python``,
266
+ and ``uv sync`` writes the ``uv.lock`` the generated CI requires.
267
+
268
+ Args:
269
+ project_path: Path to the project
270
+ install_deps: Run ``uv sync --group dev`` instead of ``uv venv``
271
+
272
+ Raises:
273
+ FileNotFoundError: If uv is not on PATH
274
+ RuntimeError: If the uv command fails
275
+ """
276
+ uv = shutil.which("uv")
277
+ if not uv:
278
+ raise FileNotFoundError(
279
+ "uv is not installed or not on PATH; install uv, then run "
280
+ "'uv sync' in the project"
281
+ )
282
+
283
+ command = (
284
+ [uv, "sync", "--group", "dev"]
285
+ if install_deps
286
+ else [uv, "venv", "--allow-existing"]
287
+ )
288
+ result = CommandRunnerService().run(command, cwd=str(project_path))
289
+ if not result:
290
+ raise RuntimeError(f"uv {command[1]} failed: {result.stderr}")
291
+ logger.info(f"Python environment ready with uv {command[1]}")
292
+
293
+
236
294
  # ///////////////////////////////////////////////////////////////
237
295
  # JAVASCRIPT ENVIRONMENT FUNCTIONS
238
296
  # ///////////////////////////////////////////////////////////////
@@ -323,4 +381,6 @@ __all__ = [
323
381
  "get_virtual_environment_path",
324
382
  "install_javascript_dependencies",
325
383
  "install_python_dependencies",
384
+ "sync_uv_environment",
385
+ "uses_uv",
326
386
  ]
@@ -35,6 +35,7 @@ from .env_utils import (
35
35
  find_venv_executable,
36
36
  get_virtual_environment_path,
37
37
  install_python_dependencies,
38
+ sync_uv_environment,
38
39
  )
39
40
 
40
41
  # ///////////////////////////////////////////////////////////////
@@ -149,6 +150,38 @@ class PythonEnvironmentService:
149
150
  details=f"Exception type: {type(e).__name__}",
150
151
  ) from e
151
152
 
153
+ def setup_uv_environment(
154
+ self, project_path: Path, install_deps: bool
155
+ ) -> ProjectCreationResult:
156
+ """Create the environment of a uv project, and install it on request.
157
+
158
+ Args:
159
+ project_path: Path to the project
160
+ install_deps: Install the dependencies, dev group included
161
+
162
+ Returns:
163
+ ProjectCreationResult: Result of the uv run
164
+
165
+ Raises:
166
+ ProjectServiceError: If uv is missing or fails
167
+ """
168
+ try:
169
+ sync_uv_environment(project_path, install_deps)
170
+ return ProjectCreationResult(
171
+ success=True,
172
+ message="Python environment set up with uv",
173
+ project_path=project_path,
174
+ project_type="python",
175
+ )
176
+
177
+ except Exception as e:
178
+ logger.exception("Unexpected error in setup_uv_environment")
179
+ raise ProjectServiceError(
180
+ operation="setup_uv_environment",
181
+ reason=str(e),
182
+ details=f"Exception type: {type(e).__name__}",
183
+ ) from e
184
+
152
185
  def setup_git_repository(self, project_path: Path) -> ProjectCreationResult:
153
186
  """Initialize a Git repository for the project.
154
187
 
@@ -22,6 +22,7 @@ from .project_wizard import ProjectWizard
22
22
  from .setup.setup_completion_summaries import (
23
23
  print_project_setup_result,
24
24
  print_setup_completion_summary,
25
+ print_setup_steps_hint,
25
26
  )
26
27
  from .templates.template_store_display import (
27
28
  render_template_list,
@@ -36,6 +37,7 @@ __all__ = [
36
37
  "ProjectWizard",
37
38
  "print_project_setup_result",
38
39
  "print_setup_completion_summary",
40
+ "print_setup_steps_hint",
39
41
  "render_project_creation_result",
40
42
  "render_template_list",
41
43
  "render_template_result",
@@ -27,13 +27,14 @@ from ...common.logging import ezprinter
27
27
 
28
28
 
29
29
  def render_project_creation_result(
30
- result: ProjectCreationResult, *, verbose: bool = False
30
+ result: ProjectCreationResult, *, verbose: bool = False, suggest_setup: bool = False
31
31
  ) -> None:
32
32
  """Render the outcome of a template-driven project creation.
33
33
 
34
34
  Args:
35
35
  result: Outcome returned by ``ProjectCreateInterface.create_project``.
36
36
  verbose: Whether to also print the project template identifier.
37
+ suggest_setup: Whether to point to `womm setup` for the environment.
37
38
  """
38
39
  if not result.success:
39
40
  ezprinter.error(result.error or "Project creation failed")
@@ -46,6 +47,11 @@ def render_project_creation_result(
46
47
  ezprinter.info(f"Template: {result.project_type}")
47
48
  for warning in result.warnings or []:
48
49
  ezprinter.warning(warning)
50
+ if suggest_setup and result.project_path is not None:
51
+ ezprinter.info(
52
+ "To prepare its environment (venv, dependencies, git, VS Code), "
53
+ f'run womm setup detect -p "{result.project_path}" to list the steps'
54
+ )
49
55
 
50
56
 
51
57
  # ///////////////////////////////////////////////////////////////
@@ -100,6 +100,11 @@ class ProjectWizard:
100
100
  default=True,
101
101
  ).execute()
102
102
 
103
+ options["setup_vscode"] = inquirer.confirm(
104
+ message="Write VS Code settings?",
105
+ default=True,
106
+ ).execute()
107
+
103
108
  else:
104
109
  # Fallback to simple input
105
110
  if is_python:
@@ -114,6 +119,9 @@ class ProjectWizard:
114
119
  setup_git_hooks = input("Setup Git hooks? (Y/n): ").strip().lower()
115
120
  options["setup_git_hooks"] = setup_git_hooks in ["", "y", "yes"]
116
121
 
122
+ setup_vscode = input("Write VS Code settings? (Y/n): ").strip().lower()
123
+ options["setup_vscode"] = setup_vscode in ["", "y", "yes"]
124
+
117
125
  return options
118
126
 
119
127
  @staticmethod
@@ -146,6 +154,9 @@ class ProjectWizard:
146
154
  table.add_row(
147
155
  "Setup Git hooks", "Yes" if options.get("setup_git_hooks") else "No"
148
156
  )
157
+ table.add_row(
158
+ "VS Code settings", "Yes" if options.get("setup_vscode") else "No"
159
+ )
149
160
 
150
161
  console.print("")
151
162
  console.print(table)