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

Jelle van der Waa jelle at archlinux.org
Sun Dec 6 19:01:28 UTC 2020


    Date: Sunday, December 6, 2020 @ 19:01:28
  Author: jelle
Revision: 771083

upgpkg: python-betamax 0.8.1-7

Modified:
  python-betamax/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++--------------------
 1 file changed, 7 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-06 19:01:27 UTC (rev 771082)
+++ PKGBUILD	2020-12-06 19:01:28 UTC (rev 771083)
@@ -1,16 +1,17 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
 pkgbase=python-betamax
-pkgname=('python-betamax' 'python2-betamax')
+pkgname=python-betamax
 pkgver=0.8.1
-pkgrel=6
+pkgrel=7
 pkgdesc="A VCR imitation for python-requests"
 arch=('any')
 license=('GPL')
 url='https://github.com/sigmavirus24/betamax'
-makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python2-mock')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/sigmavirus24/betamax/archive/$pkgver.tar.gz"
+depends=('python-requests')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/sigmavirus24/betamax/archive/$pkgver.tar.gz"
         betamax-pytest4.patch::"https://github.com/betamaxpy/betamax/commit/165cc321.patch")
 sha512sums=('3888aa5f1e249faf496a32c03fb7d37096d7bbde573048c2ff3d1ba0fa03ebaeb4ff4e72191478da5f1a04d813204e31d3897469bd5f5eea4c5db2c72aae1374'
             '258bd6729286dc9374829308c23cca73ea640c4597ca8747ebb8281bcf7723bba3dfee5b55cadff0459e8dc4511d85228d37911e981859dd0af55a3753ae9e22')
@@ -22,29 +23,15 @@
    sed -i -e 's:test_records:_&:' -e 's:test_replaces:_&:' -e 's:test_replays:_&:' \
      tests/integration/test_record_modes.py
   )
-  cp -a betamax-$pkgver{,-py2}
 }
 
 check() {
   cd "$srcdir"/betamax-$pkgver
   python setup.py pytest
-
-  cd "$srcdir"/betamax-$pkgver-py2
-  python2 setup.py pytest
 }
 
-package_python-betamax() {
-  depends=('python-requests')
-
+package() {
   cd betamax-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
-
-package_python2-betamax() {
-  depends=('python2-requests')
-
-  cd betamax-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}



More information about the arch-commits mailing list