xcomponent 0.8.1__tar.gz → 0.8.2__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 (89) hide show
  1. {xcomponent-0.8.1 → xcomponent-0.8.2}/CHANGELOG.md +4 -0
  2. {xcomponent-0.8.1 → xcomponent-0.8.2}/Cargo.lock +1 -1
  3. {xcomponent-0.8.1 → xcomponent-0.8.2}/Cargo.toml +1 -1
  4. {xcomponent-0.8.1 → xcomponent-0.8.2}/PKG-INFO +1 -1
  5. {xcomponent-0.8.1 → xcomponent-0.8.2}/pyproject.toml +1 -1
  6. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/python/xcomponent/adapters/babel.py +10 -2
  7. {xcomponent-0.8.1 → xcomponent-0.8.2}/uv.lock +1 -1
  8. {xcomponent-0.8.1 → xcomponent-0.8.2}/.github/workflows/build-sdist.yml +0 -0
  9. {xcomponent-0.8.1 → xcomponent-0.8.2}/.github/workflows/build-wheels.yml +0 -0
  10. {xcomponent-0.8.1 → xcomponent-0.8.2}/.github/workflows/publish-doc.yml +0 -0
  11. {xcomponent-0.8.1 → xcomponent-0.8.2}/.github/workflows/publish-pypi.yml +0 -0
  12. {xcomponent-0.8.1 → xcomponent-0.8.2}/.github/workflows/release.yml +0 -0
  13. {xcomponent-0.8.1 → xcomponent-0.8.2}/.github/workflows/tests-artifacts.yml +0 -0
  14. {xcomponent-0.8.1 → xcomponent-0.8.2}/.github/workflows/tests.yml +0 -0
  15. {xcomponent-0.8.1 → xcomponent-0.8.2}/.gitignore +0 -0
  16. {xcomponent-0.8.1 → xcomponent-0.8.2}/.python-version +0 -0
  17. {xcomponent-0.8.1 → xcomponent-0.8.2}/Justfile +0 -0
  18. {xcomponent-0.8.1 → xcomponent-0.8.2}/LICENSE +0 -0
  19. {xcomponent-0.8.1 → xcomponent-0.8.2}/README.md +0 -0
  20. {xcomponent-0.8.1 → xcomponent-0.8.2}/docs/Makefile +0 -0
  21. {xcomponent-0.8.1 → xcomponent-0.8.2}/docs/source/conf.py +0 -0
  22. {xcomponent-0.8.1 → xcomponent-0.8.2}/docs/source/develop/.gitkeep +0 -0
  23. {xcomponent-0.8.1 → xcomponent-0.8.2}/docs/source/index.md +0 -0
  24. {xcomponent-0.8.1 → xcomponent-0.8.2}/docs/source/user/changelog.md +0 -0
  25. {xcomponent-0.8.1 → xcomponent-0.8.2}/docs/source/user/getting_started.md +0 -0
  26. {xcomponent-0.8.1 → xcomponent-0.8.2}/scripts/get_version.py +0 -0
  27. {xcomponent-0.8.1 → xcomponent-0.8.2}/scripts/write_changelog.py +0 -0
  28. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/python/xcomponent/__init__.py +0 -0
  29. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/python/xcomponent/adapters/__init__.py +0 -0
  30. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/python/xcomponent/py.typed +0 -0
  31. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/python/xcomponent/service/__init__.py +0 -0
  32. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/python/xcomponent/service/catalog.py +0 -0
  33. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/python/xcomponent/xcore.pyi +0 -0
  34. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/rust/catalog/catalog.rs +0 -0
  35. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/rust/catalog/mod.rs +0 -0
  36. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/rust/context.rs +0 -0
  37. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/rust/expression/ast/eval.rs +0 -0
  38. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/rust/expression/ast/mod.rs +0 -0
  39. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/rust/expression/ast/model.rs +0 -0
  40. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/rust/expression/ast/parse.rs +0 -0
  41. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/rust/expression/grammar.pest +0 -0
  42. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/rust/expression/i18n.rs +0 -0
  43. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/rust/expression/mod.rs +0 -0
  44. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/rust/expression/parser.rs +0 -0
  45. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/rust/expression/tokens.rs +0 -0
  46. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/rust/lib.rs +0 -0
  47. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/rust/markup/grammar.pest +0 -0
  48. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/rust/markup/mod.rs +0 -0
  49. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/rust/markup/parser.rs +0 -0
  50. {xcomponent-0.8.1 → xcomponent-0.8.2}/src/rust/markup/tokens.rs +0 -0
  51. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/__init__.py +0 -0
  52. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/functionals/__init__.py +0 -0
  53. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/functionals/i18n/__init__.py +0 -0
  54. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/functionals/i18n/babel.ini +0 -0
  55. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/functionals/i18n/fr.mo +0 -0
  56. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/functionals/i18n/fr.po +0 -0
  57. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/functionals/i18n/mydomain.pot +0 -0
  58. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/functionals/i18n/test_l10n.py +0 -0
  59. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/__init__.py +0 -0
  60. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/adapters/__init__.py +0 -0
  61. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/adapters/test_babel.py +0 -0
  62. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/conftest.py +0 -0
  63. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/expression/test_binary_eq.py +0 -0
  64. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/expression/test_binary_op.py +0 -0
  65. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/expression/test_binary_op_bool.py +0 -0
  66. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/expression/test_default_values.py +0 -0
  67. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/expression/test_field_access.py +0 -0
  68. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/expression/test_for_expr.py +0 -0
  69. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/expression/test_func.py +0 -0
  70. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/expression/test_if_expr.py +0 -0
  71. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/expression/test_let.py +0 -0
  72. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/expression/test_nested.py +0 -0
  73. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/expression/test_render_comment.py +0 -0
  74. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/expression/test_script.py +0 -0
  75. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/expression/test_str_dedent.py +0 -0
  76. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/expression/test_str_method.py +0 -0
  77. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/expression/test_types.py +0 -0
  78. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/expression/test_unary.py +0 -0
  79. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/test_core.py +0 -0
  80. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/test_named_component.py +0 -0
  81. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/test_render_attributes.py +0 -0
  82. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/test_render_context.py +0 -0
  83. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/test_render_globals.py +0 -0
  84. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/test_render_globals_obj.py +0 -0
  85. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/test_render_globals_obj2.py +0 -0
  86. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/test_render_nested_dict.py +0 -0
  87. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/test_render_nested_node.py +0 -0
  88. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/test_render_node.py +0 -0
  89. {xcomponent-0.8.1 → xcomponent-0.8.2}/tests/unittests/test_render_script.py +0 -0
@@ -1,3 +1,7 @@
1
+ ## 0.8.2 - 2025-10-18
2
+
3
+ * Be tolerant in case of markup or expression error while extracting locales.
4
+
1
5
  ## 0.8.1 - 2025-10-18
2
6
 
3
7
  * Fix babel entrypoint to find xcomponent messages extraction method.
@@ -595,7 +595,7 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
595
595
 
596
596
  [[package]]
597
597
  name = "xcore"
598
- version = "0.8.1"
598
+ version = "0.8.2"
599
599
  dependencies = [
600
600
  "env_logger",
601
601
  "html-escape",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "xcore"
3
- version = "0.8.1"
3
+ version = "0.8.2"
4
4
  authors = ["Guillaume Gauvrit <guillaume@gauvr.it>"]
5
5
  edition = "2021"
6
6
  description = "JSX-like for python using maturin/pyo3 and pest."
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xcomponent
3
- Version: 0.8.1
3
+ Version: 0.8.2
4
4
  Classifier: License :: OSI Approved :: MIT License
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: Programming Language :: Python :: 3.11
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xcomponent"
3
- version = "0.8.1"
3
+ version = "0.8.2"
4
4
  description = "An embeded component base template engine - inspired by JSX"
5
5
  readme = "README.md"
6
6
  authors = [{ name = "Guillaume Gauvrit", email = "guillaume@gauvr.it" }]
@@ -33,7 +33,11 @@ def extract_from_markup(node: XNode, offset: int) -> Iterator[ExtractionInfo]:
33
33
  for nfo in extract_from_markup(child, offset):
34
34
  yield nfo
35
35
  case XExpression(expr):
36
- msgs = extract_expr_i18n_messages(expr)
36
+ try:
37
+ msgs = extract_expr_i18n_messages(expr)
38
+ except SyntaxError:
39
+ # should log something here
40
+ return
37
41
  for msg in msgs:
38
42
  match msg.funcname:
39
43
  case "gettext":
@@ -149,6 +153,10 @@ def extract_xcomponent(
149
153
 
150
154
  for tok, value, (lineno, _), _, _ in tokens:
151
155
  if tok == STRING:
152
- markup = parse_markup(f"<>{value}</>")
156
+ try:
157
+ markup = parse_markup(f"<>{value}</>")
158
+ except ValueError:
159
+ # should log something here
160
+ continue
153
161
  for messageinfo in extract_from_markup(markup, lineno):
154
162
  yield messageinfo
@@ -1407,7 +1407,7 @@ wheels = [
1407
1407
 
1408
1408
  [[package]]
1409
1409
  name = "xcomponent"
1410
- version = "0.8.1"
1410
+ version = "0.8.2"
1411
1411
  source = { editable = "." }
1412
1412
 
1413
1413
  [package.optional-dependencies]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes