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

Jelle van der Waa jelle at archlinux.org
Wed May 13 09:35:51 UTC 2020


    Date: Wednesday, May 13, 2020 @ 09:35:50
  Author: jelle
Revision: 627569

remove unused python2 module

Modified:
  python-redis/trunk/PKGBUILD

----------+
 PKGBUILD |   32 ++++++--------------------------
 1 file changed, 6 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-13 09:35:49 UTC (rev 627568)
+++ PKGBUILD	2020-05-13 09:35:50 UTC (rev 627569)
@@ -2,53 +2,33 @@
 # Contributor: Karol 'Kenji Takahashi' Woźniak <kenji.sx>
 # Contributor: Pierre Gueth <pierre.gueth at gmail.com>
 
-pkgbase=python-redis
-pkgname=('python-redis' 'python2-redis')
+pkgname=python-redis
 pkgver=3.5.1
-pkgrel=1
+pkgrel=2
 pkgdesc='The Python interface to the Redis key-value store'
 arch=('any')
 url="https://github.com/andymccurdy/redis-py"
 license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest' 'python2-pytest' 'python-mock' 'python2-mock' 'pifpaf' 'redis')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-mock' 'pifpaf' 'redis')
 source=("https://pypi.io/packages/source/r/redis/redis-$pkgver.tar.gz")
 sha512sums=('713089fe9687558b651ac9aa0161f3ebfccb71ee12cd6aed784b07bf8f7b52cab1d1d436c4ea7c91b9d688e48da96251feed8e3add140ae714a6ff9e1d23bc85')
 
-prepare() {
-  cp -a redis-$pkgver{,-py2}
-}
-
 build() {
   cd "$srcdir"/redis-$pkgver
   python setup.py build
-
-  cd "$srcdir"/redis-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
   cd "$srcdir"/redis-$pkgver
   pifpaf run redis py.test || warning "https://github.com/andymccurdy/redis-py/issues/1073"
-
-  cd "$srcdir"/redis-$pkgver-py2
-  pifpaf run redis py.test2 || warning "https://github.com/andymccurdy/redis-py/issues/1073"
 }
 
-package_python-redis() {
-  depends=('python')
-
+package() {
   cd redis-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
-package_python2-redis() {
-  depends=('python2')
-
-  cd redis-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
 # vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list