diff --git a/changelog.d/20240118_155012_r.khetani.md b/changelog.d/20240118_155012_r.khetani.md new file mode 100644 index 0000000..fdd4fa9 --- /dev/null +++ b/changelog.d/20240118_155012_r.khetani.md @@ -0,0 +1 @@ +[Improvement] Add `.webp` and. `.otf` extensions to list of binary extensions to ignore when rendering templates. \ No newline at end of file diff --git a/requirements/base.txt b/requirements/base.txt index 53ea284..1526e68 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -20,7 +20,7 @@ google-auth==2.23.3 # via kubernetes idna==3.4 # via requests -jinja2==3.1.2 +jinja2==3.1.3 # via -r requirements/base.in kubernetes==28.1.0 # via -r requirements/base.in @@ -40,7 +40,7 @@ pyasn1==0.5.0 # rsa pyasn1-modules==0.3.0 # via google-auth -pycryptodome==3.19.0 +pycryptodome==3.20.0 # via -r requirements/base.in python-dateutil==2.8.2 # via kubernetes diff --git a/requirements/dev.txt b/requirements/dev.txt index fd7ba3e..3515973 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -74,7 +74,7 @@ jeepney==0.8.0 # via # keyring # secretstorage -jinja2==3.1.2 +jinja2==3.1.3 # via # -r requirements/base.txt # scriv @@ -136,7 +136,7 @@ pyasn1-modules==0.3.0 # google-auth pycparser==2.21 # via cffi -pycryptodome==3.19.0 +pycryptodome==3.20.0 # via -r requirements/base.txt pygments==2.16.1 # via diff --git a/requirements/docs.txt b/requirements/docs.txt index c4f5c6e..8acbfb5 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -44,7 +44,7 @@ imagesize==1.4.1 # via sphinx importlib-metadata==6.8.0 # via sphinx -jinja2==3.1.2 +jinja2==3.1.3 # via # -r requirements/base.txt # sphinx @@ -76,7 +76,7 @@ pyasn1-modules==0.3.0 # via # -r requirements/base.txt # google-auth -pycryptodome==3.19.0 +pycryptodome==3.20.0 # via -r requirements/base.txt pygments==2.16.1 # via sphinx diff --git a/tutor/env.py b/tutor/env.py index cccce94..5e668b8 100644 --- a/tutor/env.py +++ b/tutor/env.py @@ -15,7 +15,17 @@ from tutor.types import Config, ConfigValue TEMPLATES_ROOT = pkg_resources.resource_filename("tutor", "templates") VERSION_FILENAME = "version" -BIN_FILE_EXTENSIONS = [".ico", ".jpg", ".patch", ".png", ".ttf", ".woff", ".woff2"] +BIN_FILE_EXTENSIONS = [ + ".ico", + ".jpg", + ".otf", + ".patch", + ".png", + ".ttf", + ".webp", + ".woff", + ".woff2", +] JinjaFilter = t.Callable[..., t.Any]