Sat Dec 2 08:11:21 2023 UTC (173d)
py-django-debug-toolbar: updated to 4.2.0

4.2.0 (2023-08-10)
------------------

* Adjusted app directories system check to allow for nested template loaders.
* Switched from flake8, isort and pyupgrade to `ruff
  <https://beta.ruff.rs/>`__.
* Converted cookie keys to lowercase. Fixed the ``samesite`` argument to
  ``djdt.cookie.set``.
* Converted ``StaticFilesPanel`` to no longer use a thread collector. Instead,
  it collects the used static files in a ``ContextVar``.
* Added check ``debug_toolbar.W007`` to warn when JavaScript files are
  resolving to the wrong content type.
* Fixed SQL statement recording under PostgreSQL for queries encoded as byte
  strings.
* Patch the ``CursorWrapper`` class with a mixin class to support multiple
  base wrapper classes.

4.1.0 (2023-05-15)
------------------

* Improved SQL statement formatting performance.  Additionally, fixed the
  indentation of ``CASE`` statements and stopped simplifying ``.count()``
  queries.
* Added support for the new STORAGES setting in Django 4.2 for static files.
* Added support for theme overrides.
* Reworked the cache panel instrumentation code to no longer attempt to undo
  monkey patching of cache methods, as that turned out to be fragile in the
  presence of other code which also monkey patches those methods.
* Update all timing code that used :py:func:`time.time()` to use
  :py:func:`time.perf_counter()` instead.
* Made the check on ``request.META["wsgi.multiprocess"]`` optional, but
  defaults to forcing the toolbar to render the panels on each request. This
  is because it's likely an ASGI application that's serving the responses
  and that's more likely to be an incompatible setup. If you find that this
  is incorrect for you in particular, you can use the ``RENDER_PANELS``
  setting to forcibly control this logic.

4.0.0 (2023-04-03)
------------------

* Added Django 4.2 to the CI.
* Dropped support for Python 3.7.
* Fixed PostgreSQL raw query with a tuple parameter during on explain.
* Use ``TOOLBAR_LANGUAGE`` setting when rendering individual panels
  that are loaded via AJAX.
* Add decorator for rendering toolbar views with ``TOOLBAR_LANGUAGE``.
* Removed the logging panel. The panel's implementation was too complex, caused
  memory leaks and sometimes very verbose and hard to silence output in some
  environments (but not others). The maintainers judged that time and effort is
  better invested elsewhere.
* Added support for psycopg3.
* When ``ENABLE_STACKTRACE_LOCALS`` is ``True``, the stack frames' locals dicts
  will be converted to strings when the stack trace is captured rather when it
  is rendered, so that the correct values will be displayed in the rendered
  stack trace, as they may have changed between the time the stack trace was
  captured and when it is rendered.


(adam)
diff -r1.4 -r1.5 pkgsrc/www/py-django-debug-toolbar/Makefile
diff -r1.4 -r1.5 pkgsrc/www/py-django-debug-toolbar/distinfo
diff -r1.2 -r1.3 pkgsrc/www/py-django-debug-toolbar/PLIST

cvs diff -r1.4 -r1.5 pkgsrc/www/py-django-debug-toolbar/Makefile (expand / switch to unified diff)

--- pkgsrc/www/py-django-debug-toolbar/Makefile 2022/11/29 20:41:28 1.4
+++ pkgsrc/www/py-django-debug-toolbar/Makefile 2023/12/02 08:11:21 1.5
@@ -1,21 +1,22 @@ @@ -1,21 +1,22 @@
1# $NetBSD: Makefile,v 1.4 2022/11/29 20:41:28 adam Exp $ 1# $NetBSD: Makefile,v 1.5 2023/12/02 08:11:21 adam Exp $
2 2
3DISTNAME= django-debug-toolbar-3.7.0 3DISTNAME= django_debug_toolbar-4.2.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/_/-/g}
5CATEGORIES= www python 5CATEGORIES= www python
6MASTER_SITES= ${MASTER_SITE_PYPI:=d/django-debug-toolbar/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=d/django-debug-toolbar/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://github.com/jazzband/django-debug-toolbar 9HOMEPAGE= https://github.com/jazzband/django-debug-toolbar
10COMMENT= Debugging toolbar for Django 10COMMENT= Debugging toolbar for Django
11LICENSE= modified-bsd 11LICENSE= modified-bsd
12 12
 13TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
13DEPENDS+= ${PYPKGPREFIX}-sqlparse>=0.2.0:../../databases/py-sqlparse 14DEPENDS+= ${PYPKGPREFIX}-sqlparse>=0.2.0:../../databases/py-sqlparse
14DEPENDS+= ${PYPKGPREFIX}-django>=3.2.4:../../www/py-django3 15DEPENDS+= ${PYPKGPREFIX}-django>=3.2.4:../../www/py-django
15 16
16USE_LANGUAGES= # none 17USE_LANGUAGES= # none
17 18
18PYTHON_VERSIONS_INCOMPATIBLE= 27 19PYTHON_VERSIONS_INCOMPATIBLE= 27
19 20
20.include "../../lang/python/egg.mk" 21.include "../../lang/python/wheel.mk"
21.include "../../mk/bsd.pkg.mk" 22.include "../../mk/bsd.pkg.mk"

cvs diff -r1.4 -r1.5 pkgsrc/www/py-django-debug-toolbar/distinfo (expand / switch to unified diff)

--- pkgsrc/www/py-django-debug-toolbar/distinfo 2022/11/29 20:41:28 1.4
+++ pkgsrc/www/py-django-debug-toolbar/distinfo 2023/12/02 08:11:21 1.5
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.4 2022/11/29 20:41:28 adam Exp $ 1$NetBSD: distinfo,v 1.5 2023/12/02 08:11:21 adam Exp $
2 2
3BLAKE2s (django-debug-toolbar-3.7.0.tar.gz) = df7bf873ac0c7a4d114b2793a29f8bf0e2a9a0c8c67a6eba051482e9390429bd 3BLAKE2s (django_debug_toolbar-4.2.0.tar.gz) = 1463a7adfc1f5398a838ecbadc22345fdb2ea6a54171fafb34cce7cca75d00fa
4SHA512 (django-debug-toolbar-3.7.0.tar.gz) = ca5a612efb2202d4da3f92b70d40e232d5e466482c025cb7b98f6c69078c6daf4228dfb415270b1020baf14e35a634c62c19ee2041e093c4f17ee22d04c35dda 4SHA512 (django_debug_toolbar-4.2.0.tar.gz) = ff36d92132fd9338e88a2f078747c1e54e7633aecc6babea28ccb0c080b0beb99feccf1d1c00960ba109e3e6e4805562c36c6571842ea3baeda860c71ffcbd50
5Size (django-debug-toolbar-3.7.0.tar.gz) = 133244 bytes 5Size (django_debug_toolbar-4.2.0.tar.gz) = 259709 bytes

cvs diff -r1.2 -r1.3 pkgsrc/www/py-django-debug-toolbar/PLIST (expand / switch to unified diff)

--- pkgsrc/www/py-django-debug-toolbar/PLIST 2022/11/29 20:41:28 1.2
+++ pkgsrc/www/py-django-debug-toolbar/PLIST 2023/12/02 08:11:21 1.3
@@ -1,23 +1,24 @@ @@ -1,23 +1,24 @@
1@comment $NetBSD: PLIST,v 1.2 2022/11/29 20:41:28 adam Exp $ 1@comment $NetBSD: PLIST,v 1.3 2023/12/02 08:11:21 adam Exp $
2${PYSITELIB}/${EGG_INFODIR}/PKG-INFO 2${PYSITELIB}/${WHEEL_INFODIR}/METADATA
3${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt 3${PYSITELIB}/${WHEEL_INFODIR}/RECORD
4${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt 4${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
5${PYSITELIB}/${EGG_INFODIR}/not-zip-safe 5${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
6${PYSITELIB}/${EGG_INFODIR}/requires.txt 
7${PYSITELIB}/${EGG_INFODIR}/top_level.txt 
8${PYSITELIB}/debug_toolbar/__init__.py 6${PYSITELIB}/debug_toolbar/__init__.py
9${PYSITELIB}/debug_toolbar/__init__.pyc 7${PYSITELIB}/debug_toolbar/__init__.pyc
10${PYSITELIB}/debug_toolbar/__init__.pyo 8${PYSITELIB}/debug_toolbar/__init__.pyo
 9${PYSITELIB}/debug_toolbar/_stubs.py
 10${PYSITELIB}/debug_toolbar/_stubs.pyc
 11${PYSITELIB}/debug_toolbar/_stubs.pyo
11${PYSITELIB}/debug_toolbar/apps.py 12${PYSITELIB}/debug_toolbar/apps.py
12${PYSITELIB}/debug_toolbar/apps.pyc 13${PYSITELIB}/debug_toolbar/apps.pyc
13${PYSITELIB}/debug_toolbar/apps.pyo 14${PYSITELIB}/debug_toolbar/apps.pyo
14${PYSITELIB}/debug_toolbar/decorators.py 15${PYSITELIB}/debug_toolbar/decorators.py
15${PYSITELIB}/debug_toolbar/decorators.pyc 16${PYSITELIB}/debug_toolbar/decorators.pyc
16${PYSITELIB}/debug_toolbar/decorators.pyo 17${PYSITELIB}/debug_toolbar/decorators.pyo
17${PYSITELIB}/debug_toolbar/forms.py 18${PYSITELIB}/debug_toolbar/forms.py
18${PYSITELIB}/debug_toolbar/forms.pyc 19${PYSITELIB}/debug_toolbar/forms.pyc
19${PYSITELIB}/debug_toolbar/forms.pyo 20${PYSITELIB}/debug_toolbar/forms.pyo
20${PYSITELIB}/debug_toolbar/locale/ca/LC_MESSAGES/django.mo 21${PYSITELIB}/debug_toolbar/locale/ca/LC_MESSAGES/django.mo
21${PYSITELIB}/debug_toolbar/locale/ca/LC_MESSAGES/django.po 22${PYSITELIB}/debug_toolbar/locale/ca/LC_MESSAGES/django.po
22${PYSITELIB}/debug_toolbar/locale/cs/LC_MESSAGES/django.mo 23${PYSITELIB}/debug_toolbar/locale/cs/LC_MESSAGES/django.mo
23${PYSITELIB}/debug_toolbar/locale/cs/LC_MESSAGES/django.po 24${PYSITELIB}/debug_toolbar/locale/cs/LC_MESSAGES/django.po
@@ -82,29 +83,26 @@ ${PYSITELIB}/debug_toolbar/panels/header @@ -82,29 +83,26 @@ ${PYSITELIB}/debug_toolbar/panels/header
82${PYSITELIB}/debug_toolbar/panels/headers.pyo 83${PYSITELIB}/debug_toolbar/panels/headers.pyo
83${PYSITELIB}/debug_toolbar/panels/history/__init__.py 84${PYSITELIB}/debug_toolbar/panels/history/__init__.py
84${PYSITELIB}/debug_toolbar/panels/history/__init__.pyc 85${PYSITELIB}/debug_toolbar/panels/history/__init__.pyc
85${PYSITELIB}/debug_toolbar/panels/history/__init__.pyo 86${PYSITELIB}/debug_toolbar/panels/history/__init__.pyo
86${PYSITELIB}/debug_toolbar/panels/history/forms.py 87${PYSITELIB}/debug_toolbar/panels/history/forms.py
87${PYSITELIB}/debug_toolbar/panels/history/forms.pyc 88${PYSITELIB}/debug_toolbar/panels/history/forms.pyc
88${PYSITELIB}/debug_toolbar/panels/history/forms.pyo 89${PYSITELIB}/debug_toolbar/panels/history/forms.pyo
89${PYSITELIB}/debug_toolbar/panels/history/panel.py 90${PYSITELIB}/debug_toolbar/panels/history/panel.py
90${PYSITELIB}/debug_toolbar/panels/history/panel.pyc 91${PYSITELIB}/debug_toolbar/panels/history/panel.pyc
91${PYSITELIB}/debug_toolbar/panels/history/panel.pyo 92${PYSITELIB}/debug_toolbar/panels/history/panel.pyo
92${PYSITELIB}/debug_toolbar/panels/history/views.py 93${PYSITELIB}/debug_toolbar/panels/history/views.py
93${PYSITELIB}/debug_toolbar/panels/history/views.pyc 94${PYSITELIB}/debug_toolbar/panels/history/views.pyc
94${PYSITELIB}/debug_toolbar/panels/history/views.pyo 95${PYSITELIB}/debug_toolbar/panels/history/views.pyo
95${PYSITELIB}/debug_toolbar/panels/logging.py 
96${PYSITELIB}/debug_toolbar/panels/logging.pyc 
97${PYSITELIB}/debug_toolbar/panels/logging.pyo 
98${PYSITELIB}/debug_toolbar/panels/profiling.py 96${PYSITELIB}/debug_toolbar/panels/profiling.py
99${PYSITELIB}/debug_toolbar/panels/profiling.pyc 97${PYSITELIB}/debug_toolbar/panels/profiling.pyc
100${PYSITELIB}/debug_toolbar/panels/profiling.pyo 98${PYSITELIB}/debug_toolbar/panels/profiling.pyo
101${PYSITELIB}/debug_toolbar/panels/redirects.py 99${PYSITELIB}/debug_toolbar/panels/redirects.py
102${PYSITELIB}/debug_toolbar/panels/redirects.pyc 100${PYSITELIB}/debug_toolbar/panels/redirects.pyc
103${PYSITELIB}/debug_toolbar/panels/redirects.pyo 101${PYSITELIB}/debug_toolbar/panels/redirects.pyo
104${PYSITELIB}/debug_toolbar/panels/request.py 102${PYSITELIB}/debug_toolbar/panels/request.py
105${PYSITELIB}/debug_toolbar/panels/request.pyc 103${PYSITELIB}/debug_toolbar/panels/request.pyc
106${PYSITELIB}/debug_toolbar/panels/request.pyo 104${PYSITELIB}/debug_toolbar/panels/request.pyo
107${PYSITELIB}/debug_toolbar/panels/settings.py 105${PYSITELIB}/debug_toolbar/panels/settings.py
108${PYSITELIB}/debug_toolbar/panels/settings.pyc 106${PYSITELIB}/debug_toolbar/panels/settings.pyc
109${PYSITELIB}/debug_toolbar/panels/settings.pyo 107${PYSITELIB}/debug_toolbar/panels/settings.pyo
110${PYSITELIB}/debug_toolbar/panels/signals.py 108${PYSITELIB}/debug_toolbar/panels/signals.py
@@ -153,27 +151,26 @@ ${PYSITELIB}/debug_toolbar/static/debug_ @@ -153,27 +151,26 @@ ${PYSITELIB}/debug_toolbar/static/debug_
153${PYSITELIB}/debug_toolbar/static/debug_toolbar/css/toolbar.css 151${PYSITELIB}/debug_toolbar/static/debug_toolbar/css/toolbar.css
154${PYSITELIB}/debug_toolbar/static/debug_toolbar/js/history.js 152${PYSITELIB}/debug_toolbar/static/debug_toolbar/js/history.js
155${PYSITELIB}/debug_toolbar/static/debug_toolbar/js/redirect.js 153${PYSITELIB}/debug_toolbar/static/debug_toolbar/js/redirect.js
156${PYSITELIB}/debug_toolbar/static/debug_toolbar/js/timer.js 154${PYSITELIB}/debug_toolbar/static/debug_toolbar/js/timer.js
157${PYSITELIB}/debug_toolbar/static/debug_toolbar/js/toolbar.js 155${PYSITELIB}/debug_toolbar/static/debug_toolbar/js/toolbar.js
158${PYSITELIB}/debug_toolbar/static/debug_toolbar/js/utils.js 156${PYSITELIB}/debug_toolbar/static/debug_toolbar/js/utils.js
159${PYSITELIB}/debug_toolbar/templates/debug_toolbar/base.html 157${PYSITELIB}/debug_toolbar/templates/debug_toolbar/base.html
160${PYSITELIB}/debug_toolbar/templates/debug_toolbar/includes/panel_button.html 158${PYSITELIB}/debug_toolbar/templates/debug_toolbar/includes/panel_button.html
161${PYSITELIB}/debug_toolbar/templates/debug_toolbar/includes/panel_content.html 159${PYSITELIB}/debug_toolbar/templates/debug_toolbar/includes/panel_content.html
162${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/cache.html 160${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/cache.html
163${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/headers.html 161${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/headers.html
164${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/history.html 162${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/history.html
165${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/history_tr.html 163${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/history_tr.html
166${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/logging.html 
167${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/profiling.html 164${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/profiling.html
168${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/request.html 165${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/request.html
169${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/request_variables.html 166${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/request_variables.html
170${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/settings.html 167${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/settings.html
171${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/signals.html 168${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/signals.html
172${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/sql.html 169${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/sql.html
173${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html 170${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/sql_explain.html
174${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html 171${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/sql_profile.html
175${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/sql_select.html 172${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/sql_select.html
176${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/staticfiles.html 173${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/staticfiles.html
177${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/template_source.html 174${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/template_source.html
178${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/templates.html 175${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/templates.html
179${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/timer.html 176${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/timer.html