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

Antonio Rojas arojas at archlinux.org
Sat Nov 9 20:14:07 UTC 2019


    Date: Saturday, November 9, 2019 @ 20:14:06
  Author: arojas
Revision: 524885

Drop python2

Modified:
  python-responses/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++-------------------------
 1 file changed, 6 insertions(+), 25 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-11-09 20:11:40 UTC (rev 524884)
+++ PKGBUILD	2019-11-09 20:14:06 UTC (rev 524885)
@@ -1,7 +1,6 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-responses
-pkgname=('python-responses' 'python2-responses')
+pkgname=python-responses
 pkgver=0.10.6
 pkgrel=3
 pkgdesc='A utility library for mocking out the `requests` Python library.'
@@ -8,12 +7,10 @@
 arch=('any')
 license=('Apache')
 url='https://github.com/getsentry/responses'
-makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests'
-             'python-biscuits' 'python2-cookies' 'python-six' 'python2-six' 'python2-mock')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-cov'
-              'python2-pytest-cov' 'flake8' 'python2-flake8' 'python-pytest-localserver'
-              'python2-pytest-localserver')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/getsentry/responses/archive/$pkgver.tar.gz"
+depends=('python-requests' 'python-biscuits' 'python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-pytest-cov' 'flake8' 'python-pytest-localserver')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/getsentry/responses/archive/$pkgver.tar.gz"
         'pytest5.patch')
 sha512sums=('7fee4150de9b477ca2fb01e71ee9dffae0e3e2138502af54c39bb9291d950d5feb6a6f8db3e37a8a58b6561d625ae8e42a90921463ecb0c5a0f9213466047334'
             '828e675cc27cf9c58b8e453053c8a4a12e560f07c77fa80aacd57decb2a8abb0ff9e91afdee11ff132bf15be1ae45c90b0ca09fdcdf97617532f835909f1ba2d')
@@ -20,37 +17,21 @@
 
 prepare() {
   patch -Np1 -d responses-$pkgver <pytest5.patch
-  cp -a responses-$pkgver{,-py2}
 }
 
 build() {
   cd "$srcdir"/responses-$pkgver
   python setup.py build
-
-  cd "$srcdir"/responses-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   cd "$srcdir"/responses-$pkgver
   python setup.py pytest
-
-  cd "$srcdir"/responses-$pkgver-py2
-  python2 setup.py pytest
 }
 
-package_python-responses() {
-  depends=('python-requests' 'python-biscuits' 'python-six')
-
+package() {
   cd responses-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
 
-package_python2-responses() {
-  depends=('python2-requests' 'python2-cookies' 'python2-six' 'python2-mock')
-
-  cd responses-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}
-
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list