[arch-commits] Commit in python-flask-login/repos/community-any (PKGBUILD PKGBUILD)

Levente Polyak anthraxx at gemini.archlinux.org
Wed Mar 30 20:06:56 UTC 2022


    Date: Wednesday, March 30, 2022 @ 20:06:56
  Author: anthraxx
Revision: 1177847

archrelease: copy trunk to community-any

Added:
  python-flask-login/repos/community-any/PKGBUILD
    (from rev 1177846, python-flask-login/trunk/PKGBUILD)
Deleted:
  python-flask-login/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   66 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 32 insertions(+), 34 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-30 20:06:52 UTC (rev 1177846)
+++ PKGBUILD	2022-03-30 20:06:56 UTC (rev 1177847)
@@ -1,34 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-flask-login
-pkgver=0.5.0
-pkgrel=5
-pkgdesc="User session management for Flask."
-arch=('any')
-url="https://pythonhosted.org/Flask-Login/"
-license=('MIT')
-depends=('python-flask')
-makedepends=('python-setuptools')
-checkdepends=('python-nose' 'python-mock' 'python-blinker' 'python-semantic-version')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/maxcountryman/flask-login/archive/$pkgver.tar.gz"
-        $pkgname-python310.patch::https://github.com/maxcountryman/flask-login/commit/3d316b615f91.patch)
-sha512sums=('8ffecd2a512738f81ec3901ad30d356b1d63355268f7cf1b427e463d0a271a4623723255e139bbd0f88845d73fa4aab051418b5f68aef0b4576c30294f6207b3'
-            '0739db32782fac6906d1c5fa871dabc4728a200489566a9e9c2f302a9af877d0a6e79e11f36e865c468aa4dbadf799e2022ea70d9e579164970730e795aca8dc')
-
-prepare() {
-  cd "$srcdir"/flask-login-$pkgver
-  patch -Np1 -i ../$pkgname-python310.patch
-}
-
-check() {
-  cd "$srcdir"/flask-login-$pkgver
-  nosetests3
-}
-
-package() {
-  cd flask-login-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-
-  mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
-  install -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname
-}

Copied: python-flask-login/repos/community-any/PKGBUILD (from rev 1177846, python-flask-login/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-03-30 20:06:56 UTC (rev 1177847)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-flask-login
+pkgver=0.6.0
+pkgrel=1
+pkgdesc="User session management for Flask"
+arch=('any')
+url="https://pythonhosted.org/Flask-Login/"
+license=('MIT')
+depends=('python' 'python-flask' 'python-werkzeug')
+makedepends=('python-build' 'python-installer' 'python-wheel')
+checkdepends=('python-nose' 'python-mock' 'python-blinker' 'python-semantic-version' 'python-asgiref')
+source=("https://github.com/maxcountryman/flask-login/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('0766ef5702105bc2cea7082b2b2a9bebed282a9166757adbc91a02c4adcc291d41a3217e8b9566b6bb4778db4a1d2453edb0b7a727c9bff2673833d27b69148e')
+
+build() {
+  cd flask-login-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd flask-login-$pkgver
+  nosetests3
+}
+
+package() {
+  cd flask-login-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+  install -Dm 644 README.md -t "$pkgdir"/usr/share/docs/$pkgname
+}



More information about the arch-commits mailing list