Skip to content

Commit

Permalink
Bumped tailwind css version to 3.4.13
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverandrich committed Nov 17, 2024
1 parent d7815ef commit a5281c5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Removed django-appconf again.
- Switched from pyright to mypy for type checking.
- Fixed broken links in the documentation.
- Bumped default version of Tailwind CSS to 3.4.13.

## 2.19.0

Expand Down
3 changes: 2 additions & 1 deletion src/django_tailwind_cli/conf.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
from django.conf import settings

DEFAULT_VERSION = "3.4.13"
DEFAULT_SRC_REPO = "tailwindlabs/tailwindcss"


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


def get_tailwind_cli_path() -> str:
Expand Down
10 changes: 5 additions & 5 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from django_tailwind_cli import utils
from django_tailwind_cli import conf, utils


@pytest.fixture(autouse=True)
Expand Down Expand Up @@ -93,10 +93,10 @@ def test_get_download_url(mocker, platform, machine, result):
@pytest.mark.parametrize(
"platform,machine,result",
[
("Windows", "x86_64", "tailwindcss-windows-x64-3.4.11.exe"),
("Windows", "amd64", "tailwindcss-windows-x64-3.4.11.exe"),
("Darwin", "aarch64", "tailwindcss-macos-arm64-3.4.11"),
("Darwin", "arm64", "tailwindcss-macos-arm64-3.4.11"),
("Windows", "x86_64", f"tailwindcss-windows-x64-{conf.DEFAULT_VERSION}.exe"),
("Windows", "amd64", f"tailwindcss-windows-x64-{conf.DEFAULT_VERSION}.exe"),
("Darwin", "aarch64", f"tailwindcss-macos-arm64-{conf.DEFAULT_VERSION}"),
("Darwin", "arm64", f"tailwindcss-macos-arm64-{conf.DEFAULT_VERSION}"),
],
)
def test_get_full_cli_path(mocker, platform, machine, result):
Expand Down

0 comments on commit a5281c5

Please sign in to comment.