Date: Tuesday, June 11, 2019 @ 12:49:49 Author: felixonmars Revision: 480422
archrelease: copy trunk to community-any Added: python-testfixtures/repos/community-any/PKGBUILD (from rev 480421, python-testfixtures/trunk/PKGBUILD) Deleted: python-testfixtures/repos/community-any/PKGBUILD ----------+ PKGBUILD | 106 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 53 insertions(+), 53 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-06-11 12:49:37 UTC (rev 480421) +++ PKGBUILD 2019-06-11 12:49:49 UTC (rev 480422) @@ -1,53 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-testfixtures -pkgname=('python-testfixtures' 'python2-testfixtures') -pkgver=6.8.2 -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' - 'python-twisted' 'python2-twisted') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/Simplistix/testfixtures/archive/$pkgver.tar.gz") -sha512sums=('1104dd44f31e00441fc349d0051520824d0221eaf966858c73911dac6554b26ea271da62e360c79e903437118d7ee0025938311971e4e201f892d4e22b2fb627') - -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" || warning "https://github.com/Simplistix/testfixtures/issues/115" - - 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 480421, python-testfixtures/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-06-11 12:49:49 UTC (rev 480422) @@ -0,0 +1,53 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-testfixtures +pkgname=('python-testfixtures' 'python2-testfixtures') +pkgver=6.9.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' 'python2-mock' + 'python-zope-component' 'python2-zope-component' 'python-sybil' 'python2-sybil' + 'python-pytest-django' 'python2-pytest-django' 'python-django' 'python2-django' + 'python-twisted' 'python2-twisted') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/Simplistix/testfixtures/archive/$pkgver.tar.gz") +sha512sums=('dcfe5a37aff59e7e680185d18d4d8137fb0cd98fd0bae23d4d8b90aa5d5fa2038df59e4fba604832562bc10122ae25b385b6a79d9d318907da2f8b11d885c6fd') + +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 +}