rhoella 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 (294) hide show
  1. rhoella-0.1.0/.github/workflows/ci.yml +35 -0
  2. rhoella-0.1.0/.gitignore +3 -0
  3. rhoella-0.1.0/PKG-INFO +22 -0
  4. rhoella-0.1.0/README.md +10 -0
  5. rhoella-0.1.0/pyproject.toml +20 -0
  6. rhoella-0.1.0/rhoella/__init__.py +740 -0
  7. rhoella-0.1.0/test_behavior.py +182 -0
  8. rhoella-0.1.0/test_parity.py +89 -0
  9. rhoella-0.1.0/testsuite/README.md +41 -0
  10. rhoella-0.1.0/testsuite/manifest.json +353 -0
  11. rhoella-0.1.0/testsuite/semantics/expected/core.json +192 -0
  12. rhoella-0.1.0/testsuite/semantics/expected/errors.json +27 -0
  13. rhoella-0.1.0/testsuite/semantics/resources/core.ftl +37 -0
  14. rhoella-0.1.0/testsuite/semantics/resources/cycle.ftl +2 -0
  15. rhoella-0.1.0/testsuite/semantics/resources/depth.ftl +7 -0
  16. rhoella-0.1.0/testsuite/semantics/resources/features.ftl +54 -0
  17. rhoella-0.1.0/testsuite/semantics/resources/select-no-default.ftl +4 -0
  18. rhoella-0.1.0/testsuite/upstream/IMPORT.md +18 -0
  19. rhoella-0.1.0/testsuite/upstream/LICENSE +202 -0
  20. rhoella-0.1.0/testsuite/upstream/NOTICE +13 -0
  21. rhoella-0.1.0/testsuite/upstream/behavior/IMPORT.md +138 -0
  22. rhoella-0.1.0/testsuite/upstream/behavior/LICENSE-APACHE-fluent-rs +201 -0
  23. rhoella-0.1.0/testsuite/upstream/behavior/arguments.yaml +133 -0
  24. rhoella-0.1.0/testsuite/upstream/behavior/attributes.yaml +178 -0
  25. rhoella-0.1.0/testsuite/upstream/behavior/bomb.yaml +31 -0
  26. rhoella-0.1.0/testsuite/upstream/behavior/context.yaml +195 -0
  27. rhoella-0.1.0/testsuite/upstream/behavior/defaults.yaml +6 -0
  28. rhoella-0.1.0/testsuite/upstream/behavior/errors.yaml +21 -0
  29. rhoella-0.1.0/testsuite/upstream/behavior/functions.yaml +84 -0
  30. rhoella-0.1.0/testsuite/upstream/behavior/functions_runtime.yaml +29 -0
  31. rhoella-0.1.0/testsuite/upstream/behavior/isolating.yaml +100 -0
  32. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/attribute_expression_with_wrong_attr.ftl +7 -0
  33. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/attribute_of_private_as_placeable.ftl +2 -0
  34. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/attribute_of_public_as_selector.ftl +6 -0
  35. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/attribute_starts_from_nl.ftl +2 -0
  36. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/attribute_with_empty_pattern.ftl +3 -0
  37. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/attribute_without_equal_sign.ftl +3 -0
  38. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/broken_number.ftl +14 -0
  39. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/call_expression_with_bad_id.ftl +3 -0
  40. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/call_expression_with_trailing_comma.ftl +1 -0
  41. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/call_expression_with_wrong_kwarg_name.ftl +2 -0
  42. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/call_expression_with_wrong_value_type.ftl +2 -0
  43. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/comment_with_eof.ftl +1 -0
  44. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/empty_resource.ftl +0 -0
  45. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/empty_resource_with_ws.ftl +2 -0
  46. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/escape_sequences.ftl +16 -0
  47. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/indent.ftl +11 -0
  48. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/leading_empty_lines.ftl +3 -0
  49. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/leading_empty_lines_with_ws.ftl +5 -0
  50. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/message_reference_as_selector.ftl +5 -0
  51. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/multiline_string.ftl +4 -0
  52. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/multiline_with_non_empty_first_line.ftl +2 -0
  53. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/multiline_with_placeables.ftl +3 -0
  54. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/non_id_attribute_name.ftl +3 -0
  55. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/placeable_at_line_extremes.ftl +8 -0
  56. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/placeable_in_placeable.ftl +15 -0
  57. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/placeable_without_close_bracket.ftl +3 -0
  58. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/second_attribute_starts_from_nl.ftl +3 -0
  59. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/select_expression_with_two_selectors.ftl +2 -0
  60. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/select_expression_without_arrow.ftl +2 -0
  61. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/select_expression_without_variants.ftl +6 -0
  62. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/selector_expression_ends_abruptly.ftl +2 -0
  63. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/simple_message.ftl +1 -0
  64. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/single_char_id.ftl +2 -0
  65. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/standalone_identifier.ftl +2 -0
  66. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/term.ftl +29 -0
  67. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/unclosed_empty_placeable_error.ftl +5 -0
  68. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/unknown_entry_start.ftl +3 -0
  69. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/variant_ends_abruptly.ftl +3 -0
  70. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/variant_starts_from_nl.ftl +3 -0
  71. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/variant_with_digit_key.ftl +3 -0
  72. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/variant_with_empty_pattern.ftl +8 -0
  73. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/variant_with_leading_space_in_name.ftl +3 -0
  74. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/variant_with_symbol_with_space.ftl +4 -0
  75. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/ftl/variants_with_two_defaults.ftl +5 -0
  76. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/attribute_expression_with_wrong_attr.json +1 -0
  77. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/attribute_of_private_as_placeable.json +1 -0
  78. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/attribute_of_public_as_selector.json +1 -0
  79. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/attribute_starts_from_nl.json +8 -0
  80. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/attribute_with_empty_pattern.json +1 -0
  81. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/attribute_without_equal_sign.json +1 -0
  82. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/broken_number.json +1 -0
  83. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/call_expression_with_bad_id.json +1 -0
  84. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/call_expression_with_trailing_comma.json +5 -0
  85. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/call_expression_with_wrong_kwarg_name.json +1 -0
  86. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/call_expression_with_wrong_value_type.json +1 -0
  87. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/comment_continues_with_one_slash.json +1 -0
  88. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/comment_with_eof.json +1 -0
  89. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/empty_resource.json +1 -0
  90. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/empty_resource_with_ws.json +1 -0
  91. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/entry_start_with_one_slash.json +1 -0
  92. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/escape_sequences.json +26 -0
  93. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/indent.json +11 -0
  94. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/leading_empty_lines.json +5 -0
  95. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/leading_empty_lines_with_ws.json +5 -0
  96. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/message_reference_as_selector.json +1 -0
  97. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/multiline_string.json +1 -0
  98. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/multiline_with_non_empty_first_line.json +5 -0
  99. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/multiline_with_placeables.json +5 -0
  100. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/non_id_attribute_name.json +1 -0
  101. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/placeable_at_line_extremes.json +11 -0
  102. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/placeable_in_placeable.json +8 -0
  103. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/placeable_without_close_bracket.json +1 -0
  104. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/second_attribute_starts_from_nl.json +9 -0
  105. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/section_with_nl_in_the_middle.json +1 -0
  106. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/section_with_no_nl_after_it.json +1 -0
  107. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/section_with_one_bracket_at_the_end.json +1 -0
  108. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/select_expression_with_two_selectors.json +1 -0
  109. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/select_expression_without_arrow.json +1 -0
  110. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/select_expression_without_variants.json +1 -0
  111. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/selector_expression_ends_abruptly.json +1 -0
  112. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/simple_message.json +5 -0
  113. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/single_char_id.json +8 -0
  114. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/standalone_identifier.json +1 -0
  115. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/term.json +17 -0
  116. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/unclosed_empty_placeable_error.json +5 -0
  117. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/unknown_entry_start.json +1 -0
  118. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/variant_ends_abruptly.json +1 -0
  119. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/variant_expression_as_placeable.json +5 -0
  120. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/variant_expression_as_selector.json +1 -0
  121. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/variant_expression_empty_key.json +1 -0
  122. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/variant_lists.json +8 -0
  123. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/variant_starts_from_nl.json +5 -0
  124. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/variant_with_digit_key.json +5 -0
  125. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/variant_with_empty_pattern.json +5 -0
  126. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/variant_with_leading_space_in_name.json +5 -0
  127. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/variant_with_symbol_with_space.json +1 -0
  128. rhoella-0.1.0/testsuite/upstream/behavior/legacy-2019/json/variants_with_two_defaults.json +1 -0
  129. rhoella-0.1.0/testsuite/upstream/behavior/literals.yaml +69 -0
  130. rhoella-0.1.0/testsuite/upstream/behavior/macros.yaml +392 -0
  131. rhoella-0.1.0/testsuite/upstream/behavior/patterns.yaml +217 -0
  132. rhoella-0.1.0/testsuite/upstream/behavior/primitives.yaml +154 -0
  133. rhoella-0.1.0/testsuite/upstream/behavior/select_expression.yaml +151 -0
  134. rhoella-0.1.0/testsuite/upstream/behavior/transform.yaml +48 -0
  135. rhoella-0.1.0/testsuite/upstream/behavior/values_format.yaml +74 -0
  136. rhoella-0.1.0/testsuite/upstream/behavior/values_ref.yaml +140 -0
  137. rhoella-0.1.0/testsuite/upstream/fixtures/Makefile +11 -0
  138. rhoella-0.1.0/testsuite/upstream/fixtures/any_char.ftl +8 -0
  139. rhoella-0.1.0/testsuite/upstream/fixtures/any_char.json +68 -0
  140. rhoella-0.1.0/testsuite/upstream/fixtures/astral.ftl +20 -0
  141. rhoella-0.1.0/testsuite/upstream/fixtures/astral.json +174 -0
  142. rhoella-0.1.0/testsuite/upstream/fixtures/call_expressions.ftl +120 -0
  143. rhoella-0.1.0/testsuite/upstream/fixtures/call_expressions.json +1266 -0
  144. rhoella-0.1.0/testsuite/upstream/fixtures/callee_expressions.ftl +46 -0
  145. rhoella-0.1.0/testsuite/upstream/fixtures/callee_expressions.json +268 -0
  146. rhoella-0.1.0/testsuite/upstream/fixtures/comments.ftl +20 -0
  147. rhoella-0.1.0/testsuite/upstream/fixtures/comments.json +82 -0
  148. rhoella-0.1.0/testsuite/upstream/fixtures/cr_err_literal.ftl +5 -0
  149. rhoella-0.1.0/testsuite/upstream/fixtures/cr_err_literal.json +10 -0
  150. rhoella-0.1.0/testsuite/upstream/fixtures/cr_err_selector.ftl +4 -0
  151. rhoella-0.1.0/testsuite/upstream/fixtures/cr_err_selector.json +10 -0
  152. rhoella-0.1.0/testsuite/upstream/fixtures/cr_multikey.ftl +5 -0
  153. rhoella-0.1.0/testsuite/upstream/fixtures/cr_multikey.json +23 -0
  154. rhoella-0.1.0/testsuite/upstream/fixtures/cr_multilinevalue.ftl +13 -0
  155. rhoella-0.1.0/testsuite/upstream/fixtures/cr_multilinevalue.json +23 -0
  156. rhoella-0.1.0/testsuite/upstream/fixtures/crlf.ftl +18 -0
  157. rhoella-0.1.0/testsuite/upstream/fixtures/crlf.json +76 -0
  158. rhoella-0.1.0/testsuite/upstream/fixtures/eof_comment.ftl +3 -0
  159. rhoella-0.1.0/testsuite/upstream/fixtures/eof_comment.json +13 -0
  160. rhoella-0.1.0/testsuite/upstream/fixtures/eof_empty.ftl +0 -0
  161. rhoella-0.1.0/testsuite/upstream/fixtures/eof_empty.json +4 -0
  162. rhoella-0.1.0/testsuite/upstream/fixtures/eof_id.ftl +3 -0
  163. rhoella-0.1.0/testsuite/upstream/fixtures/eof_id.json +14 -0
  164. rhoella-0.1.0/testsuite/upstream/fixtures/eof_id_equals.ftl +3 -0
  165. rhoella-0.1.0/testsuite/upstream/fixtures/eof_id_equals.json +14 -0
  166. rhoella-0.1.0/testsuite/upstream/fixtures/eof_junk.ftl +3 -0
  167. rhoella-0.1.0/testsuite/upstream/fixtures/eof_junk.json +14 -0
  168. rhoella-0.1.0/testsuite/upstream/fixtures/eof_value.ftl +3 -0
  169. rhoella-0.1.0/testsuite/upstream/fixtures/eof_value.json +27 -0
  170. rhoella-0.1.0/testsuite/upstream/fixtures/escaped_characters.ftl +37 -0
  171. rhoella-0.1.0/testsuite/upstream/fixtures/escaped_characters.json +399 -0
  172. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/Makefile +11 -0
  173. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/any_char.ftl +8 -0
  174. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/any_char.json +68 -0
  175. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/astral.ftl +20 -0
  176. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/astral.json +174 -0
  177. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/call_expressions.ftl +120 -0
  178. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/call_expressions.json +1266 -0
  179. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/callee_expressions.ftl +46 -0
  180. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/callee_expressions.json +268 -0
  181. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/comments.ftl +20 -0
  182. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/comments.json +82 -0
  183. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/cr_err_literal.ftl +5 -0
  184. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/cr_err_literal.json +10 -0
  185. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/cr_err_selector.ftl +4 -0
  186. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/cr_err_selector.json +10 -0
  187. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/cr_multikey.ftl +5 -0
  188. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/cr_multikey.json +23 -0
  189. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/cr_multilinevalue.ftl +13 -0
  190. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/cr_multilinevalue.json +23 -0
  191. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/crlf.ftl +18 -0
  192. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/crlf.json +76 -0
  193. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/eof_comment.ftl +3 -0
  194. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/eof_comment.json +13 -0
  195. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/eof_empty.ftl +0 -0
  196. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/eof_empty.json +4 -0
  197. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/eof_id.ftl +3 -0
  198. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/eof_id.json +14 -0
  199. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/eof_id_equals.ftl +3 -0
  200. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/eof_id_equals.json +14 -0
  201. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/eof_junk.ftl +3 -0
  202. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/eof_junk.json +14 -0
  203. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/eof_value.ftl +3 -0
  204. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/eof_value.json +27 -0
  205. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/escaped_characters.ftl +37 -0
  206. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/escaped_characters.json +399 -0
  207. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/junk.ftl +21 -0
  208. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/junk.json +68 -0
  209. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/leading_dots.ftl +76 -0
  210. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/leading_dots.json +479 -0
  211. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/literal_expressions.ftl +3 -0
  212. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/literal_expressions.json +68 -0
  213. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/member_expressions.ftl +19 -0
  214. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/member_expressions.json +116 -0
  215. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/messages.ftl +49 -0
  216. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/messages.json +435 -0
  217. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/mixed_entries.ftl +24 -0
  218. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/mixed_entries.json +136 -0
  219. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/multiline_values.ftl +60 -0
  220. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/multiline_values.json +321 -0
  221. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/numbers.ftl +38 -0
  222. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/numbers.json +506 -0
  223. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/obsolete.ftl +29 -0
  224. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/obsolete.json +47 -0
  225. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/placeables.ftl +15 -0
  226. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/placeables.json +113 -0
  227. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/reference_expressions.ftl +30 -0
  228. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/reference_expressions.json +189 -0
  229. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/select_expressions.ftl +64 -0
  230. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/select_expressions.json +362 -0
  231. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/select_indent.ftl +96 -0
  232. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/select_indent.json +705 -0
  233. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/sparse_entries.ftl +39 -0
  234. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/sparse_entries.json +163 -0
  235. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/special_chars.ftl +14 -0
  236. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/special_chars.json +82 -0
  237. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/tab.ftl +14 -0
  238. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/tab.json +70 -0
  239. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/term_parameters.ftl +8 -0
  240. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/term_parameters.json +207 -0
  241. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/terms.ftl +29 -0
  242. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/terms.json +176 -0
  243. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/variables.ftl +17 -0
  244. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/variables.json +132 -0
  245. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/variant_keys.ftl +37 -0
  246. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/variant_keys.json +216 -0
  247. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/whitespace_in_value.ftl +10 -0
  248. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/whitespace_in_value.json +26 -0
  249. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/zero_length.ftl +0 -0
  250. rhoella-0.1.0/testsuite/upstream/fixtures/fixtures/zero_length.json +4 -0
  251. rhoella-0.1.0/testsuite/upstream/fixtures/junk.ftl +21 -0
  252. rhoella-0.1.0/testsuite/upstream/fixtures/junk.json +68 -0
  253. rhoella-0.1.0/testsuite/upstream/fixtures/leading_dots.ftl +76 -0
  254. rhoella-0.1.0/testsuite/upstream/fixtures/leading_dots.json +479 -0
  255. rhoella-0.1.0/testsuite/upstream/fixtures/literal_expressions.ftl +3 -0
  256. rhoella-0.1.0/testsuite/upstream/fixtures/literal_expressions.json +68 -0
  257. rhoella-0.1.0/testsuite/upstream/fixtures/member_expressions.ftl +19 -0
  258. rhoella-0.1.0/testsuite/upstream/fixtures/member_expressions.json +116 -0
  259. rhoella-0.1.0/testsuite/upstream/fixtures/messages.ftl +49 -0
  260. rhoella-0.1.0/testsuite/upstream/fixtures/messages.json +435 -0
  261. rhoella-0.1.0/testsuite/upstream/fixtures/mixed_entries.ftl +24 -0
  262. rhoella-0.1.0/testsuite/upstream/fixtures/mixed_entries.json +136 -0
  263. rhoella-0.1.0/testsuite/upstream/fixtures/multiline_values.ftl +60 -0
  264. rhoella-0.1.0/testsuite/upstream/fixtures/multiline_values.json +321 -0
  265. rhoella-0.1.0/testsuite/upstream/fixtures/numbers.ftl +38 -0
  266. rhoella-0.1.0/testsuite/upstream/fixtures/numbers.json +506 -0
  267. rhoella-0.1.0/testsuite/upstream/fixtures/obsolete.ftl +29 -0
  268. rhoella-0.1.0/testsuite/upstream/fixtures/obsolete.json +47 -0
  269. rhoella-0.1.0/testsuite/upstream/fixtures/placeables.ftl +15 -0
  270. rhoella-0.1.0/testsuite/upstream/fixtures/placeables.json +113 -0
  271. rhoella-0.1.0/testsuite/upstream/fixtures/reference_expressions.ftl +30 -0
  272. rhoella-0.1.0/testsuite/upstream/fixtures/reference_expressions.json +189 -0
  273. rhoella-0.1.0/testsuite/upstream/fixtures/select_expressions.ftl +64 -0
  274. rhoella-0.1.0/testsuite/upstream/fixtures/select_expressions.json +362 -0
  275. rhoella-0.1.0/testsuite/upstream/fixtures/select_indent.ftl +96 -0
  276. rhoella-0.1.0/testsuite/upstream/fixtures/select_indent.json +705 -0
  277. rhoella-0.1.0/testsuite/upstream/fixtures/sparse_entries.ftl +39 -0
  278. rhoella-0.1.0/testsuite/upstream/fixtures/sparse_entries.json +163 -0
  279. rhoella-0.1.0/testsuite/upstream/fixtures/special_chars.ftl +14 -0
  280. rhoella-0.1.0/testsuite/upstream/fixtures/special_chars.json +82 -0
  281. rhoella-0.1.0/testsuite/upstream/fixtures/tab.ftl +14 -0
  282. rhoella-0.1.0/testsuite/upstream/fixtures/tab.json +70 -0
  283. rhoella-0.1.0/testsuite/upstream/fixtures/term_parameters.ftl +8 -0
  284. rhoella-0.1.0/testsuite/upstream/fixtures/term_parameters.json +207 -0
  285. rhoella-0.1.0/testsuite/upstream/fixtures/terms.ftl +29 -0
  286. rhoella-0.1.0/testsuite/upstream/fixtures/terms.json +176 -0
  287. rhoella-0.1.0/testsuite/upstream/fixtures/variables.ftl +17 -0
  288. rhoella-0.1.0/testsuite/upstream/fixtures/variables.json +132 -0
  289. rhoella-0.1.0/testsuite/upstream/fixtures/variant_keys.ftl +37 -0
  290. rhoella-0.1.0/testsuite/upstream/fixtures/variant_keys.json +216 -0
  291. rhoella-0.1.0/testsuite/upstream/fixtures/whitespace_in_value.ftl +10 -0
  292. rhoella-0.1.0/testsuite/upstream/fixtures/whitespace_in_value.json +26 -0
  293. rhoella-0.1.0/testsuite/upstream/fixtures/zero_length.ftl +0 -0
  294. rhoella-0.1.0/testsuite/upstream/fixtures/zero_length.json +4 -0
@@ -0,0 +1,35 @@
1
+ name: CI
2
+
3
+ # SSOT contract: this repo vendors the rhoella testsuite at a pinned
4
+ # ref of rhoella/rhoella (the arbiter). The diff gate fails loudly on
5
+ # drift; the parity suite then runs against the vendored copy.
6
+ env:
7
+ RHOELLA_REF: "94b39de3a3c0bdda8791f5453957c1f818598cb2"
8
+
9
+ on:
10
+ push:
11
+ branches: [main]
12
+ pull_request:
13
+
14
+ jobs:
15
+ test:
16
+ runs-on: ubuntu-latest
17
+ strategy:
18
+ matrix:
19
+ python-version: ["3.10", "3.12"]
20
+ steps:
21
+ - uses: actions/checkout@v7
22
+ - name: Clone the SSOT (rhoella/rhoella) at $RHOELLA_REF
23
+ run: |
24
+ git clone https://github.com/rhoella/rhoella.git ../rhoella
25
+ git -C ../rhoella checkout --detach "$RHOELLA_REF"
26
+ - name: Verify the vendored testsuite matches the SSOT
27
+ run: diff -r testsuite ../rhoella/testsuite
28
+ - uses: actions/setup-python@v5
29
+ with:
30
+ python-version: ${{ matrix.python-version }}
31
+ # The toolcache Pythons bundle no packages: the behavior fixtures
32
+ # need the PyYAML safe loader explicitly installed.
33
+ - run: python3 -m pip install pyyaml
34
+ - run: python3 test_parity.py
35
+ - run: python3 test_behavior.py
@@ -0,0 +1,3 @@
1
+ __pycache__/
2
+ *.pyc
3
+ dist/
rhoella-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.5
2
+ Name: rhoella
3
+ Version: 0.1.0
4
+ Summary: Rhoella — a minimal Fluent (FTL) engine for Metanorma (from the Greek rhoia: the flow)
5
+ Author: Metanorma
6
+ License: BSD-2-Clause
7
+ Keywords: fluent,ftl,i18n,l10n,localization,metanorma
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Topic :: Software Development :: Internationalization
10
+ Requires-Python: >=3.10
11
+ Description-Content-Type: text/markdown
12
+
13
+ # rhoella-py
14
+
15
+ The Python port of [rhoella](https://github.com/rhoella/rhoella) — a
16
+ minimal Fluent (FTL) engine for Metanorma (from the Greek ῥοία: the
17
+ flow). Conformance contract: the vendored `testsuite/` snapshots
18
+ rhoella/rhoella's testsuite at a pinned ref; CI re-verifies the
19
+ snapshot against the SSOT and runs the parity + conformance suites
20
+ (upstream classification + resolution vectors).
21
+
22
+ python3 test_parity.py
@@ -0,0 +1,10 @@
1
+ # rhoella-py
2
+
3
+ The Python port of [rhoella](https://github.com/rhoella/rhoella) — a
4
+ minimal Fluent (FTL) engine for Metanorma (from the Greek ῥοία: the
5
+ flow). Conformance contract: the vendored `testsuite/` snapshots
6
+ rhoella/rhoella's testsuite at a pinned ref; CI re-verifies the
7
+ snapshot against the SSOT and runs the parity + conformance suites
8
+ (upstream classification + resolution vectors).
9
+
10
+ python3 test_parity.py
@@ -0,0 +1,20 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "rhoella"
7
+ version = "0.1.0"
8
+ description = "Rhoella — a minimal Fluent (FTL) engine for Metanorma (from the Greek rhoia: the flow)"
9
+ readme = "README.md"
10
+ license = {text = "BSD-2-Clause"}
11
+ requires-python = ">=3.10"
12
+ authors = [{name = "Metanorma"}]
13
+ keywords = ["fluent", "ftl", "l10n", "i18n", "localization", "metanorma"]
14
+ classifiers = [
15
+ "Programming Language :: Python :: 3",
16
+ "Topic :: Software Development :: Internationalization",
17
+ ]
18
+
19
+ [tool.hatch.build.targets.wheel]
20
+ packages = ["rhoella"]