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

Evangelos Foutras foutrelis at archlinux.org
Sun Dec 25 17:36:15 UTC 2016


    Date: Sunday, December 25, 2016 @ 17:36:14
  Author: foutrelis
Revision: 202115

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pygithub/repos/community-staging-any/PKGBUILD (from rev 202114, python-pygithub/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 17:36:14 UTC (rev 202115)
@@ -0,0 +1,48 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pygithub
+pkgname=('python-pygithub' 'python2-pygithub')
+pkgver=1.29
+pkgrel=2
+pkgdesc="Use the full Github API v3"
+arch=('any')
+license=('LGPL')
+url="http://jacquev6.github.com/PyGithub"
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+source=("git+https://github.com/PyGithub/PyGithub.git#tag=v$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a PyGithub{,-py2}
+}
+
+build() {
+  cd "$srcdir"/PyGithub
+  python setup.py build
+
+  cd "$srcdir"/PyGithub-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/PyGithub
+  python setup.py test
+
+  cd "$srcdir"/PyGithub-py2
+  python2 setup.py test
+}
+
+package_python-pygithub() {
+  depends=('python')
+
+  cd PyGithub
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-pygithub() {
+  depends=('python2')
+
+  cd PyGithub-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list