From ccd69a148f85b86c1024fd318f23b4392aa778b5 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Thu, 16 Apr 2026 21:15:27 +0300 Subject: [PATCH] python3-django-cors-headers: update to 4.9.0; add test.sh Major changes since 3.10.0: 4.0: - add CORS_ALLOW_PRIVATE_NETWORK setting for Local Network Access spec support - add async middleware support, reducing overhead on async views - remove deprecated CORS_REPLACE_HTTPS_REFERER and CorsPostCsrfMiddleware - remove three header names from default allowed list (accept-encoding, dnt, origin) 4.3: - fix access-control-allow-credentials header not being omitted on non-allowed responses 4.6: - drop support for Django 3.2 through 4.1 4.9: - add Django 6.0 support - tighten validation of sequence-type settings (e.g. CORS_ALLOW_METHODS) Add PYPI_SOURCE_NAME:=django_cors_headers as the 4.x sdist uses underscores in the filename. Signed-off-by: Alexandru Ardelean --- lang/python/python3-django-cors-headers/Makefile | 5 +++-- lang/python/python3-django-cors-headers/test.sh | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 lang/python/python3-django-cors-headers/test.sh diff --git a/lang/python/python3-django-cors-headers/Makefile b/lang/python/python3-django-cors-headers/Makefile index 3d7b8533b3..0240d0885d 100644 --- a/lang/python/python3-django-cors-headers/Makefile +++ b/lang/python/python3-django-cors-headers/Makefile @@ -1,11 +1,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=django-cors-headers -PKG_VERSION:=3.10.0 +PKG_VERSION:=4.9.0 PKG_RELEASE:=2 PYPI_NAME:=django-cors-headers -PKG_HASH:=cd6f4360f5246569c149dc1c40c907c191f1ec45551e10d2a2e2e68512652f78 +PYPI_SOURCE_NAME:=django_cors_headers +PKG_HASH:=fe5d7cb59fdc2c8c646ce84b727ac2bca8912a247e6e68e1fb507372178e59e8 PKG_MAINTAINER:=Peter Stadler PKG_LICENSE:=MIT diff --git a/lang/python/python3-django-cors-headers/test.sh b/lang/python/python3-django-cors-headers/test.sh new file mode 100644 index 0000000000..396cfba133 --- /dev/null +++ b/lang/python/python3-django-cors-headers/test.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +[ "$1" = python3-django-cors-headers ] || exit 0 + +python3 - << 'EOF' +import corsheaders +from corsheaders.middleware import CorsMiddleware +from corsheaders.conf import conf + +assert CorsMiddleware is not None +assert conf is not None + +print("python3-django-cors-headers OK") +EOF