From: Alexandru Ardelean Date: Mon, 18 Dec 2023 12:08:51 +0000 (+0200) Subject: django: bump to version 5.0 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F22917%2Fhead;p=feed%2Fpackages.git django: bump to version 5.0 Signed-off-by: Alexandru Ardelean --- 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 +