pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/py-django-filter py-django-filter: updated to 2.4.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0b1dbea45b0f
branches:  trunk
changeset: 448564:0b1dbea45b0f
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Mar 10 10:25:03 2021 +0000

description:
py-django-filter: updated to 2.4.0

Version 2.4.0 (2020-9-27)
--------------------------
* SECURITY: Added a ``MaxValueValidator`` to the form field for
  ``NumberFilter``. This prevents a potential DoS attack if numbers with very
  large exponents were subsequently converted to integers.

  The default limit value for the validator is ``1e50``.

  The new ``NumberFilter.get_max_validator()`` allows customising the used
  validator, and may return ``None`` to disable the validation entirely.

* Added testing against Django 3.1 and Python 3.9.

  In addition tests against Django main development branch are now required to
  pass.

Version 2.3.0 (2020-6-5)
------------------------
* Fixed import of FieldDoesNotExist.
* Added testing against Django 3.0.
* Declared support for, and added testing against, Python 3.8.
* Fix filterset multiple inheritance bug
* Allowed customising default lookup expression.
* Drop Django 2.1 and below
* Fixed IsoDateTimeRangeFieldTests for Django 3.1
* Require tests to pass against Django `master`.

diffstat:

 www/py-django-filter/Makefile                               |   7 ++--
 www/py-django-filter/PLIST                                  |   7 ++--
 www/py-django-filter/distinfo                               |  11 +++----
 www/py-django-filter/patches/patch-django__filters_utils.py |  19 -------------
 4 files changed, 11 insertions(+), 33 deletions(-)

diffs (90 lines):

diff -r 10fbea714f13 -r 0b1dbea45b0f www/py-django-filter/Makefile
--- a/www/py-django-filter/Makefile     Wed Mar 10 10:23:23 2021 +0000
+++ b/www/py-django-filter/Makefile     Wed Mar 10 10:25:03 2021 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.8 2020/10/11 23:48:18 joerg Exp $
+# $NetBSD: Makefile,v 1.9 2021/03/10 10:25:03 adam Exp $
 
-DISTNAME=      django-filter-2.2.0
+DISTNAME=      django-filter-2.4.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=d/django-filter/}
 
@@ -11,7 +10,7 @@
 COMMENT=       Generic dynamic filtering support for Django
 LICENSE=       modified-bsd
 
-DEPENDS+=      ${PYPKGPREFIX}-django>=1.11:../../www/py-django
+DEPENDS+=      ${PYPKGPREFIX}-django>=2.2:../../www/py-django
 DEPENDS+=      ${PYPKGPREFIX}-djangorestframework-[0-9]*:../../www/py-djangorestframework
 
 USE_LANGUAGES= # none
diff -r 10fbea714f13 -r 0b1dbea45b0f www/py-django-filter/PLIST
--- a/www/py-django-filter/PLIST        Wed Mar 10 10:23:23 2021 +0000
+++ b/www/py-django-filter/PLIST        Wed Mar 10 10:25:03 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2018/11/15 09:22:51 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2021/03/10 10:25:03 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -31,6 +31,8 @@
 ${PYSITELIB}/django_filters/filterset.pyo
 ${PYSITELIB}/django_filters/locale/be/LC_MESSAGES/django.mo
 ${PYSITELIB}/django_filters/locale/be/LC_MESSAGES/django.po
+${PYSITELIB}/django_filters/locale/bg/LC_MESSAGES/django.mo
+${PYSITELIB}/django_filters/locale/bg/LC_MESSAGES/django.po
 ${PYSITELIB}/django_filters/locale/cs/LC_MESSAGES/django.mo
 ${PYSITELIB}/django_filters/locale/cs/LC_MESSAGES/django.po
 ${PYSITELIB}/django_filters/locale/da/LC_MESSAGES/django.mo
@@ -56,9 +58,6 @@
 ${PYSITELIB}/django_filters/locale/uk/LC_MESSAGES/django.mo
 ${PYSITELIB}/django_filters/locale/uk/LC_MESSAGES/django.po
 ${PYSITELIB}/django_filters/locale/zh_CN/LC_MESSAGES/django.po
-${PYSITELIB}/django_filters/models.py
-${PYSITELIB}/django_filters/models.pyc
-${PYSITELIB}/django_filters/models.pyo
 ${PYSITELIB}/django_filters/rest_framework/__init__.py
 ${PYSITELIB}/django_filters/rest_framework/__init__.pyc
 ${PYSITELIB}/django_filters/rest_framework/__init__.pyo
diff -r 10fbea714f13 -r 0b1dbea45b0f www/py-django-filter/distinfo
--- a/www/py-django-filter/distinfo     Wed Mar 10 10:23:23 2021 +0000
+++ b/www/py-django-filter/distinfo     Wed Mar 10 10:25:03 2021 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.6 2020/10/11 23:48:18 joerg Exp $
+$NetBSD: distinfo,v 1.7 2021/03/10 10:25:03 adam Exp $
 
-SHA1 (django-filter-2.2.0.tar.gz) = 9796ad961fcf319c637e8a36a137b1f944a67e47
-RMD160 (django-filter-2.2.0.tar.gz) = d2205313ca6393a87e2b37c53c01b48dade966cc
-SHA512 (django-filter-2.2.0.tar.gz) = 16a4336d1558cabfe497dd9736a2f652c9f9d141a72c856cf13f3ca56db4da85b5926b05c772aef5fa43a75e085025244b8deaf7facbc5bfa68907bd99f4f95d
-Size (django-filter-2.2.0.tar.gz) = 142804 bytes
-SHA1 (patch-django__filters_utils.py) = ee77665c2533ea7ac47b3e7e0d06054286722c99
+SHA1 (django-filter-2.4.0.tar.gz) = ba88eaf464e63cbd2438334111ee54d5bb1b9e8b
+RMD160 (django-filter-2.4.0.tar.gz) = c265429ef78a2f89d395c0ce58a3de50c8c3895d
+SHA512 (django-filter-2.4.0.tar.gz) = 0584222b46add89aa7dd1dfd334fdd19903e0119d455a2c46644c501a66df224f9f51c33394d130bcd1fc0f28c6ede6d6853b9790430040ec7228f9a1dc55264
+Size (django-filter-2.4.0.tar.gz) = 146904 bytes
diff -r 10fbea714f13 -r 0b1dbea45b0f www/py-django-filter/patches/patch-django__filters_utils.py
--- a/www/py-django-filter/patches/patch-django__filters_utils.py       Wed Mar 10 10:23:23 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-$NetBSD: patch-django__filters_utils.py,v 1.1 2020/10/11 23:48:18 joerg Exp $
-
-Support newer Django versions.
-
---- django_filters/utils.py.orig       2020-10-11 20:39:52.623467617 +0000
-+++ django_filters/utils.py
-@@ -3,11 +3,10 @@ from collections import OrderedDict
- 
- import django
- from django.conf import settings
--from django.core.exceptions import FieldError
-+from django.core.exceptions import FieldError, FieldDoesNotExist
- from django.db import models
- from django.db.models.constants import LOOKUP_SEP
- from django.db.models.expressions import Expression
--from django.db.models.fields import FieldDoesNotExist
- from django.db.models.fields.related import ForeignObjectRel, RelatedField
- from django.utils import timezone
- from django.utils.encoding import force_str



Home | Main Index | Thread Index | Old Index