pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/py-djangorestframework



Module Name:    pkgsrc
Committed By:   adam
Date:           Fri Mar 22 18:45:23 UTC 2024

Modified Files:
        pkgsrc/www/py-djangorestframework: Makefile PLIST distinfo

Log Message:
py-djangorestframework: updated to 3.15.1

3.15.1

Fix SearchFilter handling of quoted and comma separated strings, when .get_search_terms is being called into by a custom class. See
Revert number of 3.15.0 issues which included unintended side-effects. See

3.15.0

Django 5.0 and Python 3.12 support
Use POST method instead of GET to perform logout in browsable API [9208]
Added jQuery 3.7.1 support & dropped previous version
Use str as default path converter
Document support for http.HTTPMethod in the @action decorator added in Python 3.11
Update exceptions.md
Partial serializer should not have required fields
Propagate 'default' from model field to serializer field.
Allow to override child.run_validation call in ListSerializer
Align SearchFilter behaviour to django.contrib.admin search
Class name added to unknown field error
Fix: Pagination response schemas.
Fix choices in ChoiceField to support IntEnum
Fix SearchFilter rendering search field with invalid value
Fix OpenAPI Schema yaml rendering for timedelta
Fix NamespaceVersioning ignoring DEFAULT_VERSION on non-None namespaces
Added Deprecation Warnings for CoreAPI
Removed usage of field.choices that triggered full table load
Permit mixed casing of string values for BooleanField validation
Fixes BrowsableAPIRenderer for usage with ListSerializer.
Change semantic of OR of two permission classes
Remove dependency on pytz
Make set_value a method within Serializer
Fix URLPathVersioning reverse fallback
Warn about Decimal type in min_value and max_value arguments of DecimalField
Fix mapping for choice values
Refactor read function to use context manager for file handling
Fix: fallback on CursorPagination ordering if unset on the view
Replaced OrderedDict with dict
Refactor get_field_info method to include max_digits and decimal_places attributes in SimpleMetadata class
Implement __eq__ for validators
Ensure CursorPagination respects nulls in the ordering field
Use ZoneInfo as primary source of timezone data
Add username search field for TokenAdmin
Handle Nested Relation in SlugRelatedField when many=False
Bump version of jQuery to 3.6.4 & updated ref links
Support UniqueConstraint
Allow Request, Response, Field, and GenericAPIView to be subscriptable. This allows the classes to be made generic for type checking.
Feat: Add some changes to ValidationError to support django style validation errors
Fix Respect can_read_model permission in DjangoModelPermissions
Add SimplePathRouter
Re-prefetch related objects after updating
Fix FilePathField required argument
Raise ImproperlyConfigured exception if basename is not unique
Use PrimaryKeyRelatedField pkfield in openapi
replace partition with split in BasicAuthentication
Fix BooleanField's allow_null behavior
Handle Django's ValidationErrors in ListField
Remove a bit of inline CSS. Add CSP nonce where it might be required and is available
Use autocomplete widget for user selection in Token admin
Make browsable API compatible with strong CSP
Avoid inline script execution for injecting CSRF token
Mitigate global dependency on inflection
Register Django urls
Implemented Verbose Name Translation for TokenProxy
Properly handle OverflowError in DurationField deserialization
Fix OpenAPI operation name plural appropriately
Represent SafeString as plain string on schema rendering
Fix 8771 - Checking for authentication even if _ignore_model_permissions = True
Fix 404 when page query parameter is empty string
Fixes instance check in ListSerializer.to_representation
FloatField will crash if the input is a number that is too big
Add missing DurationField to SimpleMetada label_lookup
Add support for Python 3.11
Make request consistently available in pagination classes
Possibility to remove trailing zeros on DecimalFields representation
Add a method for getting serializer field name (OpenAPI)
Add __eq__ method for OperandHolder class
Avoid importing django.test package when not testing
Preserve exception messages for wrapped Django exceptions
Include examples and format to OpenAPI schema of CursorPagination
Fix infinite recursion with deepcopy on Request
Refactor: Replace try/except with contextlib.suppress()
Minor fix to SerializeMethodField docstring
Minor refactor: Unnecessary use of list() function
Unnecessary list comprehension
Use correct class to indicate present deprecation


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 pkgsrc/www/py-djangorestframework/Makefile
cvs rdiff -u -r1.18 -r1.19 pkgsrc/www/py-djangorestframework/PLIST
cvs rdiff -u -r1.28 -r1.29 pkgsrc/www/py-djangorestframework/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-djangorestframework/Makefile
diff -u pkgsrc/www/py-djangorestframework/Makefile:1.37 pkgsrc/www/py-djangorestframework/Makefile:1.38
--- pkgsrc/www/py-djangorestframework/Makefile:1.37     Thu Sep 28 22:26:33 2023
+++ pkgsrc/www/py-djangorestframework/Makefile  Fri Mar 22 18:45:23 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.37 2023/09/28 22:26:33 joerg Exp $
+# $NetBSD: Makefile,v 1.38 2024/03/22 18:45:23 adam Exp $
 
-DISTNAME=      djangorestframework-3.14.0
+DISTNAME=      djangorestframework-3.15.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=d/djangorestframework/}
@@ -10,14 +10,18 @@ HOMEPAGE=   https://www.django-rest-framew
 COMMENT=       Lightweight REST framework for Django
 LICENSE=       modified-bsd
 
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
 DEPENDS+=      ${PYPKGPREFIX}-django>=3:../../www/py-django3
-DEPENDS+=      ${PYPKGPREFIX}-pytz>0:../../time/py-pytz
-
-EXTRACT_USING= bsdtar
 
 USE_LANGUAGES= # none
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/pyversion.mk"
+.if ${PYTHON_VERSION} < 309
+DEPENDS+=      ${PYPKGPREFIX}-backports.zoneinfo-[0-9]*:../../time/py-backports.zoneinfo
+.endif
+
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/www/py-djangorestframework/PLIST
diff -u pkgsrc/www/py-djangorestframework/PLIST:1.18 pkgsrc/www/py-djangorestframework/PLIST:1.19
--- pkgsrc/www/py-djangorestframework/PLIST:1.18        Sat Aug  5 06:19:18 2023
+++ pkgsrc/www/py-djangorestframework/PLIST     Fri Mar 22 18:45:23 2024
@@ -1,10 +1,9 @@
-@comment $NetBSD: PLIST,v 1.18 2023/08/05 06:19:18 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.19 2024/03/22 18:45:23 adam Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.md
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/rest_framework/__init__.py
 ${PYSITELIB}/rest_framework/__init__.pyc
 ${PYSITELIB}/rest_framework/__init__.pyo
@@ -41,6 +40,9 @@ ${PYSITELIB}/rest_framework/authtoken/mi
 ${PYSITELIB}/rest_framework/authtoken/migrations/0003_tokenproxy.py
 ${PYSITELIB}/rest_framework/authtoken/migrations/0003_tokenproxy.pyc
 ${PYSITELIB}/rest_framework/authtoken/migrations/0003_tokenproxy.pyo
+${PYSITELIB}/rest_framework/authtoken/migrations/0004_alter_tokenproxy_options.py
+${PYSITELIB}/rest_framework/authtoken/migrations/0004_alter_tokenproxy_options.pyc
+${PYSITELIB}/rest_framework/authtoken/migrations/0004_alter_tokenproxy_options.pyo
 ${PYSITELIB}/rest_framework/authtoken/migrations/__init__.py
 ${PYSITELIB}/rest_framework/authtoken/migrations/__init__.pyc
 ${PYSITELIB}/rest_framework/authtoken/migrations/__init__.pyo
@@ -241,7 +243,8 @@ ${PYSITELIB}/rest_framework/static/rest_
 ${PYSITELIB}/rest_framework/static/rest_framework/js/coreapi-0.1.1.js
 ${PYSITELIB}/rest_framework/static/rest_framework/js/csrf.js
 ${PYSITELIB}/rest_framework/static/rest_framework/js/default.js
-${PYSITELIB}/rest_framework/static/rest_framework/js/jquery-3.5.1.min.js
+${PYSITELIB}/rest_framework/static/rest_framework/js/jquery-3.7.1.min.js
+${PYSITELIB}/rest_framework/static/rest_framework/js/load-ajax-form.js
 ${PYSITELIB}/rest_framework/static/rest_framework/js/prettify-min.js
 ${PYSITELIB}/rest_framework/status.py
 ${PYSITELIB}/rest_framework/status.pyc
@@ -368,6 +371,9 @@ ${PYSITELIB}/rest_framework/utils/repres
 ${PYSITELIB}/rest_framework/utils/serializer_helpers.py
 ${PYSITELIB}/rest_framework/utils/serializer_helpers.pyc
 ${PYSITELIB}/rest_framework/utils/serializer_helpers.pyo
+${PYSITELIB}/rest_framework/utils/timezone.py
+${PYSITELIB}/rest_framework/utils/timezone.pyc
+${PYSITELIB}/rest_framework/utils/timezone.pyo
 ${PYSITELIB}/rest_framework/utils/urls.py
 ${PYSITELIB}/rest_framework/utils/urls.pyc
 ${PYSITELIB}/rest_framework/utils/urls.pyo

Index: pkgsrc/www/py-djangorestframework/distinfo
diff -u pkgsrc/www/py-djangorestframework/distinfo:1.28 pkgsrc/www/py-djangorestframework/distinfo:1.29
--- pkgsrc/www/py-djangorestframework/distinfo:1.28     Sat Aug  5 06:19:18 2023
+++ pkgsrc/www/py-djangorestframework/distinfo  Fri Mar 22 18:45:23 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.28 2023/08/05 06:19:18 adam Exp $
+$NetBSD: distinfo,v 1.29 2024/03/22 18:45:23 adam Exp $
 
-BLAKE2s (djangorestframework-3.14.0.tar.gz) = bf269384949a15269c7235c3dd8aba67cad1f88518b0956978d5c657c8611799
-SHA512 (djangorestframework-3.14.0.tar.gz) = 063dde9eaaf6adede1b1ce75ec9f61581639e7f0795052019bcf9b9cc02318bd2f5fd825e6893aa2f7353c601e6792f8a52c26351bbb1e930aa841faca61f385
-Size (djangorestframework-3.14.0.tar.gz) = 1055343 bytes
+BLAKE2s (djangorestframework-3.15.1.tar.gz) = 708e87473566322797f3e5ac8d286dbc0403b492bb536c154c6bba4696379c9d
+SHA512 (djangorestframework-3.15.1.tar.gz) = 153039f7b970075bec10f20557a9de7d1c259e7d83fbe374174a25048a1a129a075cfd3cc90363b0e4bc9511061582f788610c15544ccb49a72c7fc28a9ed6f1
+Size (djangorestframework-3.15.1.tar.gz) = 1066194 bytes



Home | Main Index | Thread Index | Old Index