From 0e821a3b280480aef8d192e726377cbfd02107e9 Mon Sep 17 00:00:00 2001 From: Brian Kohan Date: Thu, 18 Jul 2024 08:08:29 -0700 Subject: [PATCH] fix #158 --- doc/source/changelog.rst | 5 +++++ pyproject.toml | 2 +- render_static/__init__.py | 2 +- render_static/engine.py | 2 ++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/doc/source/changelog.rst b/doc/source/changelog.rst index 0ba3144..3c2dd13 100644 --- a/doc/source/changelog.rst +++ b/doc/source/changelog.rst @@ -2,6 +2,11 @@ Change Log ========== +v3.1.1 (18-JUL-2024) +==================== + +* Fixed `__pycache__ dirs should be ignored during batch rendering. `_ + v3.1.0 (16-JUL-2024) ==================== diff --git a/pyproject.toml b/pyproject.toml index 3e83b51..dd2146c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "django-render-static" -version = "3.1.0" +version = "3.1.1" description = "Use Django's template engine to render static files at deployment or package time. Includes transpilers for extending Django's url reversal and enums to JavaScript." authors = ["Brian Kohan "] license = "MIT" diff --git a/render_static/__init__.py b/render_static/__init__.py index e400e67..19c11a8 100755 --- a/render_static/__init__.py +++ b/render_static/__init__.py @@ -7,7 +7,7 @@ """ -VERSION = (3, 1, 0) +VERSION = (3, 1, 1) __title__ = "Django Render Static" __version__ = ".".join(str(i) for i in VERSION) diff --git a/render_static/engine.py b/render_static/engine.py index 7c71d7e..c009b23 100644 --- a/render_static/engine.py +++ b/render_static/engine.py @@ -730,6 +730,8 @@ def resolve_renderings( continue if any((tmpl_abs_path == excl for excl in excluded_files)): continue + if "__pycache__" in tmpl_abs_path.parts: + continue yield Render( selector=selector, config=config,