[meta-python,3/3] python3-django: Add recipe for 4.0.1

Message ID 20220107185216.3375-3-trevor.gamblin@windriver.com
State New
Headers show
Series [meta-python,1/3] python3-django: upgrade 2.2.25 -> 2.2.26 | expand

Commit Message

Trevor Gamblin Jan. 7, 2022, 6:52 p.m. UTC
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
---
 .../recipes-devtools/python/python3-django_4.0.1.bb | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-django_4.0.1.bb

Patch

diff --git a/meta-python/recipes-devtools/python/python3-django_4.0.1.bb b/meta-python/recipes-devtools/python/python3-django_4.0.1.bb
new file mode 100644
index 000000000..6cf8cad8a
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-django_4.0.1.bb
@@ -0,0 +1,13 @@ 
+require python-django.inc
+inherit setuptools3
+
+SRC_URI[sha256sum] = "2485eea3cc4c3bae13080dee866ebf90ba9f98d1afe8fda89bfb0eb2e218ef86"
+
+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.0.2" can be added to local.conf
+DEFAULT_PREFERENCE = "-1"