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

Felix Yan felixonmars at archlinux.org
Wed Mar 27 08:14:13 UTC 2019


    Date: Wednesday, March 27, 2019 @ 08:14:12
  Author: felixonmars
Revision: 443975

upgpkg: python-pynamecheap 0.0.3-3

remove python2 sibling

Modified:
  python-pynamecheap/trunk/PKGBUILD

----------+
 PKGBUILD |   38 +++++++++-----------------------------
 1 file changed, 9 insertions(+), 29 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-27 08:14:02 UTC (rev 443974)
+++ PKGBUILD	2019-03-27 08:14:12 UTC (rev 443975)
@@ -1,52 +1,32 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-pynamecheap
-pkgname=(python-pynamecheap python2-pynamecheap)
+pkgname=python-pynamecheap
 pkgver=0.0.3
-pkgrel=2
+pkgrel=3
 pkgdesc="Namecheap API client in Python"
 url="https://github.com/Bemmu/PyNamecheap"
 license=('MIT')
 arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests')
-checkdepends=('python-nose' 'python2-nose')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/Bemmu/PyNamecheap/archive/v$pkgver.tar.gz")
+depends=('python-requests')
+makedepends=('python-setuptools')
+checkdepends=('python-nose')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/Bemmu/PyNamecheap/archive/v$pkgver.tar.gz")
 sha512sums=('9de6f09c76a85a67269465cb1e270f5533fa84983a220ba855b04d03924e2308b9267f212cc2e4811e7e4fb3542e1c1194a74e4ed7ffd253704d7a394d5e1bb2')
 
-prepare() {
-  cp -a PyNamecheap-$pkgver{,-py2}
-}
-
 build() {
-  cd "$srcdir"/PyNamecheap-$pkgver
+  cd PyNamecheap-$pkgver
   python setup.py build
-
-  cd "$srcdir"/PyNamecheap-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   # Needs an account
 
-  cd "$srcdir"/PyNamecheap-$pkgver
+  cd PyNamecheap-$pkgver
   python setup.py nosetests || warning "Tests failed"
-
-  cd "$srcdir"/PyNamecheap-$pkgver-py2
-  python2 setup.py nosetests || warning "Tests failed"
 }
 
-package_python-pynamecheap() {
-  depends=('python-requests')
-
+package() {
   cd PyNamecheap-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
 }
-
-package_python2-pynamecheap() {
-  depends=('python2-requests')
-
-  cd PyNamecheap-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
-}


More information about the arch-commits mailing list