pkgsrc-Changes archive

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

CVS commit: pkgsrc/www/py-django-cors-headers



Module Name:    pkgsrc
Committed By:   adam
Date:           Wed Aug 30 13:46:13 UTC 2023

Modified Files:
        pkgsrc/www/py-django-cors-headers: Makefile PLIST distinfo

Log Message:
py-django-cors-headers: updated to 4.2.0

4.2.0 (2023-07-10)
------------------

* Drop Python 3.7 support.

4.1.0 (2023-06-14)
------------------

* Support Python 3.12.

4.0.0 (2023-05-12)
------------------

* Add ``CORS_ALLOW_PRIVATE_NETWORK`` setting, which enables support for the Local Network Access draft specification.

* Remove three headers from the default "accept list": ``accept-encoding``, ``dnt``, and ``origin``.
  These are `Forbidden header names <https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name>`__, which means requests JavaScript can never set them.
  Consequently, allowing them via CORS has no effect.

* Drop the ``CORS_REPLACE_HTTPS_REFERER`` setting and ``CorsPostCsrfMiddleware``.
  Since Django 1.9, the ``CSRF_TRUSTED_ORIGINS`` setting has been the preferred solution to making CSRF checks pass for CORS requests.
  The removed setting and middleware only existed as a workaround for Django versions before 1.9.

* Add async support to the middleware, reducing overhead on async views.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 pkgsrc/www/py-django-cors-headers/Makefile \
    pkgsrc/www/py-django-cors-headers/distinfo
cvs rdiff -u -r1.5 -r1.6 pkgsrc/www/py-django-cors-headers/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-cors-headers/Makefile
diff -u pkgsrc/www/py-django-cors-headers/Makefile:1.24 pkgsrc/www/py-django-cors-headers/Makefile:1.25
--- pkgsrc/www/py-django-cors-headers/Makefile:1.24     Thu Jul 13 10:03:27 2023
+++ pkgsrc/www/py-django-cors-headers/Makefile  Wed Aug 30 13:46:13 2023
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.24 2023/07/13 10:03:27 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2023/08/30 13:46:13 adam Exp $
 
-DISTNAME=      django-cors-headers-3.11.0
-PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
+DISTNAME=      django_cors_headers-4.2.0
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/_/-/g}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=d/django-cors-headers/}
 
@@ -11,11 +10,12 @@ HOMEPAGE=   https://github.com/adamchainz/
 COMMENT=       Django application for handling headers required for CORS
 LICENSE=       mit
 
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
 DEPENDS+=      ${PYPKGPREFIX}-django>=3:../../www/py-django3
 
 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-cors-headers/distinfo
diff -u pkgsrc/www/py-django-cors-headers/distinfo:1.24 pkgsrc/www/py-django-cors-headers/distinfo:1.25
--- pkgsrc/www/py-django-cors-headers/distinfo:1.24     Mon Feb  7 20:52:39 2022
+++ pkgsrc/www/py-django-cors-headers/distinfo  Wed Aug 30 13:46:13 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.24 2022/02/07 20:52:39 adam Exp $
+$NetBSD: distinfo,v 1.25 2023/08/30 13:46:13 adam Exp $
 
-BLAKE2s (django-cors-headers-3.11.0.tar.gz) = eeaddc914ceb18887e9ff862bfbbf8cc6bc633f62a23f17615155f63026a37d5
-SHA512 (django-cors-headers-3.11.0.tar.gz) = 3850aa5afc9ba44843b109fdf0719e652c1b01f2b1118c4e5d58fe214b2a807b005df069676c12baf9ad55179209f092c0b457e9947c06d2d7dffde527aa4773
-Size (django-cors-headers-3.11.0.tar.gz) = 20730 bytes
+BLAKE2s (django_cors_headers-4.2.0.tar.gz) = 373ce375cdf52e67ae62265746a9c79aed17d8e366d08f590c7271a826ed2424
+SHA512 (django_cors_headers-4.2.0.tar.gz) = f340bfb938bfe0d17089e67fd7c448f9fad9e882e090502b1449b0947beb77802983fa649eb48806e2fe9024a1402dfb5735a98381c16e85c721fa5a92cac1f1
+Size (django_cors_headers-4.2.0.tar.gz) = 21183 bytes

Index: pkgsrc/www/py-django-cors-headers/PLIST
diff -u pkgsrc/www/py-django-cors-headers/PLIST:1.5 pkgsrc/www/py-django-cors-headers/PLIST:1.6
--- pkgsrc/www/py-django-cors-headers/PLIST:1.5 Mon Sep  6 16:31:54 2021
+++ pkgsrc/www/py-django-cors-headers/PLIST     Wed Aug 30 13:46:13 2023
@@ -1,29 +1,24 @@
-@comment $NetBSD: PLIST,v 1.5 2021/09/06 16:31:54 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.6 2023/08/30 13:46:13 adam Exp $
+${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/corsheaders/__init__.py
 ${PYSITELIB}/corsheaders/__init__.pyc
-${PYSITELIB}/corsheaders/__init__.pyo
 ${PYSITELIB}/corsheaders/apps.py
 ${PYSITELIB}/corsheaders/apps.pyc
-${PYSITELIB}/corsheaders/apps.pyo
 ${PYSITELIB}/corsheaders/checks.py
 ${PYSITELIB}/corsheaders/checks.pyc
-${PYSITELIB}/corsheaders/checks.pyo
 ${PYSITELIB}/corsheaders/conf.py
 ${PYSITELIB}/corsheaders/conf.pyc
-${PYSITELIB}/corsheaders/conf.pyo
 ${PYSITELIB}/corsheaders/defaults.py
 ${PYSITELIB}/corsheaders/defaults.pyc
-${PYSITELIB}/corsheaders/defaults.pyo
 ${PYSITELIB}/corsheaders/middleware.py
 ${PYSITELIB}/corsheaders/middleware.pyc
-${PYSITELIB}/corsheaders/middleware.pyo
 ${PYSITELIB}/corsheaders/py.typed
 ${PYSITELIB}/corsheaders/signals.py
 ${PYSITELIB}/corsheaders/signals.pyc
-${PYSITELIB}/corsheaders/signals.pyo



Home | Main Index | Thread Index | Old Index