Gilles Peskine | 87485a3 | 2021-11-17 19:17:03 +0100 | [diff] [blame] | 1 | # Python package requirements for driver implementers. |
| 2 | |
Gilles Peskine | 7b2804b | 2022-02-19 20:28:21 +0100 | [diff] [blame] | 3 | # Jinja2 <3.0 needs an older version of markupsafe, but does not |
| 4 | # declare it. |
| 5 | # https://github.com/pallets/markupsafe/issues/282 |
| 6 | # https://github.com/pallets/jinja/issues/1585 |
| 7 | markupsafe < 2.1 |
| 8 | |
Gilles Peskine | 87485a3 | 2021-11-17 19:17:03 +0100 | [diff] [blame] | 9 | # Use the version of Jinja that's in Ubuntu 20.04. |
Dave Rodgman | 017a199 | 2022-03-31 14:07:01 +0100 | [diff] [blame] | 10 | # See https://github.com/Mbed-TLS/mbedtls/pull/5067#discussion_r738794607 . |
Gilles Peskine | b3e5340 | 2021-12-02 12:48:50 +0100 | [diff] [blame] | 11 | # Note that Jinja 3.0 drops support for Python 3.5, so we need to support |
| 12 | # Jinja 2.x as long as we're still using Python 3.5 anywhere. |
Bence Szépkúti | 44f138d | 2022-05-13 15:35:55 +0200 | [diff] [blame] | 13 | # Jinja 2.10.1 doesn't support Python 3.10+ |
| 14 | Jinja2 >= 2.10.1; python_version < '3.10' |
| 15 | Jinja2 >= 2.10.3; python_version >= '3.10' |
Gilles Peskine | 7b2804b | 2022-02-19 20:28:21 +0100 | [diff] [blame] | 16 | # Jinja2 >=2.10, <3.0 needs a separate package for type annotations |
Gilles Peskine | 87485a3 | 2021-11-17 19:17:03 +0100 | [diff] [blame] | 17 | types-Jinja2 |
| 18 | |