Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages /
django
Commits:
db31175f by Jelle van der Waa at 2024-08-31T11:54:41+02:00
upgpkg: 5.1-1
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,6 +1,6 @@
pkgbase = django
pkgdesc = A high-level Python Web framework that encourages rapid
development and clean design
- pkgver = 4.2.12
+ pkgver = 5.1
pkgrel = 1
url = http://www.djangoproject.com/
arch = any
@@ -9,13 +9,16 @@ pkgbase = django
checkdepends = python-tblib
makedepends = python
makedepends = python-setuptools
+ makedepends = python-build
+ makedepends = python-installer
+ makedepends = python-wheel
depends = python
depends = python-pytz
depends = python-sqlparse
depends = python-asgiref
optdepends = python-psycopg2: for PostgreSQL backend
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/
- sha512sums =
5fe9a7b1c12d6e2aee2ff9108eca77719d0bc44bd26990465a6651cd5ea0d705cce49704be1a0e9afcf11b3ec37457232484193ed1902bb8e872e28b3c05c4c1
+ source =
Django-5.1.tar.gz::https://www.djangoproject.com/download/5.1/tarball/
+ sha512sums =
4c34df7adf2a151488d8595551fe6e8eb90fdef9d7592ce1d8c8b0663fe4d876614f5dde4df1dd648153d4df6246ae39dbb33a66b1c3d2f60bd46595e0efb396
pkgname = python-django
=====================================
PKGBUILD
=====================================
@@ -4,30 +4,35 @@
pkgbase=django
pkgname=('python-django')
-pkgver=4.2.12
+pkgver=5.1
pkgrel=1
pkgdesc="A high-level Python Web framework that encourages rapid development
and clean design"
arch=('any')
license=('BSD')
url="http://www.djangoproject.com/"
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')
# TODO: package and add python-pymemcache
https://docs.djangoproject.com/en/dev/topics/cache/
optdepends=('python-psycopg2: for PostgreSQL backend'
'python-argon2_cffi: for Argon2 password hashing support')
source=("Django-$pkgver.tar.gz::https://www.djangoproject.com/download/$pkgver/tarball/")
-sha512sums=('5fe9a7b1c12d6e2aee2ff9108eca77719d0bc44bd26990465a6651cd5ea0d705cce49704be1a0e9afcf11b3ec37457232484193ed1902bb8e872e28b3c05c4c1')
+sha512sums=('4c34df7adf2a151488d8595551fe6e8eb90fdef9d7592ce1d8c8b0663fe4d876614f5dde4df1dd648153d4df6246ae39dbb33a66b1c3d2f60bd46595e0efb396')
+
+prepare() {
+ cd "Django-$pkgver"
+ # Drop versioned setuptools requirement
+ sed -i 's/>=61.0.0,<69.3.0//' pyproject.toml
+}
build() {
- cd "$srcdir/django-$pkgver"
- python setup.py build
+ cd "Django-$pkgver"
+ python -m build --wheel --no-isolation
}
package_python-django() {
- cd "$srcdir/django-$pkgver"
-
- python setup.py install --root="$pkgdir" --optimize=1
+ cd "Django-$pkgver"
+ python -m installer --destdir="$pkgdir" dist/*.whl
ln -s django-admin.py "$pkgdir"/usr/bin/django-admin3.py
ln -s django-admin "$pkgdir"/usr/bin/django-admin3
@@ -42,6 +47,6 @@ package_python-django() {
}
check() {
- cd "$srcdir/django-$pkgver"
+ cd "Django-$pkgver"
PYTHONPATH="$PWD" python tests/runtests.py || echo 'tests failed'
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/django/-/commit/db31175f0c8c0ee47301c536deacdf80a1a476d9
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/django/-/commit/db31175f0c8c0ee47301c536deacdf80a1a476d9
You're receiving this email because of your account on gitlab.archlinux.org.