diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-03-06 14:01:26 -0700 |
---|---|---|
committer | Carlo Landmeter <clandmeter@alpinelinux.org> | 2019-03-18 21:10:25 +0000 |
commit | ce795246ecf90679d2eda384ea1d39cd8d826a64 (patch) | |
tree | 3817318ebcbf3cc586f24e4d227efd376dc321aa /community/py-sqlalchemy/APKBUILD | |
parent | bb920a3d3adfa578d329241da5981eb55311f126 (diff) |
community/py-sqlalchemy: update to 1.3.0
Also cleans up and modernizes the APKBUILD
Diffstat (limited to 'community/py-sqlalchemy/APKBUILD')
-rw-r--r-- | community/py-sqlalchemy/APKBUILD | 45 |
1 files changed, 30 insertions, 15 deletions
diff --git a/community/py-sqlalchemy/APKBUILD b/community/py-sqlalchemy/APKBUILD index 7679ed0a265..9ae9c77dcb4 100644 --- a/community/py-sqlalchemy/APKBUILD +++ b/community/py-sqlalchemy/APKBUILD @@ -1,46 +1,61 @@ # Contributor: William Pitcock <nenolod@dereferenced.org> +# Contributor: Drew DeVault <sir@cmpwn.com> # Maintainer: William Pitcock <nenolod@dereferenced.org> pkgname=py-sqlalchemy _pkgname=SQLAlchemy -pkgver=1.2.14 +pkgver=1.3.0 pkgrel=0 pkgdesc="An object relational mapper for Python" url="https://pypi.python.org/pypi/SQLAlchemy" arch="all" license="MIT" -depends="" makedepends="python2-dev py-setuptools python3-dev" +checkdepends="pytest py-mock" subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" -build() { +prepare() { cd "$builddir" - python2 setup.py build || return 1 - python3 setup.py build || return 1 + sed -i setup.py -e 's/ *"pytest-xdist",//g' + cp -r "$builddir" "$builddir"-py3 } -package() { - mkdir -p "$pkgdir" +build() { + cd "$builddir" + python2 setup.py build + cd "$builddir"-py3 + python3 setup.py build } -_py() { - local python="$1" - pkgdesc="$pkgdesc ${python:6:1}" - depends="$depends $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - +check() { cd "$builddir" - $python setup.py install --prefix=/usr --root="$subpkgdir" + pytest-2 + cd "$builddir"-py3 + pytest-3 +} + +package() { + mkdir -p "$pkgdir" } _py2() { + cd "$builddir" replaces="$pkgname" _py python2 } _py3() { + cd "$builddir" _py python3 } -sha512sums="f6b89029180bc6f3e35bc17a1d80c111f6ce05f2f799bbdfee00c961e83aa2f95cbb363c85a5f97c18d5ff0aa1408c164621474cd6ddf8e63dd88da35de69539 SQLAlchemy-1.2.14.tar.gz" +_py() { + local python="$1" + pkgdesc="$pkgdesc ${python:6:1}" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +sha512sums="031c912dc8830bab70ebb48b253d47ef949818a9a49f9b8d38a2daed21dd27b295182641158578c4a1bfe4bf065968824430b4f4bf949ffdacb12bb99dae9119 SQLAlchemy-1.3.0.tar.gz" |