Merge pull request #22917 from commodo/django1
django: bump to version 5.0
This commit is contained in:
commit
0198bd242c
2 changed files with 23 additions and 2 deletions
|
@ -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
|
||||
|
|
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
|
||||
|
Loading…
Reference in a new issue