Skip to content

Commit 0e821a3

Browse files
committed
fix #158
1 parent 80b0b0b commit 0e821a3

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

doc/source/changelog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Change Log
33
==========
44

5+
v3.1.1 (18-JUL-2024)
6+
====================
7+
8+
* Fixed `__pycache__ dirs should be ignored during batch rendering. <https://github.com/bckohan/django-render-static/issues/158>`_
9+
510
v3.1.0 (16-JUL-2024)
611
====================
712

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "django-render-static"
3-
version = "3.1.0"
3+
version = "3.1.1"
44
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."
55
authors = ["Brian Kohan <[email protected]>"]
66
license = "MIT"

render_static/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
"""
99

10-
VERSION = (3, 1, 0)
10+
VERSION = (3, 1, 1)
1111

1212
__title__ = "Django Render Static"
1313
__version__ = ".".join(str(i) for i in VERSION)

render_static/engine.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,8 @@ def resolve_renderings(
730730
continue
731731
if any((tmpl_abs_path == excl for excl in excluded_files)):
732732
continue
733+
if "__pycache__" in tmpl_abs_path.parts:
734+
continue
733735
yield Render(
734736
selector=selector,
735737
config=config,

0 commit comments

Comments
 (0)