From 7833ff1c8a299b8b6cd70b7c23a21969ab61643c Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Mon, 18 Dec 2023 14:08:51 +0200 Subject: [PATCH] django: bump to version 5.0 Signed-off-by: Alexandru Ardelean --- lang/python/django/Makefile | 4 ++-- lang/python/django/test.sh | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 lang/python/django/test.sh diff --git a/lang/python/django/Makefile b/lang/python/django/Makefile index 62c2a1c01f..bbac6314eb 100644 --- a/lang/python/django/Makefile +++ b/lang/python/django/Makefile @@ -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 , Peter Stadler PKG_LICENSE:=BSD-3-Clause diff --git a/lang/python/django/test.sh b/lang/python/django/test.sh new file mode 100644 index 0000000000..40eecc1744 --- /dev/null +++ b/lang/python/django/test.sh @@ -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 + -- 2.30.2