pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/py-django-debug-toolbar



Module Name:    pkgsrc
Committed By:   adam
Date:           Sat Dec  2 08:11:21 UTC 2023

Modified Files:
        pkgsrc/www/py-django-debug-toolbar: Makefile PLIST distinfo

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/www/py-django-debug-toolbar/Makefile \
    pkgsrc/www/py-django-debug-toolbar/distinfo
cvs rdiff -u -r1.2 -r1.3 pkgsrc/www/py-django-debug-toolbar/PLIST

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-debug-toolbar/Makefile
diff -u pkgsrc/www/py-django-debug-toolbar/Makefile:1.4 pkgsrc/www/py-django-debug-toolbar/Makefile:1.5
--- pkgsrc/www/py-django-debug-toolbar/Makefile:1.4     Tue Nov 29 20:41:28 2022
+++ pkgsrc/www/py-django-debug-toolbar/Makefile Sat Dec  2 08:11:21 2023
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2022/11/29 20:41:28 adam Exp $
+# $NetBSD: Makefile,v 1.5 2023/12/02 08:11:21 adam Exp $
 
-DISTNAME=      django-debug-toolbar-3.7.0
-PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+DISTNAME=      django_debug_toolbar-4.2.0
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/_/-/g}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=d/django-debug-toolbar/}
 
@@ -10,12 +10,13 @@ HOMEPAGE=   https://github.com/jazzband/dj
 COMMENT=       Debugging toolbar for Django
 LICENSE=       modified-bsd
 
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
 DEPENDS+=      ${PYPKGPREFIX}-sqlparse>=0.2.0:../../databases/py-sqlparse
-DEPENDS+=      ${PYPKGPREFIX}-django>=3.2.4:../../www/py-django3
+DEPENDS+=      ${PYPKGPREFIX}-django>=3.2.4:../../www/py-django
 
 USE_LANGUAGES= # none
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"
Index: pkgsrc/www/py-django-debug-toolbar/distinfo
diff -u pkgsrc/www/py-django-debug-toolbar/distinfo:1.4 pkgsrc/www/py-django-debug-toolbar/distinfo:1.5
--- pkgsrc/www/py-django-debug-toolbar/distinfo:1.4     Tue Nov 29 20:41:28 2022
+++ pkgsrc/www/py-django-debug-toolbar/distinfo Sat Dec  2 08:11:21 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.4 2022/11/29 20:41:28 adam Exp $
+$NetBSD: distinfo,v 1.5 2023/12/02 08:11:21 adam Exp $
 
-BLAKE2s (django-debug-toolbar-3.7.0.tar.gz) = df7bf873ac0c7a4d114b2793a29f8bf0e2a9a0c8c67a6eba051482e9390429bd
-SHA512 (django-debug-toolbar-3.7.0.tar.gz) = ca5a612efb2202d4da3f92b70d40e232d5e466482c025cb7b98f6c69078c6daf4228dfb415270b1020baf14e35a634c62c19ee2041e093c4f17ee22d04c35dda
-Size (django-debug-toolbar-3.7.0.tar.gz) = 133244 bytes
+BLAKE2s (django_debug_toolbar-4.2.0.tar.gz) = 1463a7adfc1f5398a838ecbadc22345fdb2ea6a54171fafb34cce7cca75d00fa
+SHA512 (django_debug_toolbar-4.2.0.tar.gz) = ff36d92132fd9338e88a2f078747c1e54e7633aecc6babea28ccb0c080b0beb99feccf1d1c00960ba109e3e6e4805562c36c6571842ea3baeda860c71ffcbd50
+Size (django_debug_toolbar-4.2.0.tar.gz) = 259709 bytes

Index: pkgsrc/www/py-django-debug-toolbar/PLIST
diff -u pkgsrc/www/py-django-debug-toolbar/PLIST:1.2 pkgsrc/www/py-django-debug-toolbar/PLIST:1.3
--- pkgsrc/www/py-django-debug-toolbar/PLIST:1.2        Tue Nov 29 20:41:28 2022
+++ pkgsrc/www/py-django-debug-toolbar/PLIST    Sat Dec  2 08:11:21 2023
@@ -1,13 +1,14 @@
-@comment $NetBSD: PLIST,v 1.2 2022/11/29 20:41:28 adam Exp $
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.3 2023/12/02 08:11:21 adam Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
 ${PYSITELIB}/debug_toolbar/__init__.py
 ${PYSITELIB}/debug_toolbar/__init__.pyc
 ${PYSITELIB}/debug_toolbar/__init__.pyo
+${PYSITELIB}/debug_toolbar/_stubs.py
+${PYSITELIB}/debug_toolbar/_stubs.pyc
+${PYSITELIB}/debug_toolbar/_stubs.pyo
 ${PYSITELIB}/debug_toolbar/apps.py
 ${PYSITELIB}/debug_toolbar/apps.pyc
 ${PYSITELIB}/debug_toolbar/apps.pyo
@@ -92,9 +93,6 @@ ${PYSITELIB}/debug_toolbar/panels/histor
 ${PYSITELIB}/debug_toolbar/panels/history/views.py
 ${PYSITELIB}/debug_toolbar/panels/history/views.pyc
 ${PYSITELIB}/debug_toolbar/panels/history/views.pyo
-${PYSITELIB}/debug_toolbar/panels/logging.py
-${PYSITELIB}/debug_toolbar/panels/logging.pyc
-${PYSITELIB}/debug_toolbar/panels/logging.pyo
 ${PYSITELIB}/debug_toolbar/panels/profiling.py
 ${PYSITELIB}/debug_toolbar/panels/profiling.pyc
 ${PYSITELIB}/debug_toolbar/panels/profiling.pyo
@@ -163,7 +161,6 @@ ${PYSITELIB}/debug_toolbar/templates/deb
 ${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/headers.html
 ${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/history.html
 ${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/history_tr.html
-${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/logging.html
 ${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/profiling.html
 ${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/request.html
 ${PYSITELIB}/debug_toolbar/templates/debug_toolbar/panels/request_variables.html



Home | Main Index | Thread Index | Old Index