django: bump to version 5.0 22917/head
authorAlexandru Ardelean <alex@shruggie.ro>
Mon, 18 Dec 2023 12:08:51 +0000 (14:08 +0200)
committerAlexandru Ardelean <alex@shruggie.ro>
Wed, 27 Dec 2023 17:25:16 +0000 (19:25 +0200)
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
lang/python/django/Makefile
lang/python/django/test.sh [new file with mode: 0644]

index 62c2a1c01f08b751b6b9d862a2f6a464120af8b3..bbac6314eb362c37b43abb0c62959be79ad6c373 100644 (file)
@@ -8,11 +8,11 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=django
-PKG_VERSION:=4.2.5
+PKG_VERSION:=5.0
 PKG_RELEASE:=1
 
 PYPI_NAME:=Django
-PKG_HASH:=5e5c1c9548ffb7796b4a8a4782e9a2e5a3df3615259fc1bfd3ebc73b646146c1
+PKG_HASH:=7d29e14dfbc19cb6a95a4bd669edbde11f5d4c6a71fdaa42c2d40b6846e807f7
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>, Peter Stadler <peter.stadler@student.uibk.ac.at>
 PKG_LICENSE:=BSD-3-Clause
diff --git a/lang/python/django/test.sh b/lang/python/django/test.sh
new file mode 100644 (file)
index 0000000..40eecc1
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+[ "$1" = "python3-django" ] || exit 0
+
+GOT_VER=$(/usr/bin/django-admin version)
+[ "$GOT_VER" = "$2" ] || {
+       echo "Incorrect version: expected '$2' ; obtained '$GOT_VER'"
+       exit 1
+}
+
+python3 - << EOF
+import sys
+import django
+
+if (django.__version__) != "$GOT_VER":
+    print("Wrong version: " + django.__version__)
+    sys.exit(1)
+
+sys.exit(0)
+EOF
+