diff options
author | Dmitry Romanenko <Dmitry@Romanenko.in> | 2019-01-11 23:57:34 -0500 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2019-01-15 18:32:20 +0200 |
commit | 4cae36ba315751bb62386006458f3c8364723c84 (patch) | |
tree | b801d7f49fd546a8666051d5878676714258fbdb /testing/py-mongo | |
parent | 7aafba51eccff26b5a6b5bdc410d56c59f3ead66 (diff) | |
download | aports-4cae36ba315751bb62386006458f3c8364723c84.tar.bz2 aports-4cae36ba315751bb62386006458f3c8364723c84.tar.xz |
testing/py-mongo: python3 version added, upgrade to 3.7.2
Diffstat (limited to 'testing/py-mongo')
-rw-r--r-- | testing/py-mongo/APKBUILD | 53 |
1 files changed, 30 insertions, 23 deletions
diff --git a/testing/py-mongo/APKBUILD b/testing/py-mongo/APKBUILD index 00fbc9f3f4..a32e871e53 100644 --- a/testing/py-mongo/APKBUILD +++ b/testing/py-mongo/APKBUILD @@ -2,40 +2,47 @@ # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> pkgname=py-mongo _pkgname=pymongo -pkgver=3.2.2 +pkgver=3.7.2 pkgrel=0 pkgdesc="A Python driver for MongoDB" url="https://github.com/mongodb/mongo-python-driver" arch="all" license="Apache-2.0" -depends="python2" -depends_dev="" -makedepends="python2-dev py-setuptools" +depends="" +makedepends="python2-dev python3-dev py-setuptools" install="" -subpackages="" +subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" - -_builddir="$srcdir"/$_pkgname-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir"/$_pkgname-$pkgver build() { - cd "$_builddir" - python2 setup.py build || return 1 + cd "$builddir" + python2 setup.py build + python3 setup.py build } + package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + mkdir -p "$pkgdir" +} + +_py2() { + replaces="$pkgname" + _py python2 +} + +_py3() { + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" } -md5sums="70408f8115d7aa52fb6eef0e552834a6 pymongo-3.2.2.tar.gz" -sha256sums="f2018165823b341d83d398165d1c625e5db5cc779e7c44c107034407808463b6 pymongo-3.2.2.tar.gz" -sha512sums="f1e8afd41cf8b1fafe777365e33baedfe7626e3ff311428bf59e2bf0a247aa03ced0d32f37bfb349ff2e54aa22a06f763d04787087add7222e0d8f68c5f73eae pymongo-3.2.2.tar.gz" +sha512sums="4d1dfe03d94f381f27cfb5c8dd4f75ecbab90567fdc4dd594b880031e68825eda6285c8b261a4c9d76fb7ccc92c91e27ae2f696525f7732b1f0084794042a33d pymongo-3.7.2.tar.gz" |