Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-09-14 | Move py-jinja to src foldermain-16k | Cole Faust | |
When soong packages python files into a zip file, it will take their path relative to the Android.bp file and preserve that relative path in the zip file. Then the root directory of the zip file is added to the PYTHONPATH. Currently, all subdirectories of the top level zip directory are also added to the PYTHONPATH, but we want to remove this. Since jinja was being added to the zip file under src/jinja2, "import jinja2" works currectly, but won't work after the PYTHONPATH changes (you'd have to say "import src.jinja2"). To fix this, move the Android.bp file for py-jinja into the src folder, so the relative paths don't contain src/. Soong python modules do have a pkg_path attribute, which essentially adds more folders to the relative path, but we would need an attribute that removes them, which doesn't exist. This could also be done with a filegroup with the "path" attribute, but bp2build doesn't support that, so I opted to go with this option instead. Bug: 245583294 Test: Presubmits Change-Id: I38247f1f7e0a21d2f4f91ff3fc3c04e02ad52954 | |||
2020-08-18 | Revert "Revert "Import external/python/jinja into master"" | IRIS YANG | |
This reverts commit 81aec74062b5c629b3408f7f3d18343ec0bbcab8. Reason for revert: It seems Jinja folder is empty. Revert the revert to add files back. Third-party review: ag/11821018 Change-Id: I4429a3b3448cdf2eb62ec388392a2a29fa3dbc21 | |||
2020-07-17 | Revert "Import external/python/jinja into master" | IRIS YANG | |
This reverts commit e868444bb65b7ae2a025b1c8c7854a8c4f2f58c1. Reason for revert: Since build will failed. We might need to wait b/160731429 fixed and submit it again. Change-Id: I56449de779d11c13cdfe1243b9a9726f94e55b33 | |||
2020-06-22 | ignore trim_blocks using '+%}' | Amy | |
2020-06-22 | imported templates can see the current globals | Amy | |
_get_default_module takes an optional context to indicate that the template is imported. If there are differences between the environment and rendered template globals, a new module is used for the imported template. | |||
2020-06-15 | remove sandbox._MagicFormatMapping | Amy | |
add test for escape formatter | |||
2020-05-23 | update package and filesystem loader docs | David Lord | |
2020-04-13 | Merge branch '2.11.x' | David Lord | |
2020-04-13 | release version 2.11.2 | David Lord | |
2020-04-13 | native only evals at end of render | David Lord | |
Co-authored-by: Martin Krizek <mkrizek@redhat.com> | |||
2020-04-13 | Fix unintended lstrip_blocks behavior. Fixes #1138 | Peter Dolak | |
Introduced in #858. Tests will follow, also results of performance testing. | |||
2020-04-08 | Update oudated CutomLoader code example (#1185) | Xinbin Huang | |
py3 for CustomLoader example | |||
2020-04-08 | Merge tag '2.11.1' into 2.11.x | David Lord | |
2020-03-30 | add changelog and cleanup for pep 451 support | David Lord | |
2020-03-30 | Use importlib machinery to fix PEP 451 import hooks | Anthony Sottile | |
2020-03-30 | Merge branch '2.11.x' | David Lord | |
2020-03-30 | namespace object works in async templates | Bart Feenstra | |
2020-03-30 | Fix tokens line number calculation when whitespace stripping is used | Andrey Lisin | |
2020-03-30 | Merge branch '2.11.x' | David Lord | |
2020-03-30 | Revert "PackageLoader doesn't depend on setuptools" | David Lord | |
This reverts commit 4b6077a8c0a0f56bb8dbac37f8f9027130b4091c. | |||
2020-03-30 | Revert "PackageLoader understands namespace packages" | David Lord | |
This reverts commit d2e0e78afe7c6ae864a20c2cc29e80936cff47af. | |||
2020-03-27 | AttributeError in undefined message doesn't cause RuntimeError | David Lord | |
2020-02-28 | better PyObject_HEAD size calculation | David Lord | |
fixes infinite loop on Python 3.6 32-bit | |||
2020-02-27 | Merge branch '2.11.x' | David Lord | |
2020-02-27 | use soft_str in do_wordcount, to trigger undefined | Matt Martz | |
2020-02-05 | add note about ugettext | David Lord | |
2020-02-05 | bump bytecode cache version | David Lord | |
2020-02-05 | apply pyupgrade and f-strings | David Lord | |
2020-02-05 | remove more compat code | David Lord | |
2020-02-05 | remove _compat module | David Lord | |
2020-02-05 | remove deprecated code | David Lord | |
2020-02-05 | remove Python 2 from docs | David Lord | |
2020-02-05 | Merge branch '2.11.x' | David Lord | |
2020-02-04 | Use stricter getattr() checks for decorator functions | Tomas Krizek | |
Explicit checks for "is True" prevents unexpected behaviour with objects that are callable and have permissive gettatr(), such as Mock. Fixes #1145 | |||
2020-01-30 | release version 2.11.1 | David Lord | |
2020-01-30 | Merge branch '2.11.x' | David Lord | |
2020-01-30 | Fix attribute access in async code. Fixes #1141 | Armin Ronacher | |
2020-01-27 | start version 3.0.0 | David Lord | |
2020-01-27 | release version 2.11.0 | David Lord | |
2020-01-26 | import Markup from markupsafe, fix flake8 import warnings | David Lord | |
2020-01-26 | increment bytecode cache version | David Lord | |
2020-01-26 | Revert "rename directory to jinja" | David Lord | |
This reverts commit eac9acb7aeabf6f3e0ed4cb876e200e5e72d0d0e. | |||
2020-01-26 | Revert "rename imports to jinja" | David Lord | |
This reverts commit 1167525b73863119f8bbec03ddb9d35eacff4bef. | |||
2020-01-26 | Revert "add warning and alias for jinja2" | David Lord | |
This reverts commit fc9c60ba457efc4cadf6fa2886567e0ee6ca1a99. | |||
2020-01-10 | add warning and alias for jinja2 | David Lord | |
2020-01-10 | rename imports to jinja | David Lord | |
2020-01-10 | rename directory to jinja | David Lord | |
2020-01-10 | simplify module docstrings | David Lord | |
2020-01-10 | remove old scripts and examples | David Lord | |
2020-01-10 | more relative imports | David Lord | |
_identifier exports a compiled regex instead of a string to avoid some tricky cleanup |