diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-07-07 16:21:35 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2018-07-07 16:27:15 +0000 |
commit | 846e90c1824b56cd7018ea23dd0eb0d40da8116d (patch) | |
tree | cc68e0318c1327fba509454ba4d3c4d8a77f73f4 /community/py-sqlalchemy-migrate | |
parent | 3c77973d90b4ed1c9619a9df692786139bc0177e (diff) | |
download | aports-846e90c1824b56cd7018ea23dd0eb0d40da8116d.tar.bz2 aports-846e90c1824b56cd7018ea23dd0eb0d40da8116d.tar.xz |
community/py-sqlalchemy-migrate: fix dependencies and modernize
Diffstat (limited to 'community/py-sqlalchemy-migrate')
-rw-r--r-- | community/py-sqlalchemy-migrate/APKBUILD | 13 |
1 files changed, 6 insertions, 7 deletions
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 |