uv-forger 0.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 (170) hide show
  1. uv_forger-0.1.0/.github/DISCUSSION_TEMPLATE/q-a.yml +60 -0
  2. uv_forger-0.1.0/.github/ISSUE_TEMPLATE/bug_report.yml +81 -0
  3. uv_forger-0.1.0/.github/ISSUE_TEMPLATE/feature_request.yml +44 -0
  4. uv_forger-0.1.0/.github/PULL_REQUEST_TEMPLATE.md +27 -0
  5. uv_forger-0.1.0/.github/workflows/ci.yml +30 -0
  6. uv_forger-0.1.0/.github/workflows/publish.yml +17 -0
  7. uv_forger-0.1.0/.gitignore +43 -0
  8. uv_forger-0.1.0/.python-version +1 -0
  9. uv_forger-0.1.0/CHANGELOG.md +30 -0
  10. uv_forger-0.1.0/CODE-OF-CONDUCT.md +128 -0
  11. uv_forger-0.1.0/CONTRIBUTING.md +101 -0
  12. uv_forger-0.1.0/LICENSE +21 -0
  13. uv_forger-0.1.0/PKG-INFO +281 -0
  14. uv_forger-0.1.0/README.md +232 -0
  15. uv_forger-0.1.0/docs/assets/images/add-packages-dialog.png +0 -0
  16. uv_forger-0.1.0/docs/assets/images/build-summary.png +0 -0
  17. uv_forger-0.1.0/docs/assets/images/log-viewer.png +0 -0
  18. uv_forger-0.1.0/docs/assets/images/lookslikethis.png +0 -0
  19. uv_forger-0.1.0/docs/assets/images/main-window.png +0 -0
  20. uv_forger-0.1.0/docs/assets/images/overflow-menu.png +0 -0
  21. uv_forger-0.1.0/docs/assets/images/presets-dialog.png +0 -0
  22. uv_forger-0.1.0/docs/assets/images/settings-dialog.png +0 -0
  23. uv_forger-0.1.0/docs/assets/images/ui-framework-dialog.png +0 -0
  24. uv_forger-0.1.0/docs/changelog.md +30 -0
  25. uv_forger-0.1.0/docs/contributing.md +61 -0
  26. uv_forger-0.1.0/docs/guide/git-integration.md +35 -0
  27. uv_forger-0.1.0/docs/guide/post-build.md +40 -0
  28. uv_forger-0.1.0/docs/guide/presets.md +43 -0
  29. uv_forger-0.1.0/docs/guide/pypi-checker.md +23 -0
  30. uv_forger-0.1.0/docs/guide/settings.md +56 -0
  31. uv_forger-0.1.0/docs/guide/templates.md +109 -0
  32. uv_forger-0.1.0/docs/index.md +37 -0
  33. uv_forger-0.1.0/docs/installation.md +34 -0
  34. uv_forger-0.1.0/docs/quickstart.md +88 -0
  35. uv_forger-0.1.0/docs/reference/frameworks-and-types.md +99 -0
  36. uv_forger-0.1.0/docs/reference/keyboard-shortcuts.md +26 -0
  37. uv_forger-0.1.0/docs/reference/troubleshooting.md +56 -0
  38. uv_forger-0.1.0/mkdocs.yml +65 -0
  39. uv_forger-0.1.0/pyproject.toml +78 -0
  40. uv_forger-0.1.0/tests/__init__.py +0 -0
  41. uv_forger-0.1.0/tests/core/__init__.py +0 -0
  42. uv_forger-0.1.0/tests/core/test_boilerplate_resolver.py +188 -0
  43. uv_forger-0.1.0/tests/core/test_constants.py +72 -0
  44. uv_forger-0.1.0/tests/core/test_history_manager.py +156 -0
  45. uv_forger-0.1.0/tests/core/test_models.py +255 -0
  46. uv_forger-0.1.0/tests/core/test_preset_manager.py +306 -0
  47. uv_forger-0.1.0/tests/core/test_project_builder.py +297 -0
  48. uv_forger-0.1.0/tests/core/test_pypi_checker.py +176 -0
  49. uv_forger-0.1.0/tests/core/test_settings_manager.py +212 -0
  50. uv_forger-0.1.0/tests/core/test_state.py +240 -0
  51. uv_forger-0.1.0/tests/core/test_state_selection.py +100 -0
  52. uv_forger-0.1.0/tests/core/test_template_loader.py +253 -0
  53. uv_forger-0.1.0/tests/core/test_template_merger.py +216 -0
  54. uv_forger-0.1.0/tests/core/test_validator.py +127 -0
  55. uv_forger-0.1.0/tests/core/test_validator_folders.py +101 -0
  56. uv_forger-0.1.0/tests/default.json +34 -0
  57. uv_forger-0.1.0/tests/handlers/__init__.py +0 -0
  58. uv_forger-0.1.0/tests/handlers/test_build_handlers.py +178 -0
  59. uv_forger-0.1.0/tests/handlers/test_feature_handlers.py +214 -0
  60. uv_forger-0.1.0/tests/handlers/test_filesystem_handler.py +388 -0
  61. uv_forger-0.1.0/tests/handlers/test_folder_handlers.py +285 -0
  62. uv_forger-0.1.0/tests/handlers/test_git_handler.py +236 -0
  63. uv_forger-0.1.0/tests/handlers/test_history_handlers.py +225 -0
  64. uv_forger-0.1.0/tests/handlers/test_input_handlers.py +208 -0
  65. uv_forger-0.1.0/tests/handlers/test_preset_handlers.py +272 -0
  66. uv_forger-0.1.0/tests/handlers/test_ui_handler.py +2232 -0
  67. uv_forger-0.1.0/tests/handlers/test_uv_handler.py +426 -0
  68. uv_forger-0.1.0/tests/ui/__init__.py +1 -0
  69. uv_forger-0.1.0/tests/ui/test_dialogs.py +742 -0
  70. uv_forger-0.1.0/tests/utils/__init__.py +0 -0
  71. uv_forger-0.1.0/tests/utils/test_async_executor.py +140 -0
  72. uv_forger-0.1.0/uv.lock +916 -0
  73. uv_forger-0.1.0/uv_forge/__init__.py +3 -0
  74. uv_forger-0.1.0/uv_forge/assets/docs/ABOUT.md +54 -0
  75. uv_forger-0.1.0/uv_forge/assets/docs/App-Cheat-Sheet.md +157 -0
  76. uv_forger-0.1.0/uv_forge/assets/docs/HELP.md +316 -0
  77. uv_forger-0.1.0/uv_forge/assets/images/add-packages-dialog.png +0 -0
  78. uv_forger-0.1.0/uv_forge/assets/images/badge.png +0 -0
  79. uv_forger-0.1.0/uv_forge/assets/images/build-summary.png +0 -0
  80. uv_forger-0.1.0/uv_forge/assets/images/log-viewer.png +0 -0
  81. uv_forger-0.1.0/uv_forge/assets/images/lookslikethis.png +0 -0
  82. uv_forger-0.1.0/uv_forge/assets/images/main-window.png +0 -0
  83. uv_forger-0.1.0/uv_forge/assets/images/overflow-menu.png +0 -0
  84. uv_forger-0.1.0/uv_forge/assets/images/presets-dialog.png +0 -0
  85. uv_forger-0.1.0/uv_forge/assets/images/settings-dialog.png +0 -0
  86. uv_forger-0.1.0/uv_forge/assets/images/ui-framework-dialog.png +0 -0
  87. uv_forger-0.1.0/uv_forge/config/templates/boilerplate/common/README.md +19 -0
  88. uv_forger-0.1.0/uv_forge/config/templates/boilerplate/common/async_executor.py +25 -0
  89. uv_forger-0.1.0/uv_forge/config/templates/boilerplate/common/conftest.py +9 -0
  90. uv_forger-0.1.0/uv_forge/config/templates/boilerplate/common/constants.py +4 -0
  91. uv_forger-0.1.0/uv_forge/config/templates/boilerplate/common/main.py +10 -0
  92. uv_forger-0.1.0/uv_forge/config/templates/boilerplate/common/test_app.py +11 -0
  93. uv_forger-0.1.0/uv_forge/config/templates/boilerplate/project_types/cli_click/main.py +18 -0
  94. uv_forger-0.1.0/uv_forge/config/templates/boilerplate/project_types/cli_typer/main.py +15 -0
  95. uv_forger-0.1.0/uv_forge/config/templates/boilerplate/ui_frameworks/flet/README.md +21 -0
  96. uv_forger-0.1.0/uv_forge/config/templates/boilerplate/ui_frameworks/flet/components.py +20 -0
  97. uv_forger-0.1.0/uv_forge/config/templates/boilerplate/ui_frameworks/flet/logging_config.py +44 -0
  98. uv_forger-0.1.0/uv_forge/config/templates/boilerplate/ui_frameworks/flet/main.py +17 -0
  99. uv_forger-0.1.0/uv_forge/config/templates/boilerplate/ui_frameworks/flet/state.py +12 -0
  100. uv_forger-0.1.0/uv_forge/config/templates/default.json +34 -0
  101. uv_forger-0.1.0/uv_forge/config/templates/project_types/api_fastapi.json +67 -0
  102. uv_forger-0.1.0/uv_forge/config/templates/project_types/api_graphql.json +59 -0
  103. uv_forger-0.1.0/uv_forge/config/templates/project_types/api_grpc.json +63 -0
  104. uv_forger-0.1.0/uv_forge/config/templates/project_types/async_app.json +44 -0
  105. uv_forger-0.1.0/uv_forge/config/templates/project_types/basic_package.json +31 -0
  106. uv_forger-0.1.0/uv_forge/config/templates/project_types/bottle.json +42 -0
  107. uv_forger-0.1.0/uv_forge/config/templates/project_types/browser_automation.json +56 -0
  108. uv_forger-0.1.0/uv_forge/config/templates/project_types/cli_click.json +36 -0
  109. uv_forger-0.1.0/uv_forge/config/templates/project_types/cli_rich.json +44 -0
  110. uv_forger-0.1.0/uv_forge/config/templates/project_types/cli_typer.json +48 -0
  111. uv_forger-0.1.0/uv_forge/config/templates/project_types/computer_vision.json +79 -0
  112. uv_forger-0.1.0/uv_forge/config/templates/project_types/data_analysis.json +62 -0
  113. uv_forger-0.1.0/uv_forge/config/templates/project_types/django.json +60 -0
  114. uv_forger-0.1.0/uv_forge/config/templates/project_types/dl_pytorch.json +74 -0
  115. uv_forger-0.1.0/uv_forge/config/templates/project_types/dl_tensorflow.json +75 -0
  116. uv_forger-0.1.0/uv_forge/config/templates/project_types/fastapi.json +66 -0
  117. uv_forger-0.1.0/uv_forge/config/templates/project_types/flask.json +60 -0
  118. uv_forger-0.1.0/uv_forge/config/templates/project_types/ml_sklearn.json +62 -0
  119. uv_forger-0.1.0/uv_forge/config/templates/project_types/scraping.json +65 -0
  120. uv_forger-0.1.0/uv_forge/config/templates/project_types/task_scheduler.json +49 -0
  121. uv_forger-0.1.0/uv_forge/config/templates/project_types/testing.json +46 -0
  122. uv_forger-0.1.0/uv_forge/config/templates/ui_frameworks/customtkinter.json +25 -0
  123. uv_forger-0.1.0/uv_forge/config/templates/ui_frameworks/flet.json +62 -0
  124. uv_forger-0.1.0/uv_forge/config/templates/ui_frameworks/gradio.json +23 -0
  125. uv_forger-0.1.0/uv_forge/config/templates/ui_frameworks/kivy.json +24 -0
  126. uv_forger-0.1.0/uv_forge/config/templates/ui_frameworks/nicegui.json +30 -0
  127. uv_forger-0.1.0/uv_forge/config/templates/ui_frameworks/pygame.json +23 -0
  128. uv_forger-0.1.0/uv_forge/config/templates/ui_frameworks/pyqt6.json +23 -0
  129. uv_forger-0.1.0/uv_forge/config/templates/ui_frameworks/pyside6.json +24 -0
  130. uv_forger-0.1.0/uv_forge/config/templates/ui_frameworks/streamlit.json +29 -0
  131. uv_forger-0.1.0/uv_forge/config/templates/ui_frameworks/tkinter.json +16 -0
  132. uv_forger-0.1.0/uv_forge/core/__init__.py +5 -0
  133. uv_forger-0.1.0/uv_forge/core/async_executor.py +37 -0
  134. uv_forger-0.1.0/uv_forge/core/boilerplate_resolver.py +120 -0
  135. uv_forger-0.1.0/uv_forge/core/constants.py +173 -0
  136. uv_forger-0.1.0/uv_forge/core/history_manager.py +179 -0
  137. uv_forger-0.1.0/uv_forge/core/logging_config.py +51 -0
  138. uv_forger-0.1.0/uv_forge/core/models.py +240 -0
  139. uv_forger-0.1.0/uv_forge/core/preset_manager.py +399 -0
  140. uv_forger-0.1.0/uv_forge/core/pypi_checker.py +77 -0
  141. uv_forger-0.1.0/uv_forge/core/settings_manager.py +91 -0
  142. uv_forger-0.1.0/uv_forge/core/state.py +114 -0
  143. uv_forger-0.1.0/uv_forge/core/template_loader.py +147 -0
  144. uv_forger-0.1.0/uv_forge/core/template_merger.py +153 -0
  145. uv_forger-0.1.0/uv_forge/core/validator.py +133 -0
  146. uv_forger-0.1.0/uv_forge/handlers/__init__.py +1 -0
  147. uv_forger-0.1.0/uv_forge/handlers/build_handlers.py +692 -0
  148. uv_forger-0.1.0/uv_forge/handlers/feature_handlers.py +427 -0
  149. uv_forger-0.1.0/uv_forge/handlers/filesystem_handler.py +139 -0
  150. uv_forger-0.1.0/uv_forge/handlers/folder_handlers.py +341 -0
  151. uv_forger-0.1.0/uv_forge/handlers/git_handler.py +178 -0
  152. uv_forger-0.1.0/uv_forge/handlers/handler_base.py +183 -0
  153. uv_forger-0.1.0/uv_forge/handlers/input_handlers.py +166 -0
  154. uv_forger-0.1.0/uv_forge/handlers/option_handlers.py +307 -0
  155. uv_forger-0.1.0/uv_forge/handlers/package_handlers.py +227 -0
  156. uv_forger-0.1.0/uv_forge/handlers/project_builder.py +262 -0
  157. uv_forger-0.1.0/uv_forge/handlers/ui_handler.py +134 -0
  158. uv_forger-0.1.0/uv_forge/handlers/uv_handler.py +294 -0
  159. uv_forger-0.1.0/uv_forge/main.py +70 -0
  160. uv_forger-0.1.0/uv_forge/py.typed +0 -0
  161. uv_forger-0.1.0/uv_forge/ui/__init__.py +0 -0
  162. uv_forger-0.1.0/uv_forge/ui/components.py +841 -0
  163. uv_forger-0.1.0/uv_forge/ui/content_dialogs.py +196 -0
  164. uv_forger-0.1.0/uv_forge/ui/custom_dropdown.py +331 -0
  165. uv_forger-0.1.0/uv_forge/ui/dialog_data.py +238 -0
  166. uv_forger-0.1.0/uv_forge/ui/dialogs.py +2525 -0
  167. uv_forger-0.1.0/uv_forge/ui/file_picker.py +65 -0
  168. uv_forger-0.1.0/uv_forge/ui/theme_manager.py +86 -0
  169. uv_forger-0.1.0/uv_forge/ui/tree_builder.py +273 -0
  170. uv_forger-0.1.0/uv_forge/ui/ui_config.py +94 -0
@@ -0,0 +1,60 @@
1
+ title: "[Question] "
2
+ labels: ["question"]
3
+ body:
4
+ - type: markdown
5
+ attributes:
6
+ value: |
7
+ Thanks for your question! To help me give you the best answer, please fill out the sections below.
8
+
9
+ - type: textarea
10
+ id: question
11
+ attributes:
12
+ label: Your Question
13
+ description: What would you like to know? Be as specific as you can.
14
+ placeholder: "e.g. Why does my function return None instead of the list I expected?"
15
+ validations:
16
+ required: true
17
+
18
+ - type: textarea
19
+ id: code
20
+ attributes:
21
+ label: Your Code
22
+ description: Please paste the relevant Python code below. This is the most important thing I need to help you!
23
+ render: python
24
+ placeholder: |
25
+ def my_function():
26
+ # paste your code here
27
+ pass
28
+ validations:
29
+ required: true
30
+
31
+ - type: textarea
32
+ id: error
33
+ attributes:
34
+ label: Error Message or Unexpected Output
35
+ description: If you're seeing an error, paste the full traceback here. If the output is just wrong, describe what you expected vs. what you got.
36
+ render: shell
37
+ placeholder: |
38
+ Traceback (most recent call last):
39
+ ...
40
+ TypeError: ...
41
+ validations:
42
+ required: false
43
+
44
+ - type: textarea
45
+ id: tried
46
+ attributes:
47
+ label: What Have You Already Tried?
48
+ description: Share anything you've already attempted — it helps avoid suggestions you've already ruled out.
49
+ placeholder: "e.g. I tried changing X to Y but got the same result."
50
+ validations:
51
+ required: false
52
+
53
+ - type: input
54
+ id: python-version
55
+ attributes:
56
+ label: Python Version
57
+ description: What version of Python are you using? (Run `python --version` to check.)
58
+ placeholder: "e.g. 3.12.2"
59
+ validations:
60
+ required: false
@@ -0,0 +1,81 @@
1
+ name: Bug Report
2
+ description: Something isn't working as expected
3
+ title: "[Bug] "
4
+ labels: ["bug"]
5
+ body:
6
+ - type: markdown
7
+ attributes:
8
+ value: |
9
+ Thanks for taking the time to report a bug! The more detail you can provide, the easier it is to track down.
10
+
11
+ - type: textarea
12
+ id: description
13
+ attributes:
14
+ label: What happened?
15
+ description: A clear description of what the bug is.
16
+ placeholder: "e.g. The function returns None instead of the expected list."
17
+ validations:
18
+ required: true
19
+
20
+ - type: textarea
21
+ id: expected
22
+ attributes:
23
+ label: What did you expect to happen?
24
+ placeholder: "e.g. I expected the function to return a sorted list of strings."
25
+ validations:
26
+ required: true
27
+
28
+ - type: textarea
29
+ id: steps
30
+ attributes:
31
+ label: Steps to Reproduce
32
+ description: How can I reproduce the issue?
33
+ placeholder: |
34
+ 1. Run ...
35
+ 2. Call function with ...
36
+ 3. See error
37
+ validations:
38
+ required: true
39
+
40
+ - type: textarea
41
+ id: code
42
+ attributes:
43
+ label: Relevant Code
44
+ description: Paste any relevant Python code here.
45
+ render: python
46
+ placeholder: |
47
+ def my_function():
48
+ # paste your code here
49
+ pass
50
+ validations:
51
+ required: false
52
+
53
+ - type: textarea
54
+ id: error
55
+ attributes:
56
+ label: Error Message or Traceback
57
+ description: If you're seeing an error, paste the full traceback here.
58
+ render: shell
59
+ placeholder: |
60
+ Traceback (most recent call last):
61
+ ...
62
+ TypeError: ...
63
+ validations:
64
+ required: false
65
+
66
+ - type: input
67
+ id: python-version
68
+ attributes:
69
+ label: Python Version
70
+ description: What version of Python are you using? (Run `python --version` to check.)
71
+ placeholder: "e.g. 3.12.2"
72
+ validations:
73
+ required: false
74
+
75
+ - type: input
76
+ id: os
77
+ attributes:
78
+ label: Operating System
79
+ placeholder: "e.g. Windows 11, macOS 14, Ubuntu 22.04"
80
+ validations:
81
+ required: false
@@ -0,0 +1,44 @@
1
+ name: Feature Request
2
+ description: Suggest an idea or improvement for this project
3
+ title: "[Feature] "
4
+ labels: ["enhancement"]
5
+ body:
6
+ - type: markdown
7
+ attributes:
8
+ value: |
9
+ Thanks for the suggestion! Please fill out the sections below to help me understand what you have in mind.
10
+
11
+ - type: textarea
12
+ id: problem
13
+ attributes:
14
+ label: What problem does this solve?
15
+ description: Is your feature request related to a problem or limitation you've run into?
16
+ placeholder: "e.g. I find it frustrating when I have to manually do X every time..."
17
+ validations:
18
+ required: true
19
+
20
+ - type: textarea
21
+ id: solution
22
+ attributes:
23
+ label: Describe the solution you'd like
24
+ description: What would you like to see added or changed?
25
+ placeholder: "e.g. It would be helpful if the project could automatically handle X by doing Y."
26
+ validations:
27
+ required: true
28
+
29
+ - type: textarea
30
+ id: alternatives
31
+ attributes:
32
+ label: Alternatives you've considered
33
+ description: Have you tried any workarounds or other approaches?
34
+ placeholder: "e.g. I tried using library Z but it doesn't quite fit because..."
35
+ validations:
36
+ required: false
37
+
38
+ - type: textarea
39
+ id: context
40
+ attributes:
41
+ label: Additional Context
42
+ description: Anything else that might help — examples, links, screenshots, etc.
43
+ validations:
44
+ required: false
@@ -0,0 +1,27 @@
1
+ ## Summary
2
+
3
+ <!-- Brief description of what this PR does and why. -->
4
+
5
+ ## Changes
6
+
7
+ <!-- Bullet list of key changes. -->
8
+
9
+ -
10
+
11
+ ## Related Issues
12
+
13
+ <!-- Link any related issues: Fixes #123, Closes #456, Related to #789 -->
14
+
15
+ ## Testing
16
+
17
+ <!-- How were these changes tested? -->
18
+
19
+ - [ ] Existing tests pass (`uv run pytest`)
20
+ - [ ] New tests added (if applicable)
21
+ - [ ] Manual testing done
22
+
23
+ ## Checklist
24
+
25
+ - [ ] Code follows project conventions
26
+ - [ ] Linting passes (`uv run ruff check uv_forge`)
27
+ - [ ] No new warnings introduced
@@ -0,0 +1,30 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ lint:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - uses: astral-sh/setup-uv@v5
15
+ - run: uv run ruff check uv_forge
16
+ - run: uv run ruff format --check uv_forge
17
+
18
+ test:
19
+ runs-on: ${{ matrix.os }}
20
+ strategy:
21
+ matrix:
22
+ os: [ubuntu-latest, macos-latest, windows-latest]
23
+ python-version: ["3.12", "3.13"]
24
+ steps:
25
+ - uses: actions/checkout@v4
26
+ - uses: astral-sh/setup-uv@v5
27
+ with:
28
+ python-version: ${{ matrix.python-version }}
29
+ - run: uv sync --dev
30
+ - run: uv run pytest -q --tb=short
@@ -0,0 +1,17 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
+ environment: pypi
11
+ permissions:
12
+ id-token: write
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: astral-sh/setup-uv@v5
16
+ - run: uv build
17
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,43 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+ build/
5
+ dist/
6
+ wheels/
7
+ *.egg-info
8
+
9
+ # Virtual environments
10
+ .venv
11
+
12
+ # Test coverage reports
13
+ htmlcov/
14
+ .coverage
15
+ .pytest_cache/
16
+
17
+ # Runtime logs
18
+ logs/
19
+
20
+ # OS metadata
21
+ .DS_Store
22
+ Thumbs.db
23
+
24
+ # Linting
25
+ .ruff_cache/
26
+
27
+ # Type checking
28
+ .mypy_cache/
29
+
30
+ # IDE
31
+ .vscode/
32
+
33
+ # AI files
34
+ .claude/
35
+ CLAUDE.md
36
+
37
+ # MkDocs build output
38
+ site/
39
+
40
+ # uv-forge files
41
+ .dev
42
+
43
+
@@ -0,0 +1 @@
1
+ 3.14
@@ -0,0 +1,30 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.1.0] - 2026-03-10
9
+
10
+ ### Added
11
+
12
+ - Initial release of UV Forge
13
+ - Flet desktop GUI for scaffolding Python projects with UV
14
+ - 10 UI framework templates (Flet, PyQt6, PySide6, tkinter, customtkinter, Kivy, Pygame, NiceGUI, Streamlit, Gradio)
15
+ - 21 project type templates (Django, FastAPI, Flask, data science, ML, CLI tools, APIs, web scraping, and more)
16
+ - JSON-based template system with fallback hierarchy and intelligent merging
17
+ - Smart scaffolding with boilerplate file content and `{{project_name}}` placeholder substitution
18
+ - PyPI name availability checker with PEP 503 normalization
19
+ - Two-phase git integration (local repo + bare hub, auto commit and push)
20
+ - Dev dependency support (`uv add --dev`) with amber badge in UI
21
+ - Project metadata dialog (author, email, description, SPDX license)
22
+ - Post-build automation with configurable shell commands
23
+ - Rollback system for cleanup on build failure
24
+ - Named project presets with 4 built-in starters
25
+ - Recent projects history (last 5 builds)
26
+ - Persistent settings (project path, GitHub root, Python version, IDE, git defaults)
27
+ - Colour-coded log viewer with clickable source locations
28
+ - Dark and light theme toggle
29
+
30
+ [0.1.0]: https://github.com/oktl/uv-forge/releases/tag/v0.1.0
@@ -0,0 +1,128 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ .
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series
86
+ of actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or
93
+ permanent ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
+
121
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
+ enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage]: https://www.contributor-covenant.org
125
+
126
+ For answers to common questions about this code of conduct, see the FAQ at
127
+ https://www.contributor-covenant.org/faq. Translations are available at
128
+ https://www.contributor-covenant.org/translations.
@@ -0,0 +1,101 @@
1
+ # Contributing to UV Forge
2
+
3
+ Thanks for your interest in contributing! UV Forge is a Flet desktop app for scaffolding Python projects with `uv`, and there are plenty of ways to help out — from reporting bugs to adding new project templates.
4
+
5
+ ---
6
+
7
+ ## Ways to Contribute
8
+
9
+ - **Bug reports** — Found something broken? Open an issue with steps to reproduce, your OS, and Python version.
10
+ - **Feature requests** — Have an idea? Open an issue and describe the use case.
11
+ - **New templates** — The easiest contribution. Add a new UI framework or project type — no core code changes needed in most cases.
12
+ - **New boilerplate** — Drop starter file content into `uv_forge/config/templates/boilerplate/` — also no code changes required.
13
+ - **Bug fixes and features** — Fork, branch, fix, test, PR. See below.
14
+ - **Docs** — Improvements to the [README](README.md), in-app Help text ([`uv_forge/assets/docs/HELP.md`](uv_forge/assets/docs/HELP.md)), or code comments are always welcome.
15
+
16
+ ---
17
+
18
+ ## Development Setup
19
+
20
+ You'll need Python 3.12+, `uv`, and Git.
21
+
22
+ ```bash
23
+ git clone https://github.com/oktl/uv-forge.git
24
+ cd uv-forge
25
+ uv run uv-forger # Run the app
26
+ uv run pytest # Run the test suite (625 tests)
27
+ uv run ruff check uv_forge # Lint
28
+ uv run ruff format uv_forge # Format
29
+ ```
30
+
31
+ A pre-commit hook runs `ruff` automatically on commit, so you'll catch lint issues before pushing.
32
+
33
+ ---
34
+
35
+ ## Adding a New Framework or Project Type
36
+
37
+ This is the most common kind of contribution and is largely declarative:
38
+
39
+ 1. **Add the name** to `UI_FRAMEWORKS` or `PROJECT_TYPE_PACKAGE_MAP` in `uv_forge/core/constants.py`
40
+ 2. **Add the package mapping** to `FRAMEWORK_PACKAGE_MAP` (UI frameworks only)
41
+ 3. **Add a display entry** to `UI_FRAMEWORK_CATEGORIES` or `PROJECT_TYPE_CATEGORIES` in `uv_forge/ui/dialog_data.py`
42
+ 4. **Create a template JSON** in `uv_forge/config/templates/ui_frameworks/` or `uv_forge/config/templates/project_types/`
43
+ 5. **Optionally add boilerplate** — drop starter files into `uv_forge/config/templates/boilerplate/ui_frameworks/<name>/` or `boilerplate/project_types/<name>/`. Uses `{{project_name}}` as a placeholder. No code changes needed.
44
+
45
+ The template JSON format:
46
+
47
+ ```json
48
+ {
49
+ "name": "src",
50
+ "create_init": true,
51
+ "root_level": false,
52
+ "subfolders": [],
53
+ "files": ["main.py", "config.py"]
54
+ }
55
+ ```
56
+
57
+ Look at an existing template (e.g. `uv_forge/config/templates/ui_frameworks/flet.json`) for reference.
58
+
59
+ ---
60
+
61
+ ## Code Style
62
+
63
+ - **Linter/formatter:** Ruff — rules `E`, `F`, `I`, `W`, `UP`, `B`, `SIM`
64
+ - **Imports:** Absolute `uv_forge.*` paths only (e.g. `from uv_forge.core.state import AppState`)
65
+ - **Type hints:** Use `str | None` not `Optional[str]`; `collections.abc.Callable` not `typing.Callable`
66
+ - **Models:** Dataclasses for new data structures
67
+ - **Async:** Wrap coroutines with `wrap_async()` for Flet callbacks; use `AsyncExecutor.run()` for subprocess calls
68
+
69
+ ---
70
+
71
+ ## Testing
72
+
73
+ Run the full suite before opening a PR:
74
+
75
+ ```bash
76
+ uv run pytest
77
+ ```
78
+
79
+ Tests live in `tests/`, mirroring the `uv_forge/` structure. `pytest-asyncio` is configured in auto mode — async test functions just work.
80
+
81
+ **Please add tests** for any new functionality in `tests/core/`, `tests/handlers/`, or `tests/ui/`. Handler tests use `Handlers(MockPage(), MockControls(), AppState())` — no real Flet runtime needed.
82
+
83
+ Coverage is generated automatically. Aim to maintain or improve existing coverage.
84
+
85
+ ---
86
+
87
+ ## Submitting a Pull Request
88
+
89
+ 1. Fork the repo and create a branch from `main`
90
+ 2. Make your changes
91
+ 3. Run `uv run pytest` — all tests must pass
92
+ 4. Run `uv run ruff check uv_forge` — no lint errors
93
+ 5. Open a PR with a clear description of what changed and why
94
+
95
+ Small, focused PRs are much easier to review than large ones. If you're planning something significant, open an issue first so we can discuss the approach.
96
+
97
+ ---
98
+
99
+ ## Questions?
100
+
101
+ Open a [GitHub issue](https://github.com/oktl/uv-forge/issues) — happy to help get you oriented.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Tim Lang
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.