django-tailwind-cli 2.20.0__tar.gz → 2.20.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/.github/workflows/release.yml +22 -22
  2. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/CHANGELOG.md +8 -0
  3. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/PKG-INFO +1 -1
  4. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/docs/settings.md +1 -1
  5. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/justfile +14 -30
  6. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/src/django_tailwind_cli/utils.py +1 -1
  7. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/.github/dependabot.yml +0 -0
  8. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/.github/workflows/test.yml +0 -0
  9. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/.gitignore +0 -0
  10. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/.pre-commit-config.yaml +0 -0
  11. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/.readthedocs.yml +0 -0
  12. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/CODE_OF_CONDUCT.md +0 -0
  13. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/LICENSE +0 -0
  14. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/README.md +0 -0
  15. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/docs/base_template.md +0 -0
  16. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/docs/changelog.md +0 -0
  17. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/docs/index.md +0 -0
  18. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/docs/installation.md +0 -0
  19. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/docs/requirements.txt +0 -0
  20. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/docs/template_tags.md +0 -0
  21. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/docs/usage.md +0 -0
  22. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/mkdocs.yml +0 -0
  23. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/pyproject.toml +0 -0
  24. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/src/django_tailwind_cli/__init__.py +0 -0
  25. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/src/django_tailwind_cli/apps.py +0 -0
  26. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/src/django_tailwind_cli/conf.py +0 -0
  27. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/src/django_tailwind_cli/management/__init__.py +0 -0
  28. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/src/django_tailwind_cli/management/commands/__init__.py +0 -0
  29. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/src/django_tailwind_cli/management/commands/tailwind.py +0 -0
  30. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/src/django_tailwind_cli/py.typed +0 -0
  31. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/src/django_tailwind_cli/templates/tailwind_cli/base.html +0 -0
  32. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/src/django_tailwind_cli/templates/tailwind_cli/tailwind_css.html +0 -0
  33. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/src/django_tailwind_cli/templatetags/__init__.py +0 -0
  34. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/src/django_tailwind_cli/templatetags/tailwind_cli.py +0 -0
  35. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/tests/.gitignore +0 -0
  36. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/tests/__init__.py +0 -0
  37. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/tests/conftest.py +0 -0
  38. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/tests/settings.py +0 -0
  39. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/tests/templates/tests/base.html +0 -0
  40. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/tests/test_management_commands.py +0 -0
  41. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/tests/test_tailwind_css_tag.py +0 -0
  42. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/tests/test_utils.py +0 -0
  43. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/tox.ini +0 -0
  44. {django_tailwind_cli-2.20.0 → django_tailwind_cli-2.20.2}/uv.lock +0 -0
@@ -94,28 +94,28 @@ jobs:
94
94
  '${{ github.ref_name }}' dist/**
95
95
  --repo '${{ github.repository }}'
96
96
 
97
- # publish-to-testpypi:
98
- # name: Publish Python 🐍 distribution 📦 to TestPyPI
99
- # if: startsWith(github.ref, 'refs/tags/') # only publish to TestPyPI on tag pushes
100
- # needs:
101
- # - build
102
- # runs-on: ubuntu-latest
97
+ publish-to-testpypi:
98
+ name: Publish Python 🐍 distribution 📦 to TestPyPI
99
+ if: startsWith(github.ref, 'refs/tags/') # only publish to TestPyPI on tag pushes
100
+ needs:
101
+ - build
102
+ runs-on: ubuntu-latest
103
103
 
104
- # environment:
105
- # name: testpypi
106
- # url: ${{ env.PYPI_TEST_URL }}
104
+ environment:
105
+ name: testpypi
106
+ url: ${{ env.PYPI_TEST_URL }}
107
107
 
108
- # permissions:
109
- # id-token: write # IMPORTANT: mandatory for trusted publishing
108
+ permissions:
109
+ id-token: write # IMPORTANT: mandatory for trusted publishing
110
110
 
111
- # steps:
112
- # - name: Download all the dists
113
- # uses: actions/download-artifact@v4
114
- # with:
115
- # name: python-package-distributions
116
- # path: dist/
117
- # - name: Publish distribution 📦 to TestPyPI
118
- # uses: pypa/gh-action-pypi-publish@release/v1.10
119
- # with:
120
- # repository-url: https://test.pypi.org/legacy/
121
- # skip-existing: true
111
+ steps:
112
+ - name: Download all the dists
113
+ uses: actions/download-artifact@v4
114
+ with:
115
+ name: python-package-distributions
116
+ path: dist/
117
+ - name: Publish distribution 📦 to TestPyPI
118
+ uses: pypa/gh-action-pypi-publish@release/v1.10
119
+ with:
120
+ repository-url: https://test.pypi.org/legacy/
121
+ skip-existing: true
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.20.2
4
+
5
+ - Added testpypi release workflow.
6
+
7
+ ## 2.20.1
8
+
9
+ - Fixed a critical issue of 2.20.0.
10
+
3
11
  ## 2.20.0
4
12
 
5
13
  - Removed django-appconf again.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: django-tailwind-cli
3
- Version: 2.20.0
3
+ Version: 2.20.2
4
4
  Summary: Django and Tailwind integration based on the prebuilt Tailwind CSS CLI.
5
5
  Project-URL: Home, https://django-tailwind-cli.rtfd.io/
6
6
  Project-URL: Documentation, https://django-tailwind-cli.rtfd.io/
@@ -11,7 +11,7 @@ The package can be configured by a few settings, which can be overwritten in the
11
11
  your project.
12
12
 
13
13
  `TAILWIND_CLI_VERSION`
14
- : **Default**: `"3.4.11"`
14
+ : **Default**: `"3.4.13"`
15
15
 
16
16
  This defines the version of the CLI and of Tailwind CSS you want to use in your project.
17
17
 
@@ -6,55 +6,39 @@ VENV_DIRNAME := ".venv"
6
6
  @_default:
7
7
  just --list
8
8
 
9
+ [private]
10
+ @check_uv:
11
+ if ! command -v uv &> /dev/null; then \
12
+ echo "uv could not be found. Exiting."; \
13
+ exit; \
14
+ fi
15
+
9
16
  # setup development environment
10
- @bootstrap:
17
+ @bootstrap: check_uv
11
18
  if [ -x $VENV_DIRNAME ]; then \
12
19
  echo "Already bootstraped. Exiting."; \
13
20
  exit; \
14
21
  fi
15
22
 
16
- echo "Creating virtual env in .venv"
17
- just create_venv
18
-
19
23
  echo "Installing dependencies"
20
24
  just upgrade
21
25
 
22
- # create a virtual environment
23
- @create_venv:
24
- [ -d $VENV_DIRNAME ] || uv venv $VENV_DIRNAME
25
-
26
- # build release
27
- @build:
28
- uv build
29
-
30
- # publish release
31
- @publish: build
32
- uv publish
33
-
34
26
  # upgrade/install all dependencies defined in pyproject.toml
35
- @upgrade: create_venv
36
- uv sync --all-extras
27
+ @upgrade: check_uv
28
+ uv sync --all-extras --upgrade
37
29
 
38
30
  # run pre-commit rules on all files
39
- @lint: create_venv
31
+ @lint: check_uv
40
32
  uvx --with pre-commit-uv pre-commit run --all-files
41
33
 
42
34
  # run test suite
43
- @test: create_venv
35
+ @test: check_uv
44
36
  uv run pytest --cov --cov-report=html --cov-report=term
45
37
 
46
38
  # run test suite
47
- @test-all: create_venv
39
+ @test-all: check_uv
48
40
  uvx --with tox-uv tox
49
41
 
50
42
  # serve docs during development
51
- @serve-docs:
43
+ @serve-docs: check_uv
52
44
  uvx --with mkdocs-material mkdocs serve
53
-
54
- # build documenation
55
- @build-docs:
56
- uvx --with mkdocs-material mkdocs build
57
-
58
- # publish documentation on github
59
- @publish-docs: build-docs
60
- uvx --with mkdocs-material mkdocs gh-deploy --force
@@ -34,7 +34,7 @@ def get_download_url() -> str:
34
34
  system, machine = get_system_and_machine()
35
35
  extension = ".exe" if system == "windows" else ""
36
36
  return (
37
- f"https://github.com/{conf.get_tailwind_cli_src_repo}/releases/download/"
37
+ f"https://github.com/{conf.get_tailwind_cli_src_repo()}/releases/download/"
38
38
  f"v{conf.get_tailwind_cli_version()}/{conf.get_tailwind_cli_asset_name()}-{system}-{machine}{extension}"
39
39
  )
40
40