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:           Sat Aug  5 06:19:18 UTC 2023

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

Log Message:
py-djangorestframework: updated to 3.14.0

Django REST framework 3.14
Django 4.1 support
The latest release now fully supports Django 4.1, and drops support for Django 2.2.

Our requirements are now:

Python 3.6+
Django 4.1, 4.0, 3.2, 3.1, 3.0
raise_exceptions argument for is_valid is now keyword-only.
Calling serializer_instance.is_valid(True) is no longer acceptable syntax. If you'd like to use the raise_exceptions argument, you must use it as a keyword argument.

ManyRelatedField supports returning the default when the source attribute doesn't exist.
Previously, if you used a serializer field with many=True with a dot notated source field that didn't exist, it would raise an AttributeError. Now it will return the default or be skipped depending 
on the other arguments.

Make Open API get_reference public.
Returns a reference to the serializer component. This may be useful if you override get_schema().

Change semantic of OR of two permission classes.
When OR-ing two permissions, the request has to pass either class's has_permission() and has_object_permission().

Previously, both class's has_permission() was ignored when OR-ing two permissions together.

Minor fixes and improvements
There are a number of minor fixes and improvements in this release. See the release notes page for a complete listing.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 pkgsrc/www/py-djangorestframework/Makefile
cvs rdiff -u -r1.17 -r1.18 pkgsrc/www/py-djangorestframework/PLIST
cvs rdiff -u -r1.27 -r1.28 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.35 pkgsrc/www/py-djangorestframework/Makefile:1.36
--- pkgsrc/www/py-djangorestframework/Makefile:1.35     Thu Jul 13 10:03:30 2023
+++ pkgsrc/www/py-djangorestframework/Makefile  Sat Aug  5 06:19:18 2023
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.35 2023/07/13 10:03:30 wiz Exp $
+# $NetBSD: Makefile,v 1.36 2023/08/05 06:19:18 adam Exp $
 
-DISTNAME=      djangorestframework-3.13.1
+DISTNAME=      djangorestframework-3.14.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=d/djangorestframework/}
 

Index: pkgsrc/www/py-djangorestframework/PLIST
diff -u pkgsrc/www/py-djangorestframework/PLIST:1.17 pkgsrc/www/py-djangorestframework/PLIST:1.18
--- pkgsrc/www/py-djangorestframework/PLIST:1.17        Wed Jan 20 10:57:01 2021
+++ pkgsrc/www/py-djangorestframework/PLIST     Sat Aug  5 06:19:18 2023
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.17 2021/01/20 10:57:01 adam Exp $
+@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
@@ -209,8 +209,10 @@ ${PYSITELIB}/rest_framework/settings.py
 ${PYSITELIB}/rest_framework/settings.pyc
 ${PYSITELIB}/rest_framework/settings.pyo
 ${PYSITELIB}/rest_framework/static/rest_framework/css/bootstrap-theme.min.css
+${PYSITELIB}/rest_framework/static/rest_framework/css/bootstrap-theme.min.css.map
 ${PYSITELIB}/rest_framework/static/rest_framework/css/bootstrap-tweaks.css
 ${PYSITELIB}/rest_framework/static/rest_framework/css/bootstrap.min.css
+${PYSITELIB}/rest_framework/static/rest_framework/css/bootstrap.min.css.map
 ${PYSITELIB}/rest_framework/static/rest_framework/css/default.css
 ${PYSITELIB}/rest_framework/static/rest_framework/css/font-awesome-4.0.3.css
 ${PYSITELIB}/rest_framework/static/rest_framework/css/prettify.css

Index: pkgsrc/www/py-djangorestframework/distinfo
diff -u pkgsrc/www/py-djangorestframework/distinfo:1.27 pkgsrc/www/py-djangorestframework/distinfo:1.28
--- pkgsrc/www/py-djangorestframework/distinfo:1.27     Mon Jan 24 14:32:59 2022
+++ pkgsrc/www/py-djangorestframework/distinfo  Sat Aug  5 06:19:18 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.27 2022/01/24 14:32:59 adam Exp $
+$NetBSD: distinfo,v 1.28 2023/08/05 06:19:18 adam Exp $
 
-BLAKE2s (djangorestframework-3.13.1.tar.gz) = 1d974eef6b68555d0d3ce7e138ec8f14fb73a99921d2a3f92f022a7933aad342
-SHA512 (djangorestframework-3.13.1.tar.gz) = 04412d107e6ea2821893b2f4f8dcc4dfd9f7547f1a116d46c2068121f6c255cb6a14e8b0a9523a46380150f4d71f5aed616ad3677d1c780ccf8105deadb5b728
-Size (djangorestframework-3.13.1.tar.gz) = 954950 bytes
+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



Home | Main Index | Thread Index | Old Index