Skip to content

Commit a5281c5

Browse files
committed
Bumped tailwind css version to 3.4.13
1 parent d7815ef commit a5281c5

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Removed django-appconf again.
66
- Switched from pyright to mypy for type checking.
77
- Fixed broken links in the documentation.
8+
- Bumped default version of Tailwind CSS to 3.4.13.
89

910
## 2.19.0
1011

src/django_tailwind_cli/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
from django.conf import settings
22

3+
DEFAULT_VERSION = "3.4.13"
34
DEFAULT_SRC_REPO = "tailwindlabs/tailwindcss"
45

56

67
def get_tailwind_cli_version() -> str:
78
"""Get the version of the Tailwind CSS CLI."""
8-
return getattr(settings, "TAILWIND_CLI_VERSION", "3.4.11")
9+
return getattr(settings, "TAILWIND_CLI_VERSION", DEFAULT_VERSION)
910

1011

1112
def get_tailwind_cli_path() -> str:

tests/test_utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22

3-
from django_tailwind_cli import utils
3+
from django_tailwind_cli import conf, utils
44

55

66
@pytest.fixture(autouse=True)
@@ -93,10 +93,10 @@ def test_get_download_url(mocker, platform, machine, result):
9393
@pytest.mark.parametrize(
9494
"platform,machine,result",
9595
[
96-
("Windows", "x86_64", "tailwindcss-windows-x64-3.4.11.exe"),
97-
("Windows", "amd64", "tailwindcss-windows-x64-3.4.11.exe"),
98-
("Darwin", "aarch64", "tailwindcss-macos-arm64-3.4.11"),
99-
("Darwin", "arm64", "tailwindcss-macos-arm64-3.4.11"),
96+
("Windows", "x86_64", f"tailwindcss-windows-x64-{conf.DEFAULT_VERSION}.exe"),
97+
("Windows", "amd64", f"tailwindcss-windows-x64-{conf.DEFAULT_VERSION}.exe"),
98+
("Darwin", "aarch64", f"tailwindcss-macos-arm64-{conf.DEFAULT_VERSION}"),
99+
("Darwin", "arm64", f"tailwindcss-macos-arm64-{conf.DEFAULT_VERSION}"),
100100
],
101101
)
102102
def test_get_full_cli_path(mocker, platform, machine, result):

0 commit comments

Comments
 (0)