[arch-commits] Commit in python-wrapt/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Sun Jul 12 12:01:37 UTC 2020
Date: Sunday, July 12, 2020 @ 12:01:36
Author: jelle
Revision: 391749
Remove python2 module
Modified:
python-wrapt/trunk/PKGBUILD
----------+
PKGBUILD | 32 ++++++--------------------------
1 file changed, 6 insertions(+), 26 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-07-12 11:58:56 UTC (rev 391748)
+++ PKGBUILD 2020-07-12 12:01:36 UTC (rev 391749)
@@ -1,51 +1,31 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
# Contributor: Troy C < rstrox -ta yahoo -tod com >
-pkgbase=python-wrapt
-pkgname=(python-wrapt python2-wrapt)
+pkgname=python-wrapt
pkgver=1.12.1
-pkgrel=1
+pkgrel=2
pkgdesc="A Python module for decorators, wrappers and monkey patching"
arch=("x86_64")
url="https://pypi.python.org/pypi/wrapt"
license=("BSD")
-makedepends=('python' 'python2')
-checkdepends=('python-pytest' 'python2-pytest')
+depends=('python')
+makedepends=('python')
+checkdepends=('python-pytest')
source=("$pkgname-$pkgver.tar.gz::https://github.com/GrahamDumpleton/wrapt/archive/$pkgver.tar.gz")
sha512sums=('33e964cb3aa2437bc7d084a98f622f7c5c8c719d97806796ae0317d35130bdb2679a9dd87be7077e2cae1eb32b65d152349fa7cc138cb392d5999cbfdcecc9ac')
-prepare() {
- cp -a wrapt-$pkgver{,-py2}
-}
-
build() {
cd "$srcdir"/wrapt-$pkgver
python setup.py build
-
- cd "$srcdir"/wrapt-$pkgver-py2
- python2 setup.py build
}
check() {
cd "$srcdir"/wrapt-$pkgver
PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.8:$PYTHONPATH" py.test
-
- cd "$srcdir"/wrapt-$pkgver-py2
- PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" py.test2
}
-package_python-wrapt() {
- depends=('python')
-
+package() {
cd wrapt-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
-
-package_python2-wrapt() {
- depends=('python2')
-
- cd wrapt-$pkgver-py2
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
More information about the arch-commits
mailing list