Skip to content

Commit a5af766

Browse files
committed
support python 3.14
1 parent 2943fe7 commit a5af766

File tree

6 files changed

+543
-428
lines changed

6 files changed

+543
-428
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
actions: write
3131
strategy:
3232
matrix:
33-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
33+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14.0-rc.3']
3434
django-version:
3535
- '3.2' # LTS April 2024
3636
- '4.2' # LTS April 2026
@@ -54,6 +54,13 @@ jobs:
5454
django-version: '4.2'
5555
- python-version: '3.13'
5656
django-version: '5.0'
57+
58+
- python-version: '3.14.0-rc.3'
59+
django-version: '3.2'
60+
- python-version: '3.14.0-rc.3'
61+
django-version: '4.2'
62+
- python-version: '3.14.0-rc.3'
63+
django-version: '5.0'
5764
env:
5865
COVERAGE_FILE: linux-py${{ matrix.python-version }}-dj${{ matrix.django-version }}.coverage
5966
TEST_PYTHON_VERSION: ${{ matrix.python-version }}

doc/source/changelog.rst

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

5+
v3.3.3 (2025-09-22)
6+
===================
7+
8+
* Add support for Python 3.14
9+
10+
511
v3.3.2 (2025-07-18)
612
===================
713

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "django-render-static"
7-
version = "3.3.2"
7+
version = "3.3.3"
88
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."
99
requires-python = ">=3.9,<4.0"
1010
authors = [
@@ -42,6 +42,7 @@ classifiers = [
4242
"Programming Language :: Python :: 3.11",
4343
"Programming Language :: Python :: 3.12",
4444
"Programming Language :: Python :: 3.13",
45+
"Programming Language :: Python :: 3.14",
4546
"Topic :: Internet :: WWW/HTTP",
4647
"Topic :: Internet :: WWW/HTTP :: Site Management",
4748
"Topic :: Software Development :: Libraries",

src/render_static/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
1818
"""
1919

20-
VERSION = (3, 3, 2)
20+
VERSION = (3, 3, 3)
2121

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

tests/verify_environment.py

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
import sys
3-
import django
3+
from django import VERSION
4+
from packaging.version import parse as parse_version
45

56

67
def test():
@@ -10,17 +11,14 @@ def test():
1011
expected_python = os.environ["TEST_PYTHON_VERSION"]
1112
expected_django = os.environ["TEST_DJANGO_VERSION"]
1213

13-
expected_python = tuple(int(v) for v in expected_python.split(".") if v)
14-
assert sys.version_info[: len(expected_python)] == expected_python, (
15-
f"Python Version Mismatch: {sys.version_info[: len(expected_python)]} != "
16-
f"{expected_python}"
14+
expected_python = parse_version(expected_python)
15+
assert sys.version_info[:2] == (expected_python.major, expected_python.minor), (
16+
f"Python Version Mismatch: {sys.version_info[:2]} != {expected_python}"
1717
)
1818

19-
try:
20-
expected_django = tuple(int(v) for v in expected_django.split(".") if v)
21-
assert django.VERSION[: len(expected_django)] == expected_django, (
22-
f"Django Version Mismatch: {django.VERSION[: len(expected_django)]} != "
23-
f"{expected_django}"
24-
)
25-
except ValueError:
26-
assert expected_django == django.__version__
19+
dj_actual = VERSION[:2]
20+
expected_django = parse_version(expected_django)
21+
dj_expected = (expected_django.major, expected_django.minor)
22+
assert dj_actual == dj_expected, (
23+
f"Django Version Mismatch: {dj_actual} != {expected_django}"
24+
)

0 commit comments

Comments
 (0)