[arch-commits] Commit in python-pyjwt/repos/community-staging-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Oct 31 17:03:41 UTC 2019
Date: Thursday, October 31, 2019 @ 17:03:40
Author: felixonmars
Revision: 521247
archrelease: copy trunk to community-staging-any
Added:
python-pyjwt/repos/community-staging-any/PKGBUILD
(from rev 521246, python-pyjwt/trunk/PKGBUILD)
Deleted:
python-pyjwt/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 106 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 53 insertions(+), 53 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-31 17:03:27 UTC (rev 521246)
+++ PKGBUILD 2019-10-31 17:03:40 UTC (rev 521247)
@@ -1,53 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-pyjwt
-pkgname=('python-pyjwt' 'python2-pyjwt')
-pkgver=1.7.1
-pkgrel=2
-pkgdesc='JSON Web Token implementation in Python'
-arch=('any')
-url='https://github.com/jpadilla/pyjwt'
-license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-cov' 'python2-pytest-cov')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/jpadilla/pyjwt/archive/$pkgver.tar.gz")
-sha512sums=('0f61ad132309f896b6ea7f1a689854e643f4db6baf3a44d9f5b544b62e3fce384b95c3a04fe2a46aa3e1a5843c3550d57eaec5449c7faa56ca06562571940171')
-
-prepare() {
- sed -i 's/pytest==2.7.3/pytest/' pyjwt-$pkgver/setup.py
- cp -a pyjwt-$pkgver{,-py2}
-}
-
-build() {
- cd "$srcdir"/pyjwt-$pkgver
- python setup.py build
-
- cd "$srcdir"/pyjwt-$pkgver-py2
- python2 setup.py build
-}
-
-check() {
- cd "$srcdir"/pyjwt-$pkgver
- python setup.py pytest
-
- cd "$srcdir"/pyjwt-$pkgver-py2
- python2 setup.py pytest || warning "Tests failed"
-}
-
-package_python-pyjwt() {
- depends=('python-setuptools')
-
- cd pyjwt-$pkgver
- python3 setup.py install --root="$pkgdir" -O1
- install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-pyjwt() {
- depends=('python2-setuptools')
-
- cd pyjwt-$pkgver-py2
- python2 setup.py install --root="$pkgdir" -O1
- install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-
- mv "$pkgdir"/usr/bin/pyjwt{,2}
-}
Copied: python-pyjwt/repos/community-staging-any/PKGBUILD (from rev 521246, python-pyjwt/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2019-10-31 17:03:40 UTC (rev 521247)
@@ -0,0 +1,53 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pyjwt
+pkgname=('python-pyjwt' 'python2-pyjwt')
+pkgver=1.7.1
+pkgrel=3
+pkgdesc='JSON Web Token implementation in Python'
+arch=('any')
+url='https://github.com/jpadilla/pyjwt'
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-cov' 'python2-pytest-cov')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/jpadilla/pyjwt/archive/$pkgver.tar.gz")
+sha512sums=('0f61ad132309f896b6ea7f1a689854e643f4db6baf3a44d9f5b544b62e3fce384b95c3a04fe2a46aa3e1a5843c3550d57eaec5449c7faa56ca06562571940171')
+
+prepare() {
+ sed -i 's/pytest==2.7.3/pytest/' pyjwt-$pkgver/setup.py
+ cp -a pyjwt-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/pyjwt-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/pyjwt-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/pyjwt-$pkgver
+ python setup.py pytest
+
+ cd "$srcdir"/pyjwt-$pkgver-py2
+ python2 setup.py pytest || warning "Tests failed"
+}
+
+package_python-pyjwt() {
+ depends=('python-setuptools')
+
+ cd pyjwt-$pkgver
+ python3 setup.py install --root="$pkgdir" -O1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-pyjwt() {
+ depends=('python2-setuptools')
+
+ cd pyjwt-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" -O1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ mv "$pkgdir"/usr/bin/pyjwt{,2}
+}
More information about the arch-commits
mailing list