Date: Thursday, November 15, 2018 @ 11:04:25 Author: felixonmars Revision: 407697
archrelease: copy trunk to community-any Added: python-mongomock/repos/community-any/PKGBUILD (from rev 407696, python-mongomock/trunk/PKGBUILD) Deleted: python-mongomock/repos/community-any/PKGBUILD ----------+ PKGBUILD | 106 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 53 insertions(+), 53 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-11-15 11:04:07 UTC (rev 407696) +++ PKGBUILD 2018-11-15 11:04:25 UTC (rev 407697) @@ -1,53 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-mongomock -pkgname=(python-mongomock python2-mongomock) -pkgver=3.13.0 -pkgrel=1 -pkgdesc="Fake pymongo stub for testing simple MongoDB-dependent code" -url="https://github.com/mongomock/mongomock" -license=('BSD') -arch=('any') -makedepends=('python-pbr' 'python2-pbr' 'python-sentinels' 'python2-sentinels' 'python-six' - 'python2-six') -checkdepends=('python-nose' 'python2-nose' 'python2-mock') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/mongomock/mongomock/archive/$pkgver.tar.gz") -sha512sums=('bc484e6aa5e5591e70bd1c154e7b2cb7a22cedbbe5f507e81c2ce878de13279148d4b1f93b5ae8925262fc6c15928042edc6d3e958068b66c524ed4521e77350') - -export PBR_VERSION=$pkgver - -prepare() { - cp -a mongomock-$pkgver{,-py2} -} - -build() { - cd "$srcdir"/mongomock-$pkgver - python setup.py build - - cd "$srcdir"/mongomock-$pkgver-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/mongomock-$pkgver - python setup.py nosetests - - cd "$srcdir"/mongomock-$pkgver-py2 - python2 setup.py nosetests -} - -package_python-mongomock() { - depends=('python-sentinels' 'python-six') - - cd mongomock-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} - -package_python2-mongomock() { - depends=('python2-sentinels' 'python2-six') - - cd mongomock-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} Copied: python-mongomock/repos/community-any/PKGBUILD (from rev 407696, python-mongomock/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-11-15 11:04:25 UTC (rev 407697) @@ -0,0 +1,53 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-mongomock +pkgname=(python-mongomock python2-mongomock) +pkgver=3.14.0 +pkgrel=1 +pkgdesc="Fake pymongo stub for testing simple MongoDB-dependent code" +url="https://github.com/mongomock/mongomock" +license=('BSD') +arch=('any') +makedepends=('python-pbr' 'python2-pbr' 'python-sentinels' 'python2-sentinels' 'python-six' + 'python2-six') +checkdepends=('python-nose' 'python2-nose' 'python2-mock') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/mongomock/mongomock/archive/$pkgver.tar.gz") +sha512sums=('cf78d352fe3f613010c5352688caa6bea385fa3f49d9b23e65da594cd56333a594fa88d6f113530dbf6d5b27967e06199618818edae734b6d6bfecd3e4c4487e') + +export PBR_VERSION=$pkgver + +prepare() { + cp -a mongomock-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/mongomock-$pkgver + python setup.py build + + cd "$srcdir"/mongomock-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/mongomock-$pkgver + python setup.py nosetests + + cd "$srcdir"/mongomock-$pkgver-py2 + python2 setup.py nosetests +} + +package_python-mongomock() { + depends=('python-sentinels' 'python-six') + + cd mongomock-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-mongomock() { + depends=('python2-sentinels' 'python2-six') + + cd mongomock-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}