Skip to content

Commit a3db58d

Browse files
committed
Updates contrib and fixes tests
1 parent a588c6f commit a3db58d

File tree

4 files changed

+24
-22
lines changed

4 files changed

+24
-22
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This project aims to provide a comfortable way of using the *Tailwind CSS* frame
1414
> [For instructions on upgrading from `v2` to `v3`, see this post on my blog](https://timonweb.com/django/django-tailwind-with-support-for-the-latest-tailwind-css-v3-is-out/).
1515
1616
## Requirements
17-
Python 3.10 or newer with Django >= 3.2 or newer.
17+
Python 3.11 or newer with Django >= 4.2.20 or newer.
1818

1919
## Documentation
2020
The full documentation is at https://django-tailwind.readthedocs.io/
@@ -37,4 +37,4 @@ Check docs for the [Installation](https://django-tailwind.readthedocs.io/en/late
3737

3838
Please see [CONTRIBUTING](CONTRIBUTING.md).
3939

40-
2019 - 2023 (c) [Tim Kamanin - A Full Stack Django Developer](https://timonweb.com)
40+
2019 - 2025 (c) [Tim Kamanin - A Full Stack Django Developer](https://timonweb.com)

pyproject.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "django-tailwind"
3-
version = "3.8.0"
3+
version = "3.9.0"
44
description = "Tailwind CSS Framework for Django projects"
55
authors = ["Tim Kamanin <[email protected]>"]
66
license = "MIT"
@@ -25,21 +25,21 @@ packages = [
2525
]
2626

2727
[tool.poetry.dependencies]
28-
python = "^3.10.0"
29-
django = ">=3.2.14"
30-
django-browser-reload = {version = "^1.12.1", optional = true}
28+
python = "^3.11.0"
29+
django = ">=4.2.20"
30+
django-browser-reload = { version = "^1.18.0", optional = true }
3131

3232
[tool.poetry.dev-dependencies]
33-
pytest = "^7.4.3"
34-
pytest-django = "^4.7.0"
35-
tox = "^4.11.4"
36-
pre-commit = "^3.6.0"
37-
isort = "^5.13.2"
38-
flake8 = "^6.1.0"
39-
black = "^23.12.0"
40-
Sphinx = "^4.3.1"
33+
pytest = "^8.3.5"
34+
pytest-django = "^4.11.0"
35+
tox = "^4.25.0"
36+
pre-commit = "^4.2.0"
37+
isort = "^6.0.1"
38+
flake8 = "^7.2.0"
39+
black = "^25.1.0"
40+
Sphinx = "^8.2.3"
4141
recommonmark = "^0.7.1"
42-
sphinx-rtd-theme = "^1.2.0"
42+
sphinx-rtd-theme = "^3.0.2"
4343

4444
[tool.poetry.extras]
4545
reload = ["django-browser-reload"]

tests/test_templatetags.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def test_tailwind_css_in_production(settings):
1212
"""
1313
).render(Context({}))
1414

15-
assert '<link rel="stylesheet" href="/static/css/dist/styles.css">' in output
15+
assert '<link rel="stylesheet" type="text/css" href="/static/css/dist/styles.css">' in output
1616
assert "browser-sync/browser-sync-client.js" not in output
1717

1818

@@ -25,7 +25,7 @@ def test_tailwind_css_in_production_with_version(settings):
2525
"""
2626
).render(Context({}))
2727

28-
assert '<link rel="stylesheet" href="/static/css/dist/styles.css?v=123">' in output
28+
assert '<link rel="stylesheet" type="text/css" href="/static/css/dist/styles.css?v=123">' in output
2929
assert "browser-sync/browser-sync-client.js" not in output
3030

3131

@@ -41,7 +41,9 @@ def test_tailwind_css_in_debug(settings):
4141
"""
4242
).render(Context({}))
4343

44-
assert f'<link rel="stylesheet" href="/static/css/dist/styles.css?v={partial_time_version}' in output
44+
assert (
45+
f'<link rel="stylesheet" type="text/css" href="/static/css/dist/styles.css?v={partial_time_version}' in output
46+
)
4547
assert "browser-sync/browser-sync-client.js" not in output
4648

4749

@@ -56,7 +58,7 @@ def test_tailwind_css_in_legacy_tailwind_dev_mode(settings):
5658
"""
5759
).render(Context({}))
5860

59-
assert '<link rel="stylesheet" href="/static/css/dist/styles.css">' in output
61+
assert '<link rel="stylesheet" type="text/css" href="/static/css/dist/styles.css">' in output
6062
assert "//HOST:8383/browser-sync/browser-sync-client.js" in output
6163

6264

@@ -69,7 +71,7 @@ def test_tailwind_css_in_debug_with_version(settings):
6971
"""
7072
).render(Context({}))
7173

72-
assert '<link rel="stylesheet" href="/static/css/dist/styles.css?v=123">' in output
74+
assert '<link rel="stylesheet" type="text/css" href="/static/css/dist/styles.css?v=123">' in output
7375

7476

7577
def test_tailwind_preload_css(settings):

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ignore = 'node_modules'
55

66
[tox]
77
isolated_build = True
8-
envlist = django{32,40,41,42,50}
8+
envlist = django{40,41,42,50}
99

1010
[tox:.package]
1111
# note tox will use the same python version as under what tox is installed to package
@@ -17,11 +17,11 @@ basepython = python3
1717
commands = pytest {posargs}
1818
allowlist_externals = pytest
1919
deps =
20-
django32: Django>=3.2.9,<3.3
2120
django40: Django>=4.0,<4.1
2221
django41: Django>=4.1,<4.2
2322
django42: Django>=4.2,<5.0
2423
django50: Django>=5.0,<5.1
24+
django51: Django>=5.1,<5.2
2525
setenv =
2626
DJANGO_SETTINGS_MODULE = tests.settings
2727
PYTHONPATH = {toxinidir}

0 commit comments

Comments
 (0)