python3-django-cors-headers: update to 4.9.0; add test.sh
authorAlexandru Ardelean <redacted>
Thu, 16 Apr 2026 18:15:27 +0000 (21:15 +0300)
committerAlexandru Ardelean <redacted>
Tue, 21 Apr 2026 09:35:08 +0000 (12:35 +0300)
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 <redacted>
lang/python/python3-django-cors-headers/Makefile
lang/python/python3-django-cors-headers/test.sh [new file with mode: 0644]

index 3d7b8533b3651427fa39c34e854860d1b1f0f17e..0240d0885d80a7304f8426af419c46b08ed4fdf4 100644 (file)
@@ -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 <peter.stadler@student.uibk.ac.at>
 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 (file)
index 0000000..396cfba
--- /dev/null
@@ -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
git clone https://git.99rst.org/PROJECT