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

Felix Yan felixonmars at archlinux.org
Tue May 7 17:12:26 UTC 2019


    Date: Tuesday, May 7, 2019 @ 17:12:25
  Author: felixonmars
Revision: 462401

upgpkg: python-vcrpy 2.0.1-2

remove python2 sibling

Modified:
  python-vcrpy/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++++++------------------------
 1 file changed, 7 insertions(+), 24 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-07 17:12:03 UTC (rev 462400)
+++ PKGBUILD	2019-05-07 17:12:25 UTC (rev 462401)
@@ -1,47 +1,30 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-vcrpy
-pkgname=('python-vcrpy' 'python2-vcrpy')
+pkgname=python-vcrpy
 pkgver=2.0.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Automatically mock your HTTP interactions to simplify and speed up testing'
 arch=('any')
 license=('MIT')
 url='https://github.com/kevin1024/vcrpy'
-makedepends=('python-setuptools' 'python2-setuptools' 'python-yaml' 'python2-yaml' 'python-wrapt'
-             'python2-wrapt' 'python-six' 'python2-six' 'python-yarl' 'python2-contextlib2'
-             'python2-mock')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-httpbin'
-              'python2-pytest-httpbin' 'python-mock')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/kevin1024/vcrpy/archive/v$pkgver.tar.gz")
+depends=('python-yaml' 'python-wrapt' 'python-six' 'python-yarl')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-pytest-httpbin' 'python-mock')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/kevin1024/vcrpy/archive/v$pkgver.tar.gz")
 sha512sums=('cfecb75779c72923a13f22d90f49f6ed35850d46c0524852c05c7dea789513b78a657558ae1481df98a2ead24e164153018b392fa76546e42099240d81421fa8')
 
 build() {
   cd vcrpy-$pkgver
   python setup.py build
-  python2 setup.py build
 }
 
 check() {
   cd vcrpy-$pkgver
   python setup.py pytest
-  python2 setup.py pytest
 }
 
-package_python-vcrpy() {
-  depends=('python-yaml' 'python-wrapt' 'python-six' 'python-yarl')
-
+package() {
   cd vcrpy-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
 }
-
-package_python2-vcrpy() {
-  depends=('python2-yaml' 'python2-wrapt' 'python2-six' 'python2-contextlib2' 'python2-mock')
-
-  cd vcrpy-$pkgver
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
-}
-
-# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list