David Lord
b7ce542db1
deprecate __version__
2025-05-28 11:39:42 -07:00
David Lord
9508c57faa
bump minimum versions of dependencies
2025-05-28 11:17:40 -07:00
David Lord
0cc6ff9051
drop end of life python versions
2025-05-28 11:13:57 -07:00
Adam Englander
51dbd8977e
use uv for dependency management
...
drop python 3.7 and 3.8
move tox config into pyproject
use new license metadata
2025-05-28 10:08:29 -07:00
David Lord
220e67ae99
Merge branch 'stable'
2025-03-05 12:15:40 -08:00
David Lord
15206881c0
release version 3.1.6
2025-03-05 11:51:17 -08:00
David Lord
065334d1ee
attr filter uses env.getattr
2025-03-05 10:08:48 -08:00
David Lord
033c20015c
start version 3.1.6
2025-03-05 09:50:59 -08:00
David Lord
6aeab5d1da
Merge branch 'stable'
2024-12-21 10:47:46 -08:00
David Lord
877f6e51be
release version 3.1.5
2024-12-21 10:16:13 -08:00
Kevin Brown-Silva
66587ce989
Fix bug where set would sometimes fail within if
...
There was a bug that came as the result of an early optimization done
within ID tracking that caused loading parameters to fail in a very
specific and rare edge case. That edge case only occurred when the
parameter was being set within all 3 standard branches of an if block,
since the optimization would assume that the parameter was never being
referenced and was only ever being set. This would cause the variable to
be set to undefined.
The fix for this was to remove the optimization and still continue to
load in the parameter even if it is set in all 3 branches.
2024-12-21 09:40:06 -08:00
Kevin Brown-Silva
ee832194cd
Add support for namespaces in tuple assignment
...
This fixes a bug that existed because namespaces within `{% set %}`
were treated as a special case. This special case had the side-effect
of bypassing the code which allows for tuples to be assigned to.
The solution was to make tuple handling (and by extension, primary token
handling) aware of namespaces so that namespace tokens can be handled
appropriately. This is handled in a backwards-compatible way which
ensures that we do not try to parse namespace tokens when we otherwise
would be expecting to parse out name tokens with attributes.
Namespace instance checks are moved earlier, and deduplicated, so that
all checks are done before the assignment. Otherwise, the check could be
emitted in the middle of the tuple.
2024-12-20 14:09:40 -08:00
Rens Groothuijsen
d05bd3858c
Pass context when using select
2024-12-19 20:47:24 -08:00
наб
0cd6948192
don't apply urlize to @a@b
2024-12-19 20:37:58 -08:00
Victor Westerhuis
ded9915fc5
improve annotations for methods returning copies
2024-12-19 20:26:44 -08:00
David Lord
aaa083d265
separate messages, add test
2024-12-19 20:15:10 -08:00
David Lord
227edfd372
clean up message, add test
2024-12-19 19:34:34 -08:00
Yourun-Proger
ed5f76206a
FileSystemLoader includes search paths in error
2024-12-19 19:33:29 -08:00
David Lord
b4b28ec01c
fix default for Environment.overlay(enable_async) ( #2061 )
2024-12-19 18:23:52 -08:00
SamyCookie
e45bc745a7
Bugfix: wrong default argument for Environment.overlay(enable_async) parameter
2024-12-19 18:22:32 -08:00
Sigurd Spieckermann
56a724644b
fix f-string syntax error in code generation
2024-12-19 18:08:42 -08:00
Lydxn
91a972f580
sandbox indirect calls to str.format
2024-12-19 12:34:27 -08:00
David Lord
0871c71d01
rearrange change entry
2024-12-19 12:07:14 -08:00
Dylan Scott
b512058270
sandbox disallows clear and pop on mutable sequence
2024-12-19 08:33:38 -08:00
Matt Clay
7232b82462
Fix pickle/copy support for the missing singleton
2024-12-19 08:19:07 -08:00
Matt Davis
d4fb0e8c40
preserve __slots__ on Undefined classes
2024-12-19 08:11:49 -08:00
Anentropic
4936e4d482
make tuple unpacking deterministic in compiler
2024-12-19 08:02:33 -08:00
Felipe Moreno
2eb4542cba
int filter handles OverflowError to handle scientific notation
2024-12-19 07:58:25 -08:00
Mehdi ABAAKOUK
76af7110ea
make unique filter async-aware
2024-12-19 07:19:13 -08:00
Martin Krizek
d3a0b1a4ab
use env.concat when calling block reference
2024-12-19 07:12:43 -08:00
David Lord
c667d56de3
change "per default" to "by default"
2024-12-18 09:33:31 -08:00
David Lord
b002d9c6c3
Merge branch '3.1.x'
2024-05-13 08:47:27 -07:00
Thomas Grainger
1655128cfc
test on trio, fix all missing aclose related warnings ( #1960 )
2024-05-11 15:01:12 -07:00
Thomas Grainger
5bc613ec45
use asyncio.run
2024-05-11 13:41:46 -07:00
David Lord
2fcabb529f
start version 3.1.5
2024-05-11 13:41:03 -07:00
David Lord
11550f9df9
Merge branch '3.1.x'
2024-05-05 16:45:28 -07:00
David Lord
dd4a8b5466
release version 3.1.4
2024-05-05 16:37:30 -07:00
David Lord
bbd5bcee7b
Merge branch '3.1.x'
2024-05-02 09:18:48 -07:00
David Lord
d655030770
disallow invalid characters in keys to xmlattr filter
2024-05-02 09:14:00 -07:00
David Lord
b5c98e78c2
start version 3.1.4
2024-05-02 08:41:50 -07:00
David Lord
fcd3d3bbf3
drop support for Python 3.7
2024-04-23 12:22:59 -07:00
David Lord
3fd91e4d11
Merge branch '3.1.x'
2024-01-10 15:22:02 -08:00
David Lord
36f98854c7
fix pr link
2024-01-10 15:17:32 -08:00
David Lord
d9de4bb215
release version 3.1.3
2024-01-10 15:08:43 -08:00
Aarni Koskela
19a55db3b4
Make nested-trans-block exceptions nicer
2024-01-10 14:27:09 -08:00
Calum Hutton
7dd3680e6e
xmlattr filter disallows keys with spaces
2024-01-10 14:01:13 -08:00
David Lord
8310b2bbef
switch to flit build backend
2023-06-28 07:31:12 -07:00
David Lord
81a23847cd
Merge branch '3.1.x'
2023-06-01 10:50:38 -07:00
David Lord
051df10c7b
fix check for empty required block ( #1858 )
2023-06-01 10:42:27 -07:00
David Lord
37f5b058ee
start version 3.1.3
2023-06-01 10:31:10 -07:00