pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/py-django-js-asset



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Nov 25 15:00:42 UTC 2026

Modified Files:
        pkgsrc/www/py-django-js-asset: Makefile distinfo

Log Message:
py-django-js-asset: updated to 5.0.0

5.0 (2026-10-26)

5.0a3 (2026-10-20)

Everything deprecated in 5.0 keeps working until 6.0. The
backwards-incompatible changes are the ones from the pre-releases below, and
``InlineStyle`` no longer adding ``media="all"``, which browsers treat the
same.

- Deprecated ``JS`` and ``CSS``, they will be removed in 6.0. Use ``Script``
  and ``Stylesheet`` instead, from ``django.forms`` where Django has them
  (5.2 and 6.1) and from ``js_asset`` otherwise. ``JS`` and ``CSS`` already
  produce those objects and accept the attributes as keyword arguments like
  them. Their older forms, attribute dicts (``JS("a.js", {...})``,
  ``attrs=...``), a positional ``media`` and ``CSS(..., inline=True)`` (use
  ``InlineStyle``), keep working until 6.0 as well.
- Replace ``CSS(href)`` with ``Stylesheet(href, media="all")``: ``CSS()`` adds
  ``media="all"`` when no media is given, ``Stylesheet()`` doesn't. On Django
  6.1 and newer, a stylesheet is only de-duplicated against ``"a.css"`` in
  ``css={"all": [...]}`` when its media is ``"all"``, otherwise it is rendered
  twice.
- Added ``RemovedInDjangoJsAsset60Warning``, a ``DeprecationWarning`` subclass
  which all deprecations use, so that projects can turn exactly these into
  errors.
- ``InlineStyle`` doesn't add ``media="all"`` anymore, like ``Stylesheet``.
  That's the default for elements without a ``media`` attribute anyway.
- Deprecated ``Media.render(nonce=...)``, use ``render(attrs={"nonce": ...})``
  like with ``ImportMap`` and ``JSON``.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 pkgsrc/www/py-django-js-asset/Makefile
cvs rdiff -u -r1.13 -r1.14 pkgsrc/www/py-django-js-asset/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/py-django-js-asset/Makefile
diff -u pkgsrc/www/py-django-js-asset/Makefile:1.15 pkgsrc/www/py-django-js-asset/Makefile:1.16
--- pkgsrc/www/py-django-js-asset/Makefile:1.15 Sat Oct 24 10:06:57 2026
+++ pkgsrc/www/py-django-js-asset/Makefile      Wed Nov 25 15:00:42 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.15 2026/10/24 10:06:57 adam Exp $
+# $NetBSD: Makefile,v 1.16 2026/11/25 15:00:42 adam Exp $
 
-DISTNAME=      django_js_asset-4.2.0
+DISTNAME=      django_js_asset-5.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/_/-/g}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=d/django-js-asset/}

Index: pkgsrc/www/py-django-js-asset/distinfo
diff -u pkgsrc/www/py-django-js-asset/distinfo:1.13 pkgsrc/www/py-django-js-asset/distinfo:1.14
--- pkgsrc/www/py-django-js-asset/distinfo:1.13 Sat Oct 24 10:06:57 2026
+++ pkgsrc/www/py-django-js-asset/distinfo      Wed Nov 25 15:00:42 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.13 2026/10/24 10:06:57 adam Exp $
+$NetBSD: distinfo,v 1.14 2026/11/25 15:00:42 adam Exp $
 
-BLAKE2s (django_js_asset-4.2.0.tar.gz) = 42cfe7885605cb281769b00130de24c2bebfe5577097a860d9b3080b24b75154
-SHA512 (django_js_asset-4.2.0.tar.gz) = df97da7a074c58eb409b4b52b901b5f72f0d6709c0f34f23113ba3f764685be6eac47d11bcb992560abcfddd76598627967761335914d7e9f1a294455e40d87f
-Size (django_js_asset-4.2.0.tar.gz) = 39532 bytes
+BLAKE2s (django_js_asset-5.0.0.tar.gz) = cb38f46a3bbe79e85dab3d82771e806297ba327b24cf7ffb91a9edc68cb8894e
+SHA512 (django_js_asset-5.0.0.tar.gz) = dbcb8af30a1fbc1fbdb270da06ad0e62890dc485c13499e9d77ea4cf7602791d55ae5aaad599f32d830729789c4b96a6187be6976b540857e59f2afaaa475bcd
+Size (django_js_asset-5.0.0.tar.gz) = 39584 bytes



Home | Main Index | Thread Index | Old Index