From 846e90c1824b56cd7018ea23dd0eb0d40da8116d Mon Sep 17 00:00:00 2001 From: Roberto Oliveira Date: Sat, 7 Jul 2018 16:21:35 +0000 Subject: community/py-sqlalchemy-migrate: fix dependencies and modernize --- community/py-sqlalchemy-migrate/APKBUILD | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'community/py-sqlalchemy-migrate') diff --git a/community/py-sqlalchemy-migrate/APKBUILD b/community/py-sqlalchemy-migrate/APKBUILD index 7d2b9e5803..0f563e6bb1 100644 --- a/community/py-sqlalchemy-migrate/APKBUILD +++ b/community/py-sqlalchemy-migrate/APKBUILD @@ -3,13 +3,12 @@ pkgname=py-sqlalchemy-migrate _pkgname=sqlalchemy-migrate pkgver=0.11.0 -pkgrel=0 +pkgrel=1 pkgdesc="SQLAlchemy Schema Migration Tools" url="https://github.com/openstack/sqlalchemy-migrate" arch="noarch" license="MIT" -_pydepends="py-sqlalchemy py-decorator py-six py-sqlparse py-tempita py-pbr" -depends="py3-${pkgname#py-}" +depends="py3-${pkgname#py-} py-sqlalchemy py-tempita py-decorator py-sqlparse" makedepends="python2-dev py-setuptools python3-dev" subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" source="$pkgname-$pkgver.tar.gz::https://github.com/openstack/$_pkgname/archive/$pkgver.tar.gz" @@ -17,15 +16,15 @@ builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" - python2 setup.py build || return 1 - python3 setup.py build || return 1 + python2 setup.py build + python3 setup.py build } package() { mkdir -p "$pkgdir"/usr/bin local name; for name in migrate migrate-repository; do - ln -s sqlalchemy-$name-3 "$pkgdir"/usr/bin/sqlalchemy-$name || return 1 + ln -s sqlalchemy-$name-3 "$pkgdir"/usr/bin/sqlalchemy-$name done } @@ -48,7 +47,7 @@ _py() { install_if="$pkgname=$pkgver-r$pkgrel $python" cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" || return 1 + $python setup.py install --prefix=/usr --root="$subpkgdir" cd "$subpkgdir"/usr/bin local file; for file in *; do -- cgit v1.2.3