diff options
| author | Alexandru Ardelean <alex@shruggie.ro> | 2023-12-18 14:08:51 +0200 |
|---|---|---|
| committer | Alexandru Ardelean <alex@shruggie.ro> | 2023-12-27 19:25:16 +0200 |
| commit | 7833ff1c8a299b8b6cd70b7c23a21969ab61643c (patch) | |
| tree | aaceddf98620aeabd43b81e93bd7b02a52cd12ff /lang/python | |
| parent | f54c3e326d4f9e549cb61054a562b203cb56cd51 (diff) | |
django: bump to version 5.0
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
Diffstat (limited to 'lang/python')
| -rw-r--r-- | lang/python/django/Makefile | 4 | ||||
| -rw-r--r-- | lang/python/django/test.sh | 21 |
2 files changed, 23 insertions, 2 deletions
diff --git a/lang/python/django/Makefile b/lang/python/django/Makefile index 62c2a1c01..bbac6314e 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 <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 index 000000000..40eecc174 --- /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 + |
