[arch-commits] Commit in python-pygithub/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Apr 2 12:27:27 UTC 2019


    Date: Tuesday, April 2, 2019 @ 12:27:26
  Author: felixonmars
Revision: 447643

upgpkg: python-pygithub 1.43.5-2

remove python2 sibling

Modified:
  python-pygithub/trunk/PKGBUILD

----------+
 PKGBUILD |   36 ++++++++----------------------------
 1 file changed, 8 insertions(+), 28 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-04-02 12:26:32 UTC (rev 447642)
+++ PKGBUILD	2019-04-02 12:27:26 UTC (rev 447643)
@@ -1,48 +1,28 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-pygithub
-pkgname=('python-pygithub' 'python2-pygithub')
+pkgname=python-pygithub
 pkgver=1.43.5
-pkgrel=1
+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'
-             'python-requests' 'python2-requests' 'python-deprecated' 'python2-deprecated')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/PyGithub/PyGithub/archive/v$pkgver.tar.gz")
+depends=('python-pyjwt' 'python-requests' 'python-deprecated')
+makedepends=('python-setuptools')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/PyGithub/PyGithub/archive/v$pkgver.tar.gz")
 sha512sums=('703de65539c1e2af4462285d1788611d98a4052fcf223b54795da34679d1e327de8758d895d73b707f87f8a006171bc5c6b8182388ac6fde3808be8af6021dde')
 
-prepare() {
-  cp -a PyGithub-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/PyGithub-$pkgver
+  cd PyGithub-$pkgver
   python setup.py build
-
-  cd "$srcdir"/PyGithub-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/PyGithub-$pkgver
+  cd PyGithub-$pkgver
   python setup.py test
-
-  cd "$srcdir"/PyGithub-$pkgver-py2
-  python2 setup.py test
 }
 
-package_python-pygithub() {
-  depends=('python-pyjwt' 'python-requests' 'python-deprecated')
-
+package() {
   cd PyGithub-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
-
-package_python2-pygithub() {
-  depends=('python2-pyjwt' 'python2-requests' 'python2-deprecated')
-
-  cd PyGithub-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}


More information about the arch-commits mailing list