Date: Monday, September 4, 2017 @ 00:47:10 Author: felixonmars Revision: 255629
archrelease: copy trunk to community-any Added: python-testfixtures/repos/community-any/PKGBUILD (from rev 255628, python-testfixtures/trunk/PKGBUILD) Deleted: python-testfixtures/repos/community-any/PKGBUILD ----------+ PKGBUILD | 106 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 53 insertions(+), 53 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-09-04 00:46:49 UTC (rev 255628) +++ PKGBUILD 2017-09-04 00:47:10 UTC (rev 255629) @@ -1,53 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-testfixtures -pkgname=('python-testfixtures' 'python2-testfixtures') -pkgver=5.1.1 -pkgrel=1 -pkgdesc="A collection of helpers and mock objects that are useful when writing unit tests or doc tests" -arch=('any') -license=('MIT') -url="https://github.com/Simplistix/testfixtures" -makedepends=('python-setuptools' 'python2-setuptools') -checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-mock' 'python2-mock' - 'python-zope-component' 'python2-zope-component' 'python-sybil' 'python2-sybil' - 'python-pytest-django' 'python2-pytest-django' 'python-django' 'python2-django') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/Simplistix/testfixtures/archive/$pkgver.tar.gz") -sha512sums=('5808db131441c8c58cd14acfec0bb12c46ac880ad969742463cc086fe53d2ced770dd06cb421da7d8bbb164aa1560ea3ee6afcfceab3a859e7a2a27141f5cb90') - -prepare() { - cp -a testfixtures-$pkgver{,-py2} -} - -build() { - cd "$srcdir"/testfixtures-$pkgver - python setup.py build - - cd "$srcdir"/testfixtures-$pkgver-py2 - python2 setup.py build -} - -check() { - cd "$srcdir"/testfixtures-$pkgver - python setup.py pytest --addopts "--ignore=build" - - cd "$srcdir"/testfixtures-$pkgver-py2 - python2 setup.py pytest --addopts "--ignore=build" -} - -package_python-testfixtures() { - depends=('python') - - cd testfixtures-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 - install -D -m644 docs/license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt -} - -package_python2-testfixtures() { - depends=('python2') - - cd testfixtures-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 - install -D -m644 docs/license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt -} Copied: python-testfixtures/repos/community-any/PKGBUILD (from rev 255628, python-testfixtures/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-09-04 00:47:10 UTC (rev 255629) @@ -0,0 +1,53 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-testfixtures +pkgname=('python-testfixtures' 'python2-testfixtures') +pkgver=5.2.0 +pkgrel=1 +pkgdesc="A collection of helpers and mock objects that are useful when writing unit tests or doc tests" +arch=('any') +license=('MIT') +url="https://github.com/Simplistix/testfixtures" +makedepends=('python-setuptools' 'python2-setuptools') +checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-mock' 'python2-mock' + 'python-zope-component' 'python2-zope-component' 'python-sybil' 'python2-sybil' + 'python-pytest-django' 'python2-pytest-django' 'python-django' 'python2-django') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/Simplistix/testfixtures/archive/$pkgver.tar.gz") +sha512sums=('e74acd51ca3980c9eaa715a9d0c1acc5317c804bc635511ec3a42a7c7f3ce5d072672e016eaf4c23c3502656fa98efbcc2b6927a9b0730f68c4fbb588fb2c3b8') + +prepare() { + cp -a testfixtures-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/testfixtures-$pkgver + python setup.py build + + cd "$srcdir"/testfixtures-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/testfixtures-$pkgver + python setup.py pytest --addopts "--ignore=build" + + cd "$srcdir"/testfixtures-$pkgver-py2 + python2 setup.py pytest --addopts "--ignore=build" +} + +package_python-testfixtures() { + depends=('python') + + cd testfixtures-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 docs/license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt +} + +package_python2-testfixtures() { + depends=('python2') + + cd testfixtures-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 docs/license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt +}