mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 23:34:31 +04:00
django: bump to version 5.0
Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
21
lang/python/django/test.sh
Normal file
21
lang/python/django/test.sh
Normal file
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user