Date: Monday, April 4, 2022 @ 16:23:08 Author: dvzrv Revision: 1181310
upgpkg: python-django-allauth 0.50.0-1: Upgrade to 0.50.0. Switch to PEP517. Modified: python-django-allauth/trunk/PKGBUILD ----------+ PKGBUILD | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-04-04 16:10:29 UTC (rev 1181309) +++ PKGBUILD 2022-04-04 16:23:08 UTC (rev 1181310) @@ -2,7 +2,7 @@ _name=django-allauth pkgname=python-django-allauth -pkgver=0.49.0 +pkgver=0.50.0 pkgrel=1 pkgdesc="Authentication, registration, account management and 3rd party account authentication" arch=(any) @@ -10,31 +10,28 @@ license=(MIT) depends=(python-django python-openid python-requests python-requests-oauthlib python-pyjwt) -makedepends=(python-setuptools) +makedepends=(python-build python-installer python-setuptools python-wheel) checkdepends=(python-mock python-pytest) # tests are not available in pypi sdist: # https://github.com/pennersr/django-allauth/issues/2439 -# source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz") -source=( - $_name-$pkgver.tar.gz::https://github.com/pennersr/$_name/archive/$pkgver.tar.gz -) -sha512sums=('76c1af7758a82fb9176b93f8d4da030c0022b686a993c08a0cbf0ca975a224b076927c69bd7cc61294605d77f6bab8d50d0c8dbbe7f01329e3ee689fa7e68678') -b2sums=('0bfa20c97fe75263343f29bd13fbca7c075f775f7e5fde64faaffd062e04ee7af8bbf442bbf50763ec0f3df355e6990c77d8ab4c3494cf9ebd442dc43e340225') +# source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz) +source=($_name-$pkgver.tar.gz::https://github.com/pennersr/$_name/archive/$pkgver.tar.gz) +sha512sums=('7c1870d28c7123628239f8cddda7fd6f1c9ebd847ebfbad87b7a432a7515a9a9a0541a89a96c57a4137f0fb038168a601a25ee60e894258d514b2dc7db4f1d79') +b2sums=('936358529a067b68e55fcb4131b9a862f58a8df006f1cd47a693d264125c8da1b89dc304eb68c5b3f1f0b76aba454eaad0cd53efd5ade5b3a501bac3d43cdb8a') build() { cd $_name-$pkgver - python setup.py build + python -m build --wheel --skip-dependency-check --no-isolation } check() { cd $_name-$pkgver - export PYTHONPATH="build:$PYTHONPATH" python manage.py test allauth } package() { cd $_name-$pkgver - python setup.py install --optimize=1 --root="$pkgdir" + python -m installer --destdir="$pkgdir" dist/*.whl install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname" install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" }
