[arch-commits] Commit in python-flask-jwt/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sun Aug 18 17:43:19 UTC 2019
Date: Sunday, August 18, 2019 @ 17:43:19
Author: felixonmars
Revision: 500093
archrelease: copy trunk to community-any
Added:
python-flask-jwt/repos/community-any/PKGBUILD
(from rev 500092, python-flask-jwt/trunk/PKGBUILD)
Deleted:
python-flask-jwt/repos/community-any/PKGBUILD
----------+
PKGBUILD | 94 ++++++++++++++++++++++++-------------------------------------
1 file changed, 37 insertions(+), 57 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-08-18 17:43:10 UTC (rev 500092)
+++ PKGBUILD 2019-08-18 17:43:19 UTC (rev 500093)
@@ -1,57 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-flask-jwt
-pkgname=(python-flask-jwt python2-flask-jwt)
-pkgver=0.3.2
-pkgrel=2
-pkgdesc="JWT token authentication for Flask apps"
-url="https://github.com/mattupstate/flask-jwt"
-license=('MIT')
-arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-flask' 'python2-flask' 'python-pyjwt'
- 'python2-pyjwt')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/mattupstate/flask-jwt/archive/$pkgver.tar.gz")
-sha512sums=('7c115ff4964da9a36303ac502dea98cd847abc3c1d45cd0be09b82ec761ee054d7ef97e25fd669112ab29dbfca00b4563914155ab1c8da4fc3d32f0063128b26')
-
-prepare() {
- # Too old options
- sed -i 's/,<1.5.0//' flask-jwt-$pkgver/requirements.txt
- echo > flask-jwt-$pkgver/requirements-dev.txt
- rm flask-jwt-$pkgver/setup.cfg
-
- cp -a flask-jwt-$pkgver{,-py2}
-}
-
-build() {
- cd "$srcdir"/flask-jwt-$pkgver
- python setup.py build
-
- cd "$srcdir"/flask-jwt-$pkgver-py2
- python2 setup.py build
-}
-
-check() {
- cd "$srcdir"/flask-jwt-$pkgver
- python setup.py pytest
-
- cd "$srcdir"/flask-jwt-$pkgver-py2
- python2 setup.py pytest
-}
-
-package_python-flask-jwt() {
- depends=('python-flask' 'python-pyjwt')
-
- cd flask-jwt-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-flask-jwt() {
- depends=('python2-flask' 'python2-pyjwt')
-
- cd flask-jwt-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
Copied: python-flask-jwt/repos/community-any/PKGBUILD (from rev 500092, python-flask-jwt/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-08-18 17:43:19 UTC (rev 500093)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-flask-jwt
+pkgver=0.3.2
+pkgrel=3
+pkgdesc="JWT token authentication for Flask apps"
+url="https://github.com/mattupstate/flask-jwt"
+license=('MIT')
+arch=('any')
+depends=('python-flask' 'python-pyjwt')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mattupstate/flask-jwt/archive/$pkgver.tar.gz")
+sha512sums=('7c115ff4964da9a36303ac502dea98cd847abc3c1d45cd0be09b82ec761ee054d7ef97e25fd669112ab29dbfca00b4563914155ab1c8da4fc3d32f0063128b26')
+
+prepare() {
+ # Too old options
+ sed -i 's/,<1.5.0//' flask-jwt-$pkgver/requirements.txt
+ echo > flask-jwt-$pkgver/requirements-dev.txt
+ rm flask-jwt-$pkgver/setup.cfg
+}
+
+build() {
+ cd flask-jwt-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd flask-jwt-$pkgver
+ python setup.py pytest
+}
+
+package() {
+ cd flask-jwt-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list