[arch-commits] Commit in python-rencode/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Wed Dec 11 09:29:38 UTC 2019
Date: Wednesday, December 11, 2019 @ 09:29:38
Author: arojas
Revision: 536779
Drop python2
Modified:
python-rencode/trunk/PKGBUILD
----------+
PKGBUILD | 29 +++++------------------------
1 file changed, 5 insertions(+), 24 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-12-11 09:27:45 UTC (rev 536778)
+++ PKGBUILD 2019-12-11 09:29:38 UTC (rev 536779)
@@ -2,8 +2,7 @@
# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
# Contributor: Kyle Keen <keenerd at gmail.com>
-pkgbase=python-rencode
-pkgname=(python-rencode python2-rencode)
+pkgname=python-rencode
pkgver=1.0.6
pkgrel=3
pkgdesc="A Module similar to bencode from the BitTorrent project"
@@ -10,41 +9,23 @@
url="https://github.com/aresch/rencode"
license=('GPL')
arch=('x86_64')
-makedepends=('cython' 'cython2')
-checkdepends=('python-pytest' 'python2-pytest')
+depends=('python')
+makedepends=('cython')
+checkdepends=('python-pytest')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/aresch/rencode/archive/v$pkgver.tar.gz")
sha512sums=('f04de4d3a83aed916bdc4b7a8ca772655e9324d0531ee882cb7d2a1e92b397bdcec8497bf02939e0a806886ecc62ed2e7319dfee054dad1b69052157f0959e8f')
-prepare() {
- cp -a rencode-$pkgver{,-py2}
-}
-
build() {
cd "$srcdir"/rencode-$pkgver
python setup.py build
-
- cd "$srcdir"/rencode-$pkgver-py2
- python2 setup.py build
}
check() {
cd "$srcdir"/rencode-$pkgver
PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.8" py.test
-
- cd "$srcdir"/rencode-$pkgver-py2
- PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7" py.test2
}
-package_python-rencode() {
- depends=('python')
-
+package() {
cd rencode-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
}
-
-package_python2-rencode() {
- depends=('python2')
-
- cd rencode-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
-}
More information about the arch-commits
mailing list