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

Evangelos Foutras foutrelis at archlinux.org
Sat Jun 30 15:51:37 UTC 2018


    Date: Saturday, June 30, 2018 @ 15:51:36
  Author: foutrelis
Revision: 348342

archrelease: copy trunk to community-staging-any

Added:
  python-pygithub/repos/community-staging-any/
  python-pygithub/repos/community-staging-any/PKGBUILD
    (from rev 348341, python-pygithub/trunk/PKGBUILD)

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

Copied: python-pygithub/repos/community-staging-any/PKGBUILD (from rev 348341, python-pygithub/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 15:51:36 UTC (rev 348342)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pygithub
+pkgname=('python-pygithub' 'python2-pygithub')
+pkgver=1.40
+pkgrel=2
+pkgdesc="Use the full Github API v3"
+arch=('any')
+license=('LGPL')
+url="https://github.com/PyGithub/PyGithub"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pyjwt' 'python2-pyjwt')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/PyGithub/PyGithub/archive/v$pkgver.tar.gz")
+sha512sums=('e8719017ce04db2c25ab8059b124a43a3688d4775861b80a0bcc7a194eaf43cd942eba1da199b76ef35c5bcde364708586c09630a7fac5642867b5a62985efad')
+
+prepare() {
+  cp -a PyGithub-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/PyGithub-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/PyGithub-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/PyGithub-$pkgver
+  python setup.py test
+
+  cd "$srcdir"/PyGithub-$pkgver-py2
+  python2 setup.py test
+}
+
+package_python-pygithub() {
+  depends=('python-pyjwt')
+
+  cd PyGithub-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-pygithub() {
+  depends=('python2-pyjwt')
+
+  cd PyGithub-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list