[arch-commits] Commit in python-django-allauth/repos (2 files)

David Runge dvzrv at archlinux.org
Mon Jan 13 03:37:10 UTC 2020


    Date: Monday, January 13, 2020 @ 03:37:09
  Author: dvzrv
Revision: 552282

archrelease: copy trunk to community-any

Added:
  python-django-allauth/repos/community-any/
  python-django-allauth/repos/community-any/PKGBUILD
    (from rev 552281, python-django-allauth/trunk/PKGBUILD)

----------+
 PKGBUILD |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

Copied: python-django-allauth/repos/community-any/PKGBUILD (from rev 552281, python-django-allauth/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-01-13 03:37:09 UTC (rev 552282)
@@ -0,0 +1,44 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+
+_name=django-allauth
+pkgname=python-django-allauth
+pkgver=0.41.0
+pkgrel=1
+pkgdesc="Authentication, registration, account management and 3rd party account authentication"
+arch=('any')
+url="https://github.com/pennersr/django-allauth"
+license=('MIT')
+depends=('python-django' 'python-openid' 'python-requests'
+'python-requests-oauthlib')
+makedepends=('python-setuptools')
+checkdepends=('python-coverage' '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=('8de27ea209334327918c58174cbe510625428ca74dc8032e50d98caa5aa6e24ed885285e65ba039c12c06d739c0366b46e5fcd7940ec6f02ff2f53f3084d8d08')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  coverage run manage.py test allauth
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}



More information about the arch-commits mailing list