* update django to 5.1.1-1

This commit is contained in:
Alexander Baldeck 2024-09-24 14:40:17 +02:00
parent 121645420c
commit 990ec477fe
2 changed files with 20 additions and 12 deletions

View File

@ -1,6 +1,6 @@
pkgbase = django pkgbase = django
pkgdesc = A high-level Python Web framework that encourages rapid development and clean design pkgdesc = A high-level Python Web framework that encourages rapid development and clean design
pkgver = 4.2.12 pkgver = 5.1.1
pkgrel = 1 pkgrel = 1
url = http://www.djangoproject.com/ url = http://www.djangoproject.com/
arch = any arch = any
@ -9,13 +9,16 @@ pkgbase = django
checkdepends = python-tblib checkdepends = python-tblib
makedepends = python makedepends = python
makedepends = python-setuptools makedepends = python-setuptools
makedepends = python-build
makedepends = python-installer
makedepends = python-wheel
depends = python depends = python
depends = python-pytz depends = python-pytz
depends = python-sqlparse depends = python-sqlparse
depends = python-asgiref depends = python-asgiref
optdepends = python-psycopg2: for PostgreSQL backend optdepends = python-psycopg2: for PostgreSQL backend
optdepends = python-argon2_cffi: for Argon2 password hashing support optdepends = python-argon2_cffi: for Argon2 password hashing support
source = Django-4.2.12.tar.gz::https://www.djangoproject.com/download/4.2.12/tarball/ source = Django-5.1.1.tar.gz::https://www.djangoproject.com/download/5.1.1/tarball/
sha512sums = 5fe9a7b1c12d6e2aee2ff9108eca77719d0bc44bd26990465a6651cd5ea0d705cce49704be1a0e9afcf11b3ec37457232484193ed1902bb8e872e28b3c05c4c1 sha512sums = c5c75f0b36ef4316c4b7306ec4f8cb612ec554c79f1ac2346b56485ca025b1ca7c048a294568b71f989f2f19cb2c3849f01e5fe62dad00b6591989f274ec8c5b
pkgname = python-django pkgname = python-django

View File

@ -5,30 +5,35 @@
pkgbase=django pkgbase=django
pkgname=('python-django') pkgname=('python-django')
pkgver=4.2.12 pkgver=5.1.1
pkgrel=1 pkgrel=1
pkgdesc="A high-level Python Web framework that encourages rapid development and clean design" pkgdesc="A high-level Python Web framework that encourages rapid development and clean design"
arch=(any) arch=(any)
license=('BSD') license=('BSD')
url="http://www.djangoproject.com/" url="http://www.djangoproject.com/"
checkdepends=('python-pytest' 'python-tblib') checkdepends=('python-pytest' 'python-tblib')
makedepends=('python' 'python-setuptools') makedepends=('python' 'python-setuptools' 'python-build' 'python-installer' 'python-wheel')
depends=('python' 'python-pytz' 'python-sqlparse' 'python-asgiref') depends=('python' 'python-pytz' 'python-sqlparse' 'python-asgiref')
# TODO: package and add python-pymemcache https://docs.djangoproject.com/en/dev/topics/cache/ # TODO: package and add python-pymemcache https://docs.djangoproject.com/en/dev/topics/cache/
optdepends=('python-psycopg2: for PostgreSQL backend' optdepends=('python-psycopg2: for PostgreSQL backend'
'python-argon2_cffi: for Argon2 password hashing support') 'python-argon2_cffi: for Argon2 password hashing support')
source=("Django-$pkgver.tar.gz::https://www.djangoproject.com/download/$pkgver/tarball/") source=("Django-$pkgver.tar.gz::https://www.djangoproject.com/download/$pkgver/tarball/")
sha512sums=('5fe9a7b1c12d6e2aee2ff9108eca77719d0bc44bd26990465a6651cd5ea0d705cce49704be1a0e9afcf11b3ec37457232484193ed1902bb8e872e28b3c05c4c1') sha512sums=('c5c75f0b36ef4316c4b7306ec4f8cb612ec554c79f1ac2346b56485ca025b1ca7c048a294568b71f989f2f19cb2c3849f01e5fe62dad00b6591989f274ec8c5b')
prepare() {
cd "Django-$pkgver"
# Drop versioned setuptools requirement
sed -i 's/>=61.0.0,<69.3.0//' pyproject.toml
}
build() { build() {
cd "$srcdir/django-$pkgver" cd "Django-$pkgver"
python setup.py build python -m build --wheel --no-isolation
} }
package_python-django() { package_python-django() {
cd "$srcdir/django-$pkgver" cd "Django-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
python setup.py install --root="$pkgdir" --optimize=1
ln -s django-admin.py "$pkgdir"/usr/bin/django-admin3.py ln -s django-admin.py "$pkgdir"/usr/bin/django-admin3.py
ln -s django-admin "$pkgdir"/usr/bin/django-admin3 ln -s django-admin "$pkgdir"/usr/bin/django-admin3
@ -43,6 +48,6 @@ package_python-django() {
} }
check() { check() {
cd "$srcdir/django-$pkgver" cd "Django-$pkgver"
PYTHONPATH="$PWD" python tests/runtests.py || echo 'tests failed' PYTHONPATH="$PWD" python tests/runtests.py || echo 'tests failed'
} }