Date: Thursday, May 14, 2020 @ 09:29:18 Author: jelle Revision: 627906
archrelease: copy trunk to community-any Added: python-mongomock/repos/community-any/PKGBUILD (from rev 627905, python-mongomock/trunk/PKGBUILD) Deleted: python-mongomock/repos/community-any/PKGBUILD ----------+ PKGBUILD | 85 ++++++++++++++++++++++--------------------------------------- 1 file changed, 32 insertions(+), 53 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-05-14 09:29:11 UTC (rev 627905) +++ PKGBUILD 2020-05-14 09:29:18 UTC (rev 627906) @@ -1,53 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-mongomock -pkgname=(python-mongomock python2-mongomock) -pkgver=3.19.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=('1f89786d2c2db69a6f9552d3779da5e2cd68ce8dc0b526b46c1de27937b6fa080816b64828f85ad3f0337237fb882bc0644a76eb9bf1d6b6beb5f897e566cb01') - -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 627905, python-mongomock/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-05-14 09:29:18 UTC (rev 627906) @@ -0,0 +1,32 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-mongomock +pkgver=3.19.0 +pkgrel=2 +pkgdesc="Fake pymongo stub for testing simple MongoDB-dependent code" +url="https://github.com/mongomock/mongomock" +license=('BSD') +arch=('any') +depends=('python-sentinels' 'python-six') +makedepends=('python-pbr') +checkdepends=('python-nose') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/mongomock/mongomock/archive/$pkgver.tar.gz") +sha512sums=('1f89786d2c2db69a6f9552d3779da5e2cd68ce8dc0b526b46c1de27937b6fa080816b64828f85ad3f0337237fb882bc0644a76eb9bf1d6b6beb5f897e566cb01') + +export PBR_VERSION=$pkgver + +build() { + cd "$srcdir"/mongomock-$pkgver + python setup.py build +} + +check() { + cd "$srcdir"/mongomock-$pkgver + python setup.py nosetests +} + +package_python-mongomock() { + cd mongomock-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}