[arch-commits] Commit in python-pony/trunk (PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Sat Mar 21 18:17:47 UTC 2020
Date: Saturday, March 21, 2020 @ 18:17:44
Author: ffy00
Revision: 602946
upgpkg: python-pony 0.7.13-1
Modified:
python-pony/trunk/PKGBUILD
----------+
PKGBUILD | 44 +++++++++++++-------------------------------
1 file changed, 13 insertions(+), 31 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-21 18:14:57 UTC (rev 602945)
+++ PKGBUILD 2020-03-21 18:17:44 UTC (rev 602946)
@@ -1,53 +1,35 @@
# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-pkgbase=python-pony
-_pkgname=${pkgbase#python-}
-pkgname=(python-$_pkgname python2-$_pkgname)
-pkgver=0.7.11
+_pkgname=pony
+pkgname=python-$_pkgname
+pkgver=0.7.13
pkgrel=1
pkgdesc='Pony Object Relational Mapper'
arch=('any')
url='https://github.com/ponyorm/pony'
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python')
+makedepends=('python-setuptools')
license=('Apache')
-source=("$url/archive/v$pkgver.tar.gz")
-sha512sums=('88d0ec9b0c66a8e791a135b4eee5c3fcf1df5abca3dc89fd1614021867a51330b1ba5a1735a665c8c710248c3d6f6d2d7275b13df9b04ad86f4f861947c9edb9')
+source=("$pkgname-$pkgver::$url/archive/v$pkgver.tar.gz")
+sha512sums=('431d19e3297ba1cdae5313948123d8b8cd71ee8ad5868b8cc2f5447eb435875fdbcdc3768834b9afe22ce8e4c1abaabeb597f3e6974b00aab33aa61e497d6390')
-prepare() {
- cp -a $_pkgname-$pkgver{,-py2}
-}
+build() {
+ cd $_pkgname-$pkgver
-build() {
- echo "Building python-$_pkgname $pkgver"
- cd "$srcdir"/$_pkgname-$pkgver
python setup.py build
-
- echo "Building python2-$_pkgname $pkgver"
- cd "$srcdir"/$_pkgname-$pkgver-py2
- python2 setup.py build
}
check() {
- echo "Running tests for python-$_pkgname $pkgver"
- cd "$srcdir"/$_pkgname-$pkgver
+ cd $_pkgname-$pkgver
+
python setup.py test
-
- echo "Running tests for python2-$_pkgname $pkgver"
- cd "$srcdir"/$_pkgname-$pkgver-py2
- python2 setup.py test
}
-package_python-pony() {
- depends=('python')
+package() {
cd $_pkgname-$pkgver
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}
-package_python2-pony() {
- depends=('python2')
- cd $_pkgname-$pkgver-py2
-
- python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ rm -rf "$pkgdir"/usr/lib/python*/site-packages/pony/orm/tests
}
More information about the arch-commits
mailing list