diff mbox series

[meta-oe,kirkstone,1/1] python3-django: upgrade 4.2.17 -> 4.2.26

Message ID 20251130112125.3009450-1-saravanan.kadambathursubramaniyam@windriver.com
State New
Headers show
Series [meta-oe,kirkstone,1/1] python3-django: upgrade 4.2.17 -> 4.2.26 | expand

Commit Message

Saravanan Nov. 30, 2025, 11:21 a.m. UTC
Fixes CVE-2025-64459, CVE-2025-64458, CVE-2025-59682, CVE-2025-59681,
CVE-2025-57833, CVE-2025-48432, CVE-2025-32873, CVE-2025-26699, CVE-2024-56374
and other bug fixes.

Release notes:
https://docs.djangoproject.com/en/dev/releases/4.2.18/
https://docs.djangoproject.com/en/dev/releases/4.2.19/
https://docs.djangoproject.com/en/dev/releases/4.2.20/
https://docs.djangoproject.com/en/dev/releases/4.2.21/
https://docs.djangoproject.com/en/dev/releases/4.2.22/
https://docs.djangoproject.com/en/dev/releases/4.2.23/
https://docs.djangoproject.com/en/dev/releases/4.2.24/
https://docs.djangoproject.com/en/dev/releases/4.2.25/
https://docs.djangoproject.com/en/dev/releases/4.2.26/

Signed-off-by: Saravanan <saravanan.kadambathursubramaniyam@windriver.com>
---
 .../recipes-devtools/python/python-django.inc   |  6 +++++-
 .../python/python3-django_4.2.17.bb             | 13 -------------
 .../python/python3-django_4.2.26.bb             | 17 +++++++++++++++++
 3 files changed, 22 insertions(+), 14 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-django_4.2.17.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-django_4.2.26.bb
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python-django.inc b/meta-python/recipes-devtools/python/python-django.inc
index e030ff4087..7021eb842d 100644
--- a/meta-python/recipes-devtools/python/python-django.inc
+++ b/meta-python/recipes-devtools/python/python-django.inc
@@ -3,7 +3,11 @@  HOMEPAGE = "http://www.djangoproject.com/"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=f09eb47206614a4954c51db8a94840fa"
 
-PYPI_PACKAGE = "Django"
+# From 4.2.21 onwards package name changed to "django". This common include file
+# is used across 2.x, 3.x and 4.x variants hence making this as a weak variable 
+# which can be overwritten in 4.x recipe
+PYPI_PACKAGE ?= "Django"
+
 inherit pypi
 
 UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)/"
diff --git a/meta-python/recipes-devtools/python/python3-django_4.2.17.bb b/meta-python/recipes-devtools/python/python3-django_4.2.17.bb
deleted file mode 100644
index dfce4b85c2..0000000000
--- a/meta-python/recipes-devtools/python/python3-django_4.2.17.bb
+++ /dev/null
@@ -1,13 +0,0 @@ 
-require python-django.inc
-inherit setuptools3
-
-SRC_URI[sha256sum] = "6b56d834cc94c8b21a8f4e775064896be3b4a4ca387f2612d4406a5927cd2fdc"
-
-RDEPENDS:${PN} += "\
-    ${PYTHON_PN}-sqlparse \
-"
-
-# Set DEFAULT_PREFERENCE so that the LTS version of django is built by
-# default. To build the 4.x branch, 
-# PREFERRED_VERSION_python3-django = "4.2.17" can be added to local.conf
-DEFAULT_PREFERENCE = "-1"
diff --git a/meta-python/recipes-devtools/python/python3-django_4.2.26.bb b/meta-python/recipes-devtools/python/python3-django_4.2.26.bb
new file mode 100644
index 0000000000..7f0b1c9239
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-django_4.2.26.bb
@@ -0,0 +1,17 @@ 
+require python-django.inc
+#From 4.2.22 onwards setuptools configuration migrated to pyproject.toml
+inherit pypi python_setuptools_build_meta
+
+SRC_URI[sha256sum] = "9398e487bcb55e3f142cb56d19fbd9a83e15bb03a97edc31f408361ee76d9d7a"
+
+RDEPENDS:${PN} += "\
+    ${PYTHON_PN}-sqlparse \
+"
+
+# PYPI package name changed from Django -> django
+PYPI_PACKAGE = "django"
+
+# Set DEFAULT_PREFERENCE so that the LTS version of django is built by
+# default. To build the 4.x branch, 
+# PREFERRED_VERSION_python3-django = "4.2.26" can be added to local.conf
+DEFAULT_PREFERENCE = "-1"