fabricatio 0.4.4__tar.gz → 0.4.5.dev0__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 (229) hide show
  1. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/.github/workflows/tests.yaml +42 -42
  2. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/.gitignore +172 -172
  3. fabricatio-0.4.5.dev0/.readthedocs.yaml +21 -0
  4. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/Cargo.lock +11 -1
  5. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/Cargo.toml +0 -1
  6. {fabricatio-0.4.4/packages/fabricatio-actions → fabricatio-0.4.5.dev0}/LICENSE +21 -21
  7. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/Makefile +42 -40
  8. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/PKG-INFO +172 -164
  9. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/README.md +170 -162
  10. fabricatio-0.4.5.dev0/assets/band.png +0 -0
  11. fabricatio-0.4.5.dev0/assets/logo/16.svg +8 -0
  12. fabricatio-0.4.5.dev0/assets/logo/400.svg +17 -0
  13. fabricatio-0.4.5.dev0/assets/logo/64.svg +6 -0
  14. fabricatio-0.4.5.dev0/docs/Makefile +20 -0
  15. fabricatio-0.4.5.dev0/docs/source/conf.py +120 -0
  16. fabricatio-0.4.5.dev0/docs/source/configuration.rst +11 -0
  17. fabricatio-0.4.5.dev0/docs/source/contributing.rst +8 -0
  18. fabricatio-0.4.5.dev0/docs/source/development.rst +9 -0
  19. fabricatio-0.4.5.dev0/docs/source/index.rst +21 -0
  20. fabricatio-0.4.5.dev0/docs/source/installation.rst +21 -0
  21. fabricatio-0.4.5.dev0/docs/source/usage.rst +31 -0
  22. fabricatio-0.4.5.dev0/examples/anki_deck/.gitignore +3 -0
  23. fabricatio-0.4.5.dev0/examples/anki_deck/deck_gen.py +61 -0
  24. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/correct/correct.py +32 -32
  25. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/correct/correct_loop.py +30 -30
  26. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/extract_and_inject/.gitignore +3 -3
  27. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/extract_and_inject/article_rag.py +33 -33
  28. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/extract_and_inject/ask.py +57 -57
  29. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/extract_and_inject/chunk_article.py +40 -40
  30. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/extract_and_inject/extract_and_inject.py +67 -67
  31. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/extract_article/extract.py +33 -33
  32. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/llm_usages/llm_usage.py +53 -53
  33. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/make_a_rating/rating.py +140 -140
  34. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/make_diary/diary.py +90 -90
  35. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/minor/hello_fabricatio.py +31 -31
  36. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/minor/write_a_poem.py +36 -36
  37. fabricatio-0.4.5.dev0/examples/propose_task/.gitignore +2 -0
  38. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/propose_task/propose.py +50 -50
  39. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/reviewer/censor.py +32 -32
  40. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/reviewer/review.py +32 -32
  41. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/rules/.gitignore +2 -2
  42. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/rules/draft_ruleset.py +59 -59
  43. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/search_bibtex/search.py +12 -12
  44. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/simple_chat/chat.py +45 -45
  45. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/simple_rag/simple_rag.py +65 -65
  46. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/task_handle/handle_task.py +112 -112
  47. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/write_article/.gitignore +3 -3
  48. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/write_article/article_rag.py +78 -78
  49. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/write_article/post_process.py +10 -10
  50. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/write_article/write_article.py +265 -265
  51. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/write_outline/.gitignore +1 -1
  52. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/write_outline/write_outline.py +27 -27
  53. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/write_outline/write_outline_corrected.py +37 -37
  54. fabricatio-0.4.5.dev0/extra/scripts/tdown +0 -0
  55. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0/packages/fabricatio-actions}/LICENSE +21 -21
  56. fabricatio-0.4.5.dev0/packages/fabricatio-actions/README.md +105 -0
  57. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-actions/pyproject.toml +5 -1
  58. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-actions/python/fabricatio_actions/__init__.py +7 -7
  59. {fabricatio-0.4.4/packages/fabricatio-rule/python/fabricatio_rule → fabricatio-0.4.5.dev0/packages/fabricatio-actions/python/fabricatio_actions}/actions/__init__.py +1 -1
  60. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-actions/python/fabricatio_actions/actions/fs.py +27 -27
  61. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-actions/python/fabricatio_actions/actions/output.py +249 -249
  62. fabricatio-0.4.5.dev0/packages/fabricatio-actions/python/fabricatio_actions/models/__init__.py +1 -0
  63. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-actions/python/fabricatio_actions/models/generic.py +26 -26
  64. {fabricatio-0.4.4/packages/fabricatio-tagging → fabricatio-0.4.5.dev0/packages/fabricatio-digest}/.gitignore +72 -72
  65. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-digest/LICENSE +21 -21
  66. fabricatio-0.4.5.dev0/packages/fabricatio-digest/README.md +64 -0
  67. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-digest/pyproject.toml +3 -3
  68. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-digest/python/fabricatio_digest/__init__.py +1 -1
  69. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-digest/python/fabricatio_digest/actions/__init__.py +1 -1
  70. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-digest/python/fabricatio_digest/capabilities/__init__.py +1 -1
  71. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-digest/python/fabricatio_digest/capabilities/digest.py +45 -45
  72. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-digest/python/fabricatio_digest/config.py +17 -17
  73. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-digest/python/fabricatio_digest/models/__init__.py +1 -1
  74. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-digest/python/fabricatio_digest/models/tasklist.py +21 -21
  75. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-digest/python/fabricatio_digest/workflows/__init__.py +1 -1
  76. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-digest/python/tests/tests.py +1 -1
  77. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-improve/LICENSE +21 -21
  78. fabricatio-0.4.5.dev0/packages/fabricatio-improve/README.md +90 -0
  79. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-improve/pyproject.toml +6 -3
  80. fabricatio-0.4.5.dev0/packages/fabricatio-improve/python/fabricatio_improve/__init__.py +1 -0
  81. fabricatio-0.4.5.dev0/packages/fabricatio-improve/python/fabricatio_improve/actions/__init__.py +1 -0
  82. fabricatio-0.4.5.dev0/packages/fabricatio-improve/python/fabricatio_improve/capabilities/__init__.py +1 -0
  83. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-improve/python/fabricatio_improve/capabilities/correct.py +232 -231
  84. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-improve/python/fabricatio_improve/capabilities/review.py +117 -115
  85. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-improve/python/fabricatio_improve/config.py +23 -23
  86. fabricatio-0.4.5.dev0/packages/fabricatio-improve/python/fabricatio_improve/models/__init__.py +1 -0
  87. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-improve/python/fabricatio_improve/models/improve.py +70 -69
  88. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-improve/python/fabricatio_improve/models/kwargs_types.py +36 -36
  89. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-improve/python/fabricatio_improve/models/problem.py +102 -102
  90. fabricatio-0.4.5.dev0/packages/fabricatio-improve/python/fabricatio_improve/workflows/__init__.py +1 -0
  91. fabricatio-0.4.5.dev0/packages/fabricatio-judge/LICENSE +21 -0
  92. fabricatio-0.4.5.dev0/packages/fabricatio-judge/README.md +69 -0
  93. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-judge/pyproject.toml +7 -2
  94. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-judge/python/fabricatio_judge/__init__.py +8 -8
  95. fabricatio-0.4.5.dev0/packages/fabricatio-judge/python/fabricatio_judge/capabilities/__init__.py +1 -0
  96. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-judge/python/fabricatio_judge/capabilities/advanced_judge.py +21 -20
  97. fabricatio-0.4.5.dev0/packages/fabricatio-judge/python/fabricatio_judge/models/__init__.py +1 -0
  98. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-judge/python/fabricatio_judge/models/advanced_judge.py +32 -32
  99. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-question/.gitignore +72 -72
  100. fabricatio-0.4.5.dev0/packages/fabricatio-question/LICENSE +21 -0
  101. fabricatio-0.4.5.dev0/packages/fabricatio-question/README.md +64 -0
  102. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-question/pyproject.toml +3 -3
  103. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-question/python/fabricatio_question/__init__.py +1 -1
  104. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-question/python/fabricatio_question/actions/__init__.py +1 -1
  105. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-question/python/fabricatio_question/capabilities/__init__.py +1 -1
  106. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-question/python/fabricatio_question/capabilities/questioning.py +58 -58
  107. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-question/python/fabricatio_question/config.py +17 -17
  108. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-question/python/fabricatio_question/models/__init__.py +1 -1
  109. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-question/python/fabricatio_question/models/questions.py +43 -43
  110. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-question/python/fabricatio_question/workflows/__init__.py +1 -1
  111. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-question/python/tests/tests.py +1 -1
  112. fabricatio-0.4.5.dev0/packages/fabricatio-rule/LICENSE +21 -0
  113. fabricatio-0.4.5.dev0/packages/fabricatio-rule/README.md +103 -0
  114. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-rule/pyproject.toml +1 -1
  115. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-rule/python/fabricatio_rule/__init__.py +4 -4
  116. {fabricatio-0.4.4/packages/fabricatio-actions/python/fabricatio_actions → fabricatio-0.4.5.dev0/packages/fabricatio-rule/python/fabricatio_rule}/actions/__init__.py +1 -1
  117. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-rule/python/fabricatio_rule/capabilities/__init__.py +4 -4
  118. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-rule/python/fabricatio_rule/capabilities/censor.py +107 -107
  119. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-rule/python/fabricatio_rule/capabilities/check.py +214 -214
  120. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-rule/python/fabricatio_rule/config.py +23 -23
  121. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-rule/python/fabricatio_rule/models/__init__.py +4 -4
  122. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-rule/python/fabricatio_rule/models/kwargs_types.py +16 -27
  123. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-rule/python/fabricatio_rule/models/patch.py +18 -18
  124. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-rule/python/fabricatio_rule/models/rule.py +52 -52
  125. {fabricatio-0.4.4/packages/fabricatio-digest → fabricatio-0.4.5.dev0/packages/fabricatio-tagging}/.gitignore +72 -72
  126. fabricatio-0.4.5.dev0/packages/fabricatio-tagging/LICENSE +21 -0
  127. fabricatio-0.4.5.dev0/packages/fabricatio-tagging/README.md +64 -0
  128. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-tagging/pyproject.toml +3 -3
  129. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-tagging/python/fabricatio_tagging/__init__.py +1 -1
  130. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-tagging/python/fabricatio_tagging/actions/__init__.py +1 -1
  131. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-tagging/python/fabricatio_tagging/capabilities/__init__.py +1 -1
  132. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-tagging/python/fabricatio_tagging/capabilities/tagging.py +100 -100
  133. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-tagging/python/fabricatio_tagging/config.py +17 -17
  134. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-tagging/python/fabricatio_tagging/models/__init__.py +1 -1
  135. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-tagging/python/fabricatio_tagging/workflows/__init__.py +1 -1
  136. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-tagging/python/tests/tests.py +1 -1
  137. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/pyproject.toml +19 -5
  138. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/python/fabricatio/__init__.py +28 -28
  139. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/python/fabricatio/actions/__init__.py +69 -69
  140. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/python/fabricatio/capabilities/__init__.py +63 -59
  141. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/python/fabricatio/models/__init__.py +51 -47
  142. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/python/fabricatio/toolboxes/__init__.py +16 -16
  143. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/python/fabricatio/toolboxes/arithmetic.py +62 -62
  144. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/python/fabricatio/toolboxes/fs.py +31 -31
  145. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/python/fabricatio/workflows/__init__.py +10 -10
  146. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/python/tests/test_minor_integration.py +52 -52
  147. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/src/lib.rs +11 -11
  148. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/subpackages.py +563 -563
  149. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/as_prompt.hbs +2 -2
  150. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/chap_summary.hbs +31 -31
  151. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/co_validation.hbs +7 -7
  152. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/create_json_obj.hbs +25 -25
  153. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/digest.hbs +13 -13
  154. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/dispatch_task.hbs +5 -5
  155. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/draft_rating_criteria.hbs +41 -41
  156. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/draft_rating_manual.hbs +36 -36
  157. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/draft_rating_weights_klee.hbs +37 -37
  158. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/extract.hbs +5 -5
  159. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/extract_criteria_from_reasons.hbs +50 -50
  160. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/extract_reasons_from_examples.hbs +40 -40
  161. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/fix_troubled_string.hbs +18 -18
  162. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/generate_anki_card_template.hbs +18 -18
  163. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/generate_anki_card_template_generation_requirements.hbs +16 -18
  164. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/generate_anki_deck_metadata.hbs +11 -11
  165. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/generate_anki_model_generation_requirements.hbs +16 -16
  166. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/generate_anki_model_name.hbs +11 -11
  167. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/generic_string.hbs +29 -29
  168. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/liststr.hbs +24 -24
  169. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/mapping.hbs +9 -9
  170. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/pathstr.hbs +2 -2
  171. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/rate_fine_grind.hbs +14 -14
  172. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/refined_query.hbs +47 -47
  173. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/research_content_summary.hbs +17 -17
  174. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/retrieved_display.hbs +4 -4
  175. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/review_string.hbs +21 -21
  176. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/rule_requirement.hbs +6 -6
  177. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/ruleset_requirement_breakdown.hbs +18 -18
  178. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/selection.hbs +10 -10
  179. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/tagging.hbs +11 -11
  180. fabricatio-0.4.5.dev0/uv.lock +2660 -0
  181. fabricatio-0.4.4/examples/propose_task/.gitignore +0 -2
  182. fabricatio-0.4.4/packages/fabricatio-actions/README.md +0 -77
  183. fabricatio-0.4.4/packages/fabricatio-digest/README.md +0 -45
  184. fabricatio-0.4.4/packages/fabricatio-improve/README.md +0 -82
  185. fabricatio-0.4.4/packages/fabricatio-improve/python/fabricatio_improve/__init__.py +0 -8
  186. fabricatio-0.4.4/packages/fabricatio-judge/LICENSE +0 -21
  187. fabricatio-0.4.4/packages/fabricatio-judge/README.md +0 -61
  188. fabricatio-0.4.4/packages/fabricatio-question/LICENSE +0 -21
  189. fabricatio-0.4.4/packages/fabricatio-question/README.md +0 -45
  190. fabricatio-0.4.4/packages/fabricatio-rule/LICENSE +0 -21
  191. fabricatio-0.4.4/packages/fabricatio-rule/README.md +0 -91
  192. fabricatio-0.4.4/packages/fabricatio-tagging/LICENSE +0 -21
  193. fabricatio-0.4.4/packages/fabricatio-tagging/README.md +0 -45
  194. fabricatio-0.4.4/uv.lock +0 -2258
  195. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/.github/workflows/build-package.yaml +0 -0
  196. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/.github/workflows/ruff.yaml +0 -0
  197. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/make_diary/commits.json +0 -0
  198. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/examples/search_bibtex/.gitignore +0 -0
  199. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-actions/python/fabricatio_actions/py.typed +0 -0
  200. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-digest/python/fabricatio_digest/py.typed +0 -0
  201. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-improve/python/fabricatio_improve/py.typed +0 -0
  202. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-judge/python/fabricatio_judge/py.typed +0 -0
  203. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-question/python/fabricatio_question/py.typed +0 -0
  204. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-rule/python/fabricatio_rule/actions/rules.py +0 -0
  205. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-rule/python/fabricatio_rule/py.typed +0 -0
  206. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/packages/fabricatio-tagging/python/fabricatio_tagging/py.typed +0 -0
  207. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/python/fabricatio/py.typed +0 -0
  208. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/src/bin/tdown.rs +0 -0
  209. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/binary-exploitation-ctf-solver.hbs +0 -0
  210. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/check_string.hbs +0 -0
  211. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/claude-xml.hbs +0 -0
  212. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/clean-up-code.hbs +0 -0
  213. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/cryptography-ctf-solver.hbs +0 -0
  214. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/dependencies.hbs +0 -0
  215. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/document-the-code.hbs +0 -0
  216. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/draft_tool_usage_code.hbs +0 -0
  217. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/find-security-vulnerabilities.hbs +0 -0
  218. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/fix-bugs.hbs +0 -0
  219. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/fix_troubled_obj.hbs +0 -0
  220. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/improve-performance.hbs +0 -0
  221. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/make_choice.hbs +0 -0
  222. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/make_judgment.hbs +0 -0
  223. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/refactor.hbs +0 -0
  224. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/reverse-engineering-ctf-solver.hbs +0 -0
  225. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/task_briefing.hbs +0 -0
  226. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/web-ctf-solver.hbs +0 -0
  227. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/write-git-commit.hbs +0 -0
  228. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/write-github-pull-request.hbs +0 -0
  229. {fabricatio-0.4.4 → fabricatio-0.4.5.dev0}/templates/built-in/write-github-readme.hbs +0 -0
@@ -1,42 +1,42 @@
1
- name: Tests
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
- pull_request:
8
- branches:
9
- - master
10
-
11
- jobs:
12
- test:
13
- runs-on: ${{ matrix.os }}
14
- strategy:
15
- matrix:
16
- os: [ windows-latest, ubuntu-latest ]
17
- steps:
18
- - name: Checkout repository
19
- uses: actions/checkout@v4
20
-
21
- - name: Install the latest version of uv
22
- uses: astral-sh/setup-uv@v6.0.1
23
- with:
24
- version: "latest"
25
-
26
- - name: Install nightly rust
27
- run: |
28
- rustup default nightly
29
-
30
- - name: Install Protoc
31
- uses: arduino/setup-protoc@v3
32
-
33
- - name: Install deps
34
- run: |
35
- uv sync --no-install-project --only-dev --index https://pypi.org/simple
36
- make dev
37
- - name: Test
38
- run: |
39
- make test
40
-
41
-
42
-
1
+ name: Tests
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ branches:
9
+ - master
10
+
11
+ jobs:
12
+ test:
13
+ runs-on: ${{ matrix.os }}
14
+ strategy:
15
+ matrix:
16
+ os: [ windows-latest, ubuntu-latest ]
17
+ steps:
18
+ - name: Checkout repository
19
+ uses: actions/checkout@v4
20
+
21
+ - name: Install the latest version of uv
22
+ uses: astral-sh/setup-uv@v6.0.1
23
+ with:
24
+ version: "latest"
25
+
26
+ - name: Install nightly rust
27
+ run: |
28
+ rustup default nightly
29
+
30
+ - name: Install Protoc
31
+ uses: arduino/setup-protoc@v3
32
+
33
+ - name: Install deps
34
+ run: |
35
+ uv sync --no-install-project --only-dev --index https://pypi.org/simple
36
+ make dev
37
+ - name: Test
38
+ run: |
39
+ make test
40
+
41
+
42
+
@@ -1,172 +1,172 @@
1
- ### Python template
2
- # Byte-compiled / optimized / DLL files
3
- __pycache__/
4
- *.py[cod]
5
- *$py.class
6
-
7
- # C extensions
8
- *.so
9
-
10
- # Distribution / packaging
11
- .Python
12
- build/
13
- develop-eggs/
14
- dist/
15
- downloads/
16
- eggs/
17
- .eggs/
18
- lib/
19
- lib64/
20
- parts/
21
- sdist/
22
- var/
23
- wheels/
24
- share/python-wheels/
25
- *.egg-info/
26
- .installed.cfg
27
- *.egg
28
- MANIFEST
29
-
30
- # PyInstaller
31
- # Usually these files are written by a python script from a template
32
- # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
- *.manifest
34
- *.spec
35
-
36
- # Installer logs
37
- pip-log.txt
38
- pip-delete-this-directory.txt
39
-
40
- # Unit test / coverage reports
41
- htmlcov/
42
- .tox/
43
- .nox/
44
- .coverage
45
- .coverage.*
46
- .cache
47
- nosetests.xml
48
- coverage.xml
49
- *.cover
50
- *.py,cover
51
- .hypothesis/
52
- .pytest_cache/
53
- cover/
54
-
55
- # Translations
56
- *.mo
57
- *.pot
58
-
59
- # Django stuff:
60
- *.log
61
- local_settings.py
62
- db.sqlite3
63
- db.sqlite3-journal
64
-
65
- # Flask stuff:
66
- instance/
67
- .webassets-cache
68
-
69
- # Scrapy stuff:
70
- .scrapy
71
-
72
- # Sphinx documentation
73
- docs/_build/
74
-
75
- # PyBuilder
76
- .pybuilder/
77
- target/
78
-
79
- # Jupyter Notebook
80
- .ipynb_checkpoints
81
-
82
- # IPython
83
- profile_default/
84
- ipython_config.py
85
-
86
- # pyenv
87
- # For a library or package, you might want to ignore these files since the code is
88
- # intended to run in multiple environments; otherwise, check them in:
89
- # .python-version
90
-
91
- # pipenv
92
- # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
- # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
- # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
- # install all needed dependencies.
96
- #Pipfile.lock
97
-
98
- # poetry
99
- # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
100
- # This is especially recommended for binary packages to ensure reproducibility, and is more
101
- # commonly ignored for libraries.
102
- # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
103
- #poetry.lock
104
-
105
- # pdm
106
- # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
107
- #pdm.lock
108
- # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
109
- # in version control.
110
- # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
111
- .pdm.toml
112
- .pdm-python
113
- .pdm-build/
114
-
115
- # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
116
- __pypackages__/
117
-
118
- # Celery stuff
119
- celerybeat-schedule
120
- celerybeat.pid
121
-
122
- # SageMath parsed files
123
- *.sage.py
124
-
125
- # Environments
126
- .env
127
- .venv
128
- env/
129
- venv/
130
- ENV/
131
- env.bak/
132
- venv.bak/
133
-
134
- # Spyder project settings
135
- .spyderproject
136
- .spyproject
137
-
138
- # Rope project settings
139
- .ropeproject
140
-
141
- # mkdocs documentation
142
- /site
143
-
144
- # mypy
145
- .mypy_cache/
146
- .dmypy.json
147
- dmypy.json
148
-
149
- # Pyre type checker
150
- .pyre/
151
-
152
- # pytype static type analyzer
153
- .pytype/
154
-
155
- # Cython debug symbols
156
- cython_debug/
157
-
158
- # PyCharm
159
- # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
160
- # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
161
- # and can be added to the global gitignore or merged into this file. For a more nuclear
162
- # option (not recommended) you can uncomment the following to ignore the entire idea folder.
163
- .idea/
164
- *playground*
165
-
166
- *.exe
167
- output/
168
- .vscode/
169
- templates/customed
170
- *.typ
171
- tei.rs
172
- .python-version
1
+ ### Python template
2
+ # Byte-compiled / optimized / DLL files
3
+ __pycache__/
4
+ *.py[cod]
5
+ *$py.class
6
+
7
+ # C extensions
8
+ *.so
9
+
10
+ # Distribution / packaging
11
+ .Python
12
+ build/
13
+ develop-eggs/
14
+ dist/
15
+ downloads/
16
+ eggs/
17
+ .eggs/
18
+ lib/
19
+ lib64/
20
+ parts/
21
+ sdist/
22
+ var/
23
+ wheels/
24
+ share/python-wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+ MANIFEST
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage
45
+ .coverage.*
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ *.cover
50
+ *.py,cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+
65
+ # Flask stuff:
66
+ instance/
67
+ .webassets-cache
68
+
69
+ # Scrapy stuff:
70
+ .scrapy
71
+
72
+ # Sphinx documentation
73
+ docs/_build/
74
+
75
+ # PyBuilder
76
+ .pybuilder/
77
+ target/
78
+
79
+ # Jupyter Notebook
80
+ .ipynb_checkpoints
81
+
82
+ # IPython
83
+ profile_default/
84
+ ipython_config.py
85
+
86
+ # pyenv
87
+ # For a library or package, you might want to ignore these files since the code is
88
+ # intended to run in multiple environments; otherwise, check them in:
89
+ # .python-version
90
+
91
+ # pipenv
92
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
+ # install all needed dependencies.
96
+ #Pipfile.lock
97
+
98
+ # poetry
99
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
100
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
101
+ # commonly ignored for libraries.
102
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
103
+ #poetry.lock
104
+
105
+ # pdm
106
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
107
+ #pdm.lock
108
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
109
+ # in version control.
110
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
111
+ .pdm.toml
112
+ .pdm-python
113
+ .pdm-build/
114
+
115
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
116
+ __pypackages__/
117
+
118
+ # Celery stuff
119
+ celerybeat-schedule
120
+ celerybeat.pid
121
+
122
+ # SageMath parsed files
123
+ *.sage.py
124
+
125
+ # Environments
126
+ .env
127
+ .venv
128
+ env/
129
+ venv/
130
+ ENV/
131
+ env.bak/
132
+ venv.bak/
133
+
134
+ # Spyder project settings
135
+ .spyderproject
136
+ .spyproject
137
+
138
+ # Rope project settings
139
+ .ropeproject
140
+
141
+ # mkdocs documentation
142
+ /site
143
+
144
+ # mypy
145
+ .mypy_cache/
146
+ .dmypy.json
147
+ dmypy.json
148
+
149
+ # Pyre type checker
150
+ .pyre/
151
+
152
+ # pytype static type analyzer
153
+ .pytype/
154
+
155
+ # Cython debug symbols
156
+ cython_debug/
157
+
158
+ # PyCharm
159
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
160
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
161
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
162
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
163
+ .idea/
164
+ *playground*
165
+
166
+ *.exe
167
+ output/
168
+ .vscode/
169
+ templates/customed
170
+ *.typ
171
+ tei.rs
172
+ .python-version
@@ -0,0 +1,21 @@
1
+ # Read the Docs configuration file
2
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3
+
4
+ # Required
5
+ version: 2
6
+
7
+ # Set the OS, Python version, and other tools you might need
8
+ build:
9
+ os: ubuntu-24.04
10
+ tools:
11
+ python: "3.13"
12
+ jobs:
13
+ post_create_environment:
14
+ - pip install uv
15
+ post_install:
16
+ - . $READTHEDOCS_VIRTUALENV_PATH/bin/activate && uv sync --no-install-project --group docs --index https://pypi.org/simple --active --inexact
17
+
18
+
19
+ # Build documentation in the "docs/" directory with Sphinx
20
+ sphinx:
21
+ configuration: docs/source/conf.py
@@ -732,6 +732,7 @@ dependencies = [
732
732
  "genanki-rs",
733
733
  "serde",
734
734
  "serde_yml",
735
+ "walkdir",
735
736
  ]
736
737
 
737
738
  [[package]]
@@ -890,6 +891,7 @@ dependencies = [
890
891
  "deck_loader",
891
892
  "pyo3",
892
893
  "pythonize",
894
+ "sanitize-filename",
893
895
  "serde_yml",
894
896
  ]
895
897
 
@@ -931,7 +933,6 @@ dependencies = [
931
933
  "log",
932
934
  "macro_utils",
933
935
  "pyo3",
934
- "pyo3-log",
935
936
  "pythonize",
936
937
  "rayon",
937
938
  "serde",
@@ -2937,6 +2938,15 @@ dependencies = [
2937
2938
  "winapi-util",
2938
2939
  ]
2939
2940
 
2941
+ [[package]]
2942
+ name = "sanitize-filename"
2943
+ version = "0.6.0"
2944
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2945
+ checksum = "bc984f4f9ceb736a7bb755c3e3bd17dc56370af2600c9780dcc48c66453da34d"
2946
+ dependencies = [
2947
+ "regex",
2948
+ ]
2949
+
2940
2950
  [[package]]
2941
2951
  name = "schannel"
2942
2952
  version = "0.1.27"
@@ -6,7 +6,6 @@ edition = "2024"
6
6
  crate-type = ["cdylib"]
7
7
 
8
8
  [dependencies]
9
-
10
9
  pyo3 = { version = "0.24.2", features = ["extension-module"] }
11
10
 
12
11
  reqwest = { version = "0.12.12", features = ["blocking", "json"] }
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Whth Yotta
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.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Whth Yotta
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.
@@ -1,40 +1,42 @@
1
- DIST:=dist
2
- DATA:=extra
3
- PY:=3.13
4
-
5
-
6
- all:bdist
7
-
8
- dirs:
9
- mkdir -p $(DIST) $(DATA)
10
-
11
-
12
- bins: dirs
13
- cargo build -p fabricatio --bins -r -Z unstable-options --artifact-dir $(DATA)/scripts
14
- rm $(DATA)/scripts/*.pdb -f
15
- rm $(DATA)/scripts/*.dwarf -f
16
-
17
- dev: dirs bins
18
- uvx -p $(PY) --project . maturin develop --uv -r
19
- uv run subpackages.py --no-publish --pyversion $(PY) --dev
20
-
21
-
22
- bdist: dirs bins
23
-
24
- uvx -p $(PY) --project . maturin build --sdist -r -o $(DIST)
25
- uv run subpackages.py --no-publish --pyversion $(PY)
26
-
27
- clean:
28
- rm -rf $(DIST)/* $(DATA)/*
29
-
30
-
31
- test:dev
32
- uv sync --extra full
33
- uv run pytest python/tests packages/*/python/tests
34
-
35
- publish: bdist
36
- uv run subpackages.py --pyversion $(PY)
37
- uvx -p $(PY) --project . maturin publish
38
-
39
-
40
- .PHONY: dev bdist clean publish tests bins dirs all
1
+ DIST:=dist
2
+ DATA:=extra
3
+ PY:=3.13
4
+
5
+
6
+ all:bdist
7
+
8
+ dirs:
9
+ mkdir -p $(DIST) $(DATA)
10
+
11
+
12
+ bins: dirs
13
+ cargo build -p fabricatio --bins -r -Z unstable-options --artifact-dir $(DATA)/scripts
14
+ rm $(DATA)/scripts/*.pdb -f
15
+ rm $(DATA)/scripts/*.dwarf -f
16
+
17
+ dev: dirs bins
18
+ uvx -p $(PY) --project . maturin develop --uv -r
19
+ uv run subpackages.py --no-publish --pyversion $(PY) --dev
20
+
21
+
22
+ bdist: dirs bins
23
+
24
+ uvx -p $(PY) --project . maturin build --sdist -r -o $(DIST)
25
+ uv run subpackages.py --no-publish --pyversion $(PY)
26
+
27
+ clean:
28
+ rm -rf $(DIST)/* $(DATA)/*
29
+
30
+
31
+ test:dev
32
+ uv sync --extra full
33
+ uv run pytest python/tests packages/*/python/tests
34
+
35
+ publish: bdist
36
+ uv run subpackages.py --pyversion $(PY)
37
+ uvx -p $(PY) --project . maturin publish || true
38
+
39
+
40
+ docs:
41
+ make -C docs html
42
+ .PHONY: dev bdist clean publish tests bins dirs all docs